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:
-
$accessor
( GX::Meta::Accessor object )
- Exceptions:
Public Methods
attribute
Returns the associated attribute metaobject.
$attribute = $accessor->attribute;
- Returns:
-
$attribute
( GX::Meta::Attribute object )
code
Returns a reference to the accessor subroutine.
$code = $accessor->code;
name
Returns the name of the accessor method.
$name = $accessor->name;
type
Returns a string identifying the accessor type or undef
if the type is unknown.
$type = $accessor->type;
SEE ALSO
AUTHOR
Jörg A. Uzarek <uzarek@runlevelnull.de>
COPYRIGHT AND LICENSE
Copyright (c) 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.