The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.