Metaclass of method items.
class Method \ from BOM
attributes() | Returns the attributes associated with the method function. |
base() | Returns the function or the array associated with this method. |
source() | Returns the object associated with this method. |
add__ from BOM | Overrides binary addition operand. |
baseClass from BOM | Returns the class item from which an object has been instantiated. |
call__ from BOM | Overrides call operator "self()". |
className from BOM | Returns the name of the class an instance is instantiated from. |
clone from BOM | Performs a deep copy of the item. |
compare from BOM | Performs a lexicographical comparison. |
dec__ from BOM | Overrides decrement unary prefix operand. |
decpost__ from BOM | Overrides decrement unary postfix operand. |
derivedFrom from BOM | Checks if this item has a given parent. |
describe from BOM | Returns the deep contents of an item on a string representation. |
div__ from BOM | Overrides binary division operand. |
getIndex__ from BOM | Overrides array access operator [] |
inc__ from BOM | Overrides increment unary prefix operand. |
incpost__ from BOM | Overrides increment unary postifx operand. |
isCallable from BOM | Determines if an item is callable. |
len from BOM | Retreives the lenght of a collection |
metaclass from BOM | Returns the metaclass associated with this item. |
mod__ from BOM | Overrides modulo operand. |
mul__ from BOM | Overrides binary multiplication operand. |
pow__ from BOM | Overrides power operand. |
ptr from BOM | Returns a raw memory pointer out of this data (as an integer). |
serialize from BOM | Serialize the item on a stream for persistent storage. |
setIndex__ from BOM | Overrides array write operator [] |
sub__ from BOM | Overrides binary subtraction operand. |
toString from BOM | Coverts the object to string. |
typeId from BOM | Returns an integer indicating the type of this item. |
Metaclass of method items.
This is the class reflecting falcon method items. A method is a set of an item and a function applied to that. The item can be a method again, as it is possible to apply methods to method items.
Returns the attributes associated with the method function.
Method.attributes( )
Returns: | Nil if the function has no attributes, or a string-indexed dictionary. |
Returns the function or the array associated with this method.
Method.base( )
Returns: | The function or array that is applied on the associated object. |
Returns a function or a callable array that is associated with the object in this method.
This method cannot return external functions; only function generated by Falcon native modules can be returned. This is because externa functions are not suited to be extracted from methods and eventually re-associated with other objects.
This method will raise an error in case it refers to an external function. However, it can be safely used to extract base callable arrays.
Returns the object associated with this method.
Method.source( )
Returns: | The object from which this method was created. |
Returns an object (or an item, in case this is a BOM method) that gave birth to this method.