| Package | org.as3commons.reflect |
| Class | public class Accessor |
| Inheritance | Accessor Field AbstractMember MetaDataContainer |
See also
| Property | Defined by | ||
|---|---|---|---|
| access : AccessorAccess
[read-only]
| Accessor | ||
![]() | declaringType : Type | AbstractMember | |
![]() | isStatic : Boolean | AbstractMember | |
![]() | metaData : Array
Returns an array of all metadata objects in this container.
| MetaDataContainer | |
![]() | name : String | AbstractMember | |
![]() | namespaceURI : String | AbstractMember | |
| readable : Boolean [read-only]
| Accessor | ||
![]() | type : Type | AbstractMember | |
| writeable : Boolean [read-only]
| Accessor | ||
| Method | Defined by | ||
|---|---|---|---|
|
Accessor(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, metaData:Array = null)
Creates a new
Accessor instance. | Accessor | ||
![]() |
addMetaData(metaData:MetaData):void
Adds a MetaData object to this container.
| MetaDataContainer | |
![]() |
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 | |
![]() |
hasMetaData(key:String):Boolean
Returns whether this object has meta data for the given key.
| MetaDataContainer | |
|
isReadable():Boolean
| Accessor | ||
|
isWriteable():Boolean
| Accessor | ||
| access | property |
| readable | property |
readable:Boolean [read-only]Implementation
public function get readable():Boolean
| writeable | property |
writeable:Boolean [read-only]Implementation
public function get writeable():Boolean
| Accessor | () | constructor |
public function Accessor(name:String, access:AccessorAccess, type:String, declaringType:String, isStatic:Boolean, metaData:Array = 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)
|
|
metaData:Array (default = null) |
| 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.
|
| setAccess | () | method |