Packageorg.as3commons.reflect
Classpublic class Accessor
InheritanceAccessor Inheritance Field Inheritance AbstractMember Inheritance MetadataContainer Inheritance Object
Implements org.as3commons.lang.IEquals

A member defined by getter and setter functions.

See also

AccessorAccess


Public Properties
 PropertyDefined By
  access : AccessorAccess
[read-only]
Accessor
 InheriteddeclaringType : Type
[read-only]
AbstractMember
 InheritedisStatic : Boolean
[read-only]
AbstractMember
 Inheritedmetadata : Array
[read-only] Returns an array of all metadata objects in this container.
MetadataContainer
 Inheritedname : String
[read-only]
AbstractMember
 InheritednamespaceURI : String
[read-only]
AbstractMember
 InheritedqName : QName
[read-only]
AbstractMember
  readable : Boolean
[read-only]
Accessor
 Inheritedtype : Type
[read-only]
AbstractMember
  writeable : Boolean
[read-only]
Accessor
Protected Properties
 PropertyDefined By
 InheritedapplicationDomain : ApplicationDomain
AbstractMember
Public Methods
 MethodDefined By
  
Accessor(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null)
Creates a new Accessor instance.
Accessor
 Inherited
addMetadata(metadata:Metadata):void
Adds a Metadata object to this container.
MetadataContainer
  
equals(other:Object):Boolean
[override]
Accessor
 Inherited
getCacheKey(clazz:Class, name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):String
[static]
AbstractMember
 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
hasExactMetadata(otherMetadata:Metadata):Boolean
MetadataContainer
 Inherited
hasMetadata(key:String):Boolean
Returns whether this object has meta data for the given key.
MetadataContainer
  
isReadable():Boolean
Accessor
  
isWriteable():Boolean
Accessor
  
newInstance(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):Accessor
[static]
Accessor
Protected Methods
 MethodDefined By
 Inherited
compareMetadata(metadataArray:Array):Boolean
AbstractMember
 Inherited
initAbstractType(name:String, isStatic:Boolean, type:String, declaringType:String, applicationDomain:ApplicationDomain):void
AbstractMember
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, applicationDomain:ApplicationDomain, metadata:HashArray = 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)
 
applicationDomain:ApplicationDomain
 
metadata:HashArray (default = null)
Method Detail
equals()method
override public function equals(other:Object):Boolean

Parameters

other:Object

Returns
Boolean
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.
newInstance()method 
public static function newInstance(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):Accessor

Parameters

name:String
 
access:AccessorAccess
 
type:String
 
declaringType:String
 
isStatic:Boolean
 
applicationDomain:ApplicationDomain
 
metadata:HashArray (default = null)

Returns
Accessor
setAccess()method 
as3commons_reflect function setAccess(value:AccessorAccess):void

Parameters

value:AccessorAccess