Public Member Functions | |
def | __init__ (self, str name, ZeroOrMore content, parent='') |
str | __repr__ (self) |
Union[Class, GlobalFunction, ForwardDeclaration] | find_class_or_function (self, Typename typename) |
List["Namespace"] | full_namespaces (self) |
"Namespace" | top_level (self) |
Static Public Member Functions | |
def | from_parse_result (ParseResults t) |
Public Attributes | |
content | |
name | |
parent | |
Static Public Attributes | |
rule | |
Rule for parsing a namespace in the interface file.
Definition at line 58 of file interface_parser/namespace.py.
def gtwrap.interface_parser.namespace.Namespace.__init__ | ( | self, | |
str | name, | ||
ZeroOrMore | content, | ||
parent = '' |
|||
) |
Definition at line 79 of file interface_parser/namespace.py.
str gtwrap.interface_parser.namespace.Namespace.__repr__ | ( | self | ) |
Definition at line 124 of file interface_parser/namespace.py.
Union[Class, GlobalFunction, ForwardDeclaration] gtwrap.interface_parser.namespace.Namespace.find_class_or_function | ( | self, | |
Typename | typename | ||
) |
Find the Class or GlobalFunction object given its typename. We have to traverse the tree of namespaces.
Definition at line 95 of file interface_parser/namespace.py.
|
static |
Return the result of parsing.
Definition at line 87 of file interface_parser/namespace.py.
List["Namespace"] gtwrap.interface_parser.namespace.Namespace.full_namespaces | ( | self | ) |
Get the full namespace list.
Definition at line 127 of file interface_parser/namespace.py.
"Namespace" gtwrap.interface_parser.namespace.Namespace.top_level | ( | self | ) |
Return the top level namespace.
Definition at line 117 of file interface_parser/namespace.py.
gtwrap.interface_parser.namespace.Namespace.content |
Definition at line 81 of file interface_parser/namespace.py.
gtwrap.interface_parser.namespace.Namespace.name |
Definition at line 80 of file interface_parser/namespace.py.
gtwrap.interface_parser.namespace.Namespace.parent |
Definition at line 82 of file interface_parser/namespace.py.
|
static |
Definition at line 61 of file interface_parser/namespace.py.