Public Member Functions | |
__init__ (name, nodetype='nonterminal', attr=None, parent=None, children=None, isRoot=False) | |
__str__ () | |
__repr__ () | |
get_surface () | |
get_prol_surface () | |
get_value_of (key) | |
get_parent () | |
get_root () | |
get_children () | |
get_attr_list () | |
set_movable () | |
is_movable () | |
set_child (child) | |
set_all_children (childList) | |
set_parent (parent) | |
set_value_of (key, value) | |
set_all_attrs (attrList) | |
traverse () | |
prologRepr () | |
printProlVal (val) | |
printProlAttr (attrTup) |
|
|
|
|
|
|
|
returns a list of all feature names the node defines (no values!) |
|
returns the children list of the node |
|
returns the parent of the node |
|
returns the surface in prolog notation: a list of words, the capitalized ones in single quotation marks: '' |
|
returns the root node that the node is a child of |
|
returns the surface of the node, a string of one or more words |
|
returns the value of the feature 'key' |
|
checks whether a node is 'movable' (Satzteil) |
|
returns a prolog representation of a given attribute value pair |
|
returns a prolog representation of a given value |
|
returns a string representation of the node an its children that can be interpreted by the prolog grammar |
|
takes a list of key-value tuples and calls set_value_of for each of them |
|
sets all children of the node at once |
|
adds a child to the node's children list |
|
declares the node as 'movable' (= Satzteil) |
|
sets the parent of the node |
|
overwrites the value of key, if it already exists or appends a new key-value pair to the attr list |
|
traverses the children of node |