MetaClass for Falcon arrays.
Class Array from \ BOM( )
This is the class reflecting the base array classes.
Methods | |
properties | Returns an array of properties (bindings) in the array. |
setProperty | Sets a binding (as a property) in the array. |
Methods inherited from class BOM | |
__add | Overrides binary addition operand. |
__call | Overrides call operator "self()". |
__dec | Overrides decrement unary prefix operand. |
__decpost | Overrides decrement unary postfix operand. |
__div | Overrides binary division operand. |
__getIndex | Overrides array access operator [] |
__inc | Overrides increment unary prefix operand. |
__incpost | Overrides increment unary postifx operand. |
__mod | Overrides modulo operand. |
__mul | Overrides binary multiplication operand. |
__pow | Overrides power operand. |
__setIndex | Overrides array write operator [] |
__sub | Overrides binary subtraction operand. |
baseClass | Returns the class item from which an object has been instantiated. |
bound | Determines if an item is bound or not. |
className | Returns the name of the class an instance is instantiated from. |
clone | Performs a deep copy of the item. |
compare | Performs a lexicographical comparison. |
derivedFrom | Checks if this item has a given parent. |
describe | Returns the deep contents of an item on a string representation. |
isCallable | Determines if an item is callable. |
len | Retrieves the length of a collection |
metaclass | Returns the metaclass associated with this item. |
ptr | Returns a raw memory pointer out of this data (as an integer). |
serialize | Serialize the item on a stream for persistent storage. |
toString | Coverts the object to string. |
typeId | Returns an integer indicating the type of this item. |
Returns an array of properties (bindings) in the array.
Array.properties()
Return | An array with 0 or more strings. |
This methods returns all the properties in the given array, which represents the list of array bindings. If the array has no bindings, this method returns an empty array.
The property list includes properties that refer to any kind of data, including functions (that is, methods), but it doesn't include properties in the metaclass of this item (FBOM properties).
The returned list is ordered by UNICODE value of the property names.
Sets a binding (as a property) in the array.
Array.setProperty( propName, value )
propName | A string representing the name of a property or a method inside the array. | ||
value | The property new value. | ||
Raise |
|
Alters the value of the property in the given array. If the required property is not present, an AccessError is raised.