Packageorg.as3commons.reflect
Classpublic class Accessor
InheritanceAccessor Inheritance Field Inheritance AbstractMember Inheritance MetaDataContainer

A member defined by getter and setter functions.

See also

AccessorAccess


Public Properties
 PropertyDefined by
  access : AccessorAccess
[read-only]
Accessor
 InheriteddeclaringType : Type
AbstractMember
 InheritedisStatic : Boolean
AbstractMember
 InheritedmetaData : Array
Returns an array of all metadata objects in this container.
MetaDataContainer
 Inheritedname : String
AbstractMember
 InheritednamespaceURI : String
AbstractMember
  readable : Boolean
[read-only]
Accessor
 Inheritedtype : Type
AbstractMember
  writeable : Boolean
[read-only]
Accessor
Public Methods
 MethodDefined by
  
Accessor(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, metaData:Array = null)
Creates a new Accessor instance.
Accessor
 Inherited
addMetaData(metaData:MetaData):void
Adds a MetaData object to this container.
MetaDataContainer
 Inherited
getMetaData(key:String):Array
Returns the array of MetaData object that corresponds to the given key.
MetaDataContainer
 Inherited
getValue(target:* = null):*
Returns the value of the field.
Field
 Inherited
hasMetaData(key:String):Boolean
Returns whether this object has meta data for the given key.
MetaDataContainer
  
isReadable():Boolean
Accessor
  
isWriteable():Boolean
Accessor
Property detail
accessproperty
access:AccessorAccess  [read-only]Implementation
    public function get access():AccessorAccess
readableproperty 
readable:Boolean  [read-only]

Implementation
    public function get readable():Boolean
writeableproperty 
writeable:Boolean  [read-only]

Implementation
    public function get writeable():Boolean
Constructor detail
Accessor()constructor
public function Accessor(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, metaData:Array = null)

Creates a new Accessor instance.

Parameters
name:String — the name of the variable
 
access:AccessorAccess — the access of the accessor
 
type:String — the data type of the variable
 
declaringType:String — the type that declares the variable
 
isStatic:Boolean — whether or not this member is static (class member)
 
metaData:Array (default = null)
Method detail
isReadable()method
public function isReadable():Boolean

Returns
Booleantrue if the accessor can be used to read the value (the "get" accessor is present), false otherwise.
isWriteable()method 
public function isWriteable():Boolean

Returns
Booleantrue if the accessor can be used to read the value (the "set" accessor is present), false otherwise.
setAccess()method 
as3commons_reflect function setAccess(value:AccessorAccess):voidParameters
value:AccessorAccess