GX::Meta::Method

Module Version: 0.2000_01

NAME

GX::Meta::Method - Method metaclass

SYNOPSIS

None.

DESCRIPTION

This module provides the GX::Meta::Method class.

METHODS

Constructor

new

Returns a new GX::Meta::Method metaobject.

$method = GX::Meta::Method->new( %attributes );
Attributes:
  • class ( GX::Meta::Class object ) [ required ]

    The class metaobject that represents the class to which the method belongs.

  • name ( string ) [ required ]

    The name of the method.

Returns:
Exceptions:

Public Methods

class

Returns the class metaobject that represents the class to which the method belongs.

$class = $method->class;
Returns:

code

Returns a reference to the method.

$code = $method->code;
Returns:
  • $code ( CODE reference )

code_attributes

Returns the code attributes of the method.

@code_attributes = $method->code_attributes;
Returns:
  • @code_attributes ( strings )

    A list of simple names, each optionally followed by a parenthesised parameter list. See attributes for details.

full_name

Returns the fully qualified name of the method.

$full_name = $method->full_name;
Returns:
  • $full_name ( string )

name

Returns the name of the method.

$name = $method->name;
Returns:
  • $name ( string )

SEE ALSO

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright © 2009-2011 Jörg A. Uzarek.

This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.