Mouse::Meta::Class(3pm) User Contributed Perl Documentation Mouse::Meta::Class(3pm)

Mouse::Meta::Class - The Mouse class metaclass

This document describes Mouse version v2.5.10

This class is a meta object protocol for Mouse classes, which is a subset of Moose::Meta:::Class.

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

Returns the name of the owner class.

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

Adds a method to the owner class.

Returns whether we have a method with the given name.

Returns a Mouse::Meta::Method with the given name.

Note that you can also use "$metaclass->name->can($name)" for a method body.

Returns a list of method names which are defined in the local class. If you want a list of all applicable methods for a class, use the "get_all_methods" method.

Return the list of all Mouse::Meta::Method instances associated with the class and its superclasses.

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

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

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

Returns a list of attribute names which are defined in the local class. If you want a list of all applicable attributes for a class, use the "get_all_attributes" method.

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

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

Creates a new instance.

Clones the given instance which must be an instance governed by this metaclass.

Throws an error with the given message.

Mouse::Meta::Module

Moose::Meta::Class

Class::MOP::Class

2023-07-26 perl v5.38.0