Package | org.spicefactory.lib.reflect |
Class | public class Property |
Inheritance | Property ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | declaredBy : ClassInfo [read-only]
The type declaring this member. | Member | |
isStatic : Boolean [read-only]
Determines if this instance represents a static property. | Property | ||
![]() | name : String [read-only]
The name of this member. | Member | |
![]() | namespaceURI : String [read-only]
The namespace URI for this member or null if this is a public member. | Member | |
![]() | owner : ClassInfo [read-only]
The owner of this member. | Member | |
readable : Boolean [read-only]
Determines if this instance represents a readable property. | Property | ||
type : ClassInfo [read-only]
Returns the type of this Property. | Property | ||
writable : Boolean [read-only]
Determines if this instance represents a writable property. | Property |
Method | Defined By | ||
---|---|---|---|
![]() | getAllMetadata(validate:Boolean = true):Array
Returns all metadata tags for this type in no particular order. | MetadataAware | |
![]() | getMetadata(type:Object, validate:Boolean = true):Array
Returns all metadata tags for the specified type for this element. | MetadataAware | |
getValue(instance:Object):*
Returns the value of the property represented by this instance in the specified target instance. | Property | ||
![]() | hasMetadata(type:Object):Boolean
Indicates whether this element has at least one metadata tag of the specified type. | MetadataAware | |
setValue(instance:Object, value:*):*
Sets the value of the property represented by this instance in the specified target instance. | Property |
isStatic | property |
isStatic:Boolean
[read-only] Determines if this instance represents a static property.
public function get isStatic():Boolean
readable | property |
readable:Boolean
[read-only] Determines if this instance represents a readable property.
public function get readable():Boolean
type | property |
type:ClassInfo
[read-only] Returns the type of this Property.
public function get type():ClassInfo
writable | property |
writable:Boolean
[read-only] Determines if this instance represents a writable property. Properties declared with var or an implicit setter method are writable. Properties declared with const or with an implicit getter without matching setter method are not writable.
public function get writable():Boolean
getValue | () | method |
public function getValue(instance:Object):*
Returns the value of the property represented by this instance in the specified target instance.
Parameters
instance:Object — the instance whose property value should be retrieved or null if the property
is static
|
* — the value of the property represented by this instance in the specified target instance
|
PropertyError — if the property is not readable or
if the specified target instance is not of the required type
|
setValue | () | method |
public function setValue(instance:Object, value:*):*
Sets the value of the property represented by this instance in the specified target instance.
Parameters
instance:Object — the instance whose property value should be set or null if the property
is static
| |
value:* — the new value for the property
|
* — the (probably converted) value that was set for the property in the target instance
|
ConversionError — if the specified value is not
of the required type and cannot be converted
| |
PropertyError — if the property is not writable or
if the specified target instance is not of the required type
|