Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self, ast, id=None) |
def | __repr__ (self) |
def | __eq__ (self, other) |
def | __hash__ (self) |
def | reset_id (self, newId) |
def | all (self, type_filter=None) |
def | to_dict (self) |
def | to_hash (self) |
Public Attributes | |
id | |
ext_attrs | |
annotations | |
members | |
Base class for all IDL elements. IDLNode may contain various child nodes, and have properties. Examples of IDLNode are interfaces, interface members, function arguments, etc.
Definition at line 59 of file idlnode.py.
def scripts.idlnode.IDLNode.__init__ | ( | self, | |
ast, | |||
id = None |
|||
) |
Initializes an IDLNode from a PegParser AST output.
Reimplemented in scripts.idlnode.IDLDictNode, scripts.idlnode.IDLModule, scripts.idlnode.IDLEnum, scripts.idlnode.IDLCallbackFunction, scripts.idlnode.IDLTypeDef, scripts.idlnode.IDLParentInterface, scripts.idlnode.IDLImplementsStatement, scripts.idlnode.IDLAttribute, scripts.idlnode.IDLConstant, scripts.idlnode.IDLDictionaryMember, scripts.idlnode.IDLOperation, scripts.idlnode.IDLMember, scripts.idlnode.IDLFile, scripts.idlnode.IDLType, scripts.idlnode.IDLInterface, scripts.idlnode.IDLArgument, scripts.idlnode.IDLDictionary, scripts.idlnode.IDLExtAttrs, scripts.idlnode.IDLAnnotations, scripts.idlnode.IDLAnnotation, scripts.idlnode.IDLDictionaryMembers, and scripts.idlnode.IDLExtAttrFunctionValue.
Definition at line 66 of file idlnode.py.
def scripts.idlnode.IDLNode.__eq__ | ( | self, | |
other | |||
) |
Override default equals operation. IDLNodes are equal if all their properties are equal.
Definition at line 92 of file idlnode.py.
def scripts.idlnode.IDLNode.__hash__ | ( | self | ) |
Define default hashing behavior. In order to comply with a == b => hash(a) == hash(b), we recursively iterate self.__dict__ and convert all objects to hashable objects.
Definition at line 99 of file idlnode.py.
def scripts.idlnode.IDLNode.__repr__ | ( | self | ) |
Generates string of the form <class id extra extra ... 0x12345678>.
Reimplemented in scripts.idlnode.IDLOperation, and scripts.idlnode.IDLArgument.
Definition at line 74 of file idlnode.py.
def scripts.idlnode.IDLNode.all | ( | self, | |
type_filter = None |
|||
) |
Returns a list containing this node and all it child nodes (recursive). Args: type_filter -- can be used to limit the results to a specific node type (e.g. IDLOperation).
Definition at line 110 of file idlnode.py.
def scripts.idlnode.IDLNode.reset_id | ( | self, | |
newId | |||
) |
Reset the id of the Node. This is typically done during a normalization phase (e.g., "DOMWindow" -> "Window").
Reimplemented in scripts.idlnode.IDLInterface.
Definition at line 105 of file idlnode.py.
def scripts.idlnode.IDLNode.to_dict | ( | self | ) |
Converts the IDLNode and its children into a dictionary. This method is useful mostly for debugging and pretty printing.
Reimplemented in scripts.idlnode.IDLDictNode.
Definition at line 134 of file idlnode.py.
def scripts.idlnode.IDLNode.to_hash | ( | self | ) |
Definition at line 162 of file idlnode.py.
scripts.idlnode.IDLNode.annotations |
Definition at line 342 of file idlnode.py.
scripts.idlnode.IDLNode.ext_attrs |
Definition at line 338 of file idlnode.py.
scripts.idlnode.IDLNode.id |
Definition at line 69 of file idlnode.py.
scripts.idlnode.IDLNode.members |
Definition at line 346 of file idlnode.py.