Gregor Goldbach > Perl-Analysis-Static-0.004-TRIAL > Perl::Analysis::Static::Question

Download:
Perl-Analysis-Static-0.004-TRIAL.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.004   Source  

NAME ^

Perl::Analysis::Static::Question - represents a question about a Perl document

VERSION ^

version 0.004

DESCRIPTION ^

A human or a machine might want to know something about a Perl document, so a question is asked about that document. Such a question may be "Where is a lexical variable named 'foo' declared?" or "What functions are declared whose name match the regex '^[sS]et'?".

Enter this class. It is the base class for all questions asked about a Perl document.

The question is asked by the Perl::Analysis::Static::Questioner.

ATTRIBUTES ^

class

Holds the name of the element that you ask for. It's a string that gets Perl::Statis::Analysis::Element appended.

filter

When a question is asked it gets a list of elements (which are subclasses of Perl::Statis::Analysis::Element). The list is then filtered by any number of filters (or no filter at all.)

The names of the filters are stored in this attribute. It's a reference to a list of strings, each one gets Perl::Statis::Analysis::Filter appended.

arguments

Reference to list of arguments for each filter.

AUTHOR ^

Gregor Goldbach <glauschwuffel@nomaden.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Gregor Goldbach.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: