1.2.11Class Method

Metaclass of method items.

Class Method from \
                 BOM( )

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.

Methods
attributesReturns the attributes associated with the method function.
baseReturns the function or the array associated with this method.
sourceReturns the object associated with this method.
Methods inherited from class BOM
__addOverrides binary addition operand.
__callOverrides call operator "self()".
__decOverrides decrement unary prefix operand.
__decpostOverrides decrement unary postfix operand.
__divOverrides binary division operand.
__getIndexOverrides array access operator []
__incOverrides increment unary prefix operand.
__incpostOverrides increment unary postifx operand.
__modOverrides modulo operand.
__mulOverrides binary multiplication operand.
__powOverrides power operand.
__setIndexOverrides array write operator []
__subOverrides binary subtraction operand.
baseClassReturns the class item from which an object has been instantiated.
boundDetermines if an item is bound or not.
classNameReturns the name of the class an instance is instantiated from.
clonePerforms a deep copy of the item.
comparePerforms a lexicographical comparison.
derivedFromChecks if this item has a given parent.
describeReturns the deep contents of an item on a string representation.
isCallableDetermines if an item is callable.
lenRetrieves the length of a collection
metaclassReturns the metaclass associated with this item.
ptrReturns a raw memory pointer out of this data (as an integer).
serializeSerialize the item on a stream for persistent storage.
toStringCoverts the object to string.
typeIdReturns an integer indicating the type of this item.

Methods

attributes

Returns the attributes associated with the method function.

Method.attributes()
ReturnNil if the function has no attributes, or a string-indexed dictionary.

See also: attributes.

base

Returns the function or the array associated with this method.

Method.base()
ReturnThe 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.

source

Returns the object associated with this method.

Method.source()
ReturnThe 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.

Made with http://www.falconpl.org