
Class::MOP::Method - Method Meta Object

The Method Protocol is very small, since methods in Perl 5 are just subroutines within the particular package. We provide a very basic introspection interface.

This will return a Class::MOP::Class instance which is related to this class.
This is the basic constructor,
it returns a Class::MOP::Method instance which wraps the given $code reference.
You can also set the package_name and name attributes using the %params.
If these are not set,
then thier accessors will attempt to figure it out using the Class::MOP::get_code_info function.
This will make a copy of the object,
allowing you to override any values by stuffing them in %params.
This returns the actual CODE reference of the particular instance.
This returns the name of the CODE reference.
The metaclass of the method
This returns the package name that the CODE reference is attached to.
This returns the fully qualified name of the CODE reference.
If this method object was created as a clone of some other method object, this returns the object that was cloned.
This returns the original name of the CODE reference, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the name from the first method in the chain of clones.
This returns the original package name that the CODE reference is attached to, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the package name from the first method in the chain of clones.
This returns the original fully qualified name of the CODE reference, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the fully qualified name from the first method in the chain of clones.
Sets the associated metaclass
Disassociates the method from the metaclass

Stevan Little <stevan@iinteractive.com>

Copyright 2006-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.