| Package | org.as3commons.reflect |
| Class | public class Accessor |
| Inheritance | Accessor Field AbstractMember MetadataContainer Object |
| Implements | org.as3commons.lang.IEquals |
See also
| Property | Defined By | ||
|---|---|---|---|
| access : AccessorAccess [read-only] | Accessor | ||
![]() | declaringType : Type [read-only] | AbstractMember | |
![]() | isStatic : Boolean [read-only] | AbstractMember | |
![]() | metadata : Array [read-only]
Returns an array of all metadata objects in this container. | MetadataContainer | |
![]() | name : String [read-only] | AbstractMember | |
![]() | namespaceURI : String [read-only] | AbstractMember | |
![]() | qName : QName [read-only] | AbstractMember | |
| readable : Boolean [read-only]
| Accessor | ||
![]() | type : Type [read-only] | AbstractMember | |
| writeable : Boolean [read-only]
| Accessor | ||
| Method | Defined By | ||
|---|---|---|---|
Accessor(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null)
Creates a new Accessor instance. | Accessor | ||
![]() | addMetadata(metadata:Metadata):void
Adds a Metadata object to this container. | MetadataContainer | |
equals(other:Object):Boolean [override] | Accessor | ||
![]() | getCacheKey(clazz:Class, name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):String [static] | AbstractMember | |
![]() | getMetadata(key:String):Array
Returns the array of Metadata object that corresponds to the given key. | MetadataContainer | |
![]() | getValue(target:* = null):*
Returns the value of the field. | Field | |
![]() | hasExactMetadata(otherMetadata:Metadata):Boolean | MetadataContainer | |
![]() | 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 | ||
| access | property |
| readable | property |
readable:Boolean [read-only]
public function get readable():Boolean| writeable | property |
writeable:Boolean [read-only]
public function get writeable():Boolean| 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.
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) |
| equals | () | method |
override public function equals(other:Object):BooleanParameters
other:Object |
Boolean |
| isReadable | () | method |
public function isReadable():BooleanReturns
Boolean — true if the accessor can be used to read the value (the "get" accessor is present),
false otherwise.
|
| isWriteable | () | method |
public function isWriteable():BooleanReturns
Boolean — true 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):AccessorParameters
name:String | |
access:AccessorAccess | |
type:String | |
declaringType:String | |
isStatic:Boolean | |
applicationDomain:ApplicationDomain | |
metadata:HashArray (default = null) |
Accessor |
| setAccess | () | method |