| Package | org.spicefactory.lib.reflect |
| Class | public class Property |
| Inheritance | Property Member MetadataAware |
| Property | Defined by | ||
|---|---|---|---|
| isStatic : Boolean [read-only]
Determines if this instance represents a static property.
| Property | ||
![]() | name : String
The name of this member.
| Member | |
![]() | owner : ClassInfo
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():Array
Returns all metadata tags for this type in no particular order.
| MetadataAware | |
![]() |
getMetadata(type:Object):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 | ||
|
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.
Implementation public function get isStatic():Boolean
| readable | property |
readable:Boolean [read-only]Determines if this instance represents a readable property.
Implementation public function get readable():Boolean
| type | property |
type:ClassInfo [read-only]Returns the type of this Property.
Implementation 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.
Implementation 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.
Parametersinstance: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.
Parametersinstance: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
|