יובל קוג'מן (Yuval Kogman) > Mouse-0.04 > Mouse::Meta::Class

Download:
Mouse-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  9
View/Report Bugs
Source   Latest Release: Mouse-2.3.0

NAME ^

Mouse::Meta::Class - hook into the Mouse MOP

METHODS ^

initialize ClassName -> Mouse::Meta::Class

Finds or creates a Mouse::Meta::Class instance for the given ClassName. Only one instance should exist for a given class.

new %args -> Mouse::Meta::Class

Creates a new Mouse::Meta::Class. Don't call this directly.

name -> ClassName

Returns the name of the owner class.

superclasses -> [ClassName]

Gets (or sets) the list of superclasses of the owner class.

add_attribute Mouse::Meta::Attribute

Begins keeping track of the existing Mouse::Meta::Attribute for the owner class.

compute_all_applicable_attributes -> (Mouse::Meta::Attribute)

Returns the list of all Mouse::Meta::Attribute instances associated with this class and its superclasses.

get_attribute_map -> { name => Mouse::Meta::Attribute }

Returns a mapping of attribute names to their corresponding Mouse::Meta::Attribute objects.

has_attribute Name -> Boool

Returns whether we have a Mouse::Meta::Attribute with the given name.

get_attribute Name -> Mouse::Meta::Attribute | undef

Returns the Mouse::Meta::Attribute with the given name.

linearized_isa -> [ClassNames]

Returns the list of classes in method dispatch order, with duplicates removed.

syntax highlighting: