GX::Meta::Accessor

Module Version: 0.2000_01

NAME

GX::Meta::Accessor - Accessor metaclass

SYNOPSIS

None.

DESCRIPTION

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

METHODS

Constructor

new

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

$accessor = GX::Meta::Accessor->new( %attributes );
Attributes:
  • attribute ( GX::Meta::Attribute object ) [ required ]

    The associated attribute metaobject.

  • code ( CODE reference ) [ required ]

    A reference to the accessor subroutine.

  • name ( string ) [ required ]

    The name of the accessor method.

  • type ( string )

    A string identifying the accessor type, for example "get" or "set".

Returns:
Exceptions:

Public Methods

attribute

Returns the associated attribute metaobject.

$attribute = $accessor->attribute;
Returns:

code

Returns a reference to the accessor subroutine.

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

name

Returns the name of the accessor method.

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

type

Returns a string identifying the accessor type or undef if the type is unknown.

$type = $accessor->type;
Returns:
  • $type ( string | undef )

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.