Tangence::Compiler::Class - structure representing one Tangence class
Tangence::Compiler::Class
Tangence
This data structure object stores information about one Tangence class, as parsed by Tangence::Compiler::Parser. Once constructed and defined, such objects are immutable.
Returns a new instance representing the given name.
Provides a definition for the class.
Optional HASH references containing metadata about methods, events and properties, as instances of Tangence::Compiler::Method, Tangence::Compiler::Event or Tangence::Compiler::Property.
Optional ARRAY reference containing superclasses as Tangence::Compiler::Class references.
Returns true if a definintion for the class has been provided using define.
define
Returns the name of the class
Return the direct superclasses in a list of Tangence::Compiler::Class references.
Return the methods that this class directly defines (rather than inheriting from superclasses) as a HASH reference mapping names to Tangence::Compiler::Method instances.
Return the events that this class directly defines (rather than inheriting from superclasses) as a HASH reference mapping names to Tangence::Compiler::Event instances.
Return the properties that this class directly defines (rather than inheriting from superclasses) as a HASH reference mapping names to Tangence::Compiler::Property instances.
The following accessors inspect the full inheritance tree of this class and all its superclasses
Return all the superclasses in a list of unique Tangence::Compiler::Class references.
Return all the methods available to this class as a HASH reference mapping names to Tangence::Compiler::Method instances.
Return all the events available to this class as a HASH reference mapping names to Tangence::Compiler::Event instances.
Return all the properties available to this class as a HASH reference mapping names to Tangence::Compiler::Property instances.
Paul Evans <leonerd@leonerd.org.uk>
To install Tangence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tangence
CPAN shell
perl -MCPAN -e shell install Tangence
For more information on module installation, please visit the detailed CPAN module installation guide.