Tangence::Meta::Class - structure representing one Tangence class
Tangence::Meta::Class
Tangence
This data structure object stores information about one Tangence class. 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::Meta::Method, Tangence::Meta::Event or Tangence::Meta::Property.
Optional ARRAY reference containing superclasses as Tangence::Meta::Class references.
Returns true if a definintion for the class has been provided using define.
define
Returns the name of the class
Returns the perl name of the class. This will be the Tangence name, with dots replaced by double colons (::).
::
Return the direct superclasses in a list of Tangence::Meta::Class references.
Return the methods that this class directly defines (rather than inheriting from superclasses) as a HASH reference mapping names to Tangence::Meta::Method instances.
Return the events that this class directly defines (rather than inheriting from superclasses) as a HASH reference mapping names to Tangence::Meta::Event instances.
Return the properties that this class directly defines (rather than inheriting from superclasses) as a HASH reference mapping names to Tangence::Meta::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::Meta::Class references.
Return all the methods available to this class as a HASH reference mapping names to Tangence::Meta::Method instances.
Return the named method as a Tangence::Meta::Method instance, or undef if no such method exists.
undef
Return all the events available to this class as a HASH reference mapping names to Tangence::Meta::Event instances.
Return the named event as a Tangence::Meta::Event instance, or undef if no such event exists.
Return all the properties available to this class as a HASH reference mapping names to Tangence::Meta::Property instances.
Return the named property as a Tangence::Meta::Property instance, or undef if no such property exists.
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.