- add
Adds an element to the node. Returns the element for convenience. Not all nodes
support this operati
- get
Returns the specified element, or Token.NULL if safe is set and the specified
element is null (or do
- getMeaning
Returns the meaning of this node. If the node isEmpty(), returns the type of
Token.NULL.
- getRoot
Returns the root of the node, the Token that indicates it's type. Returns a
Token.NULL if safe and t
- getStartColumn
Returns the starting column of the node. Returns -1 if not known.
- getStartLine
Returns the starting line of the node. Returns -1 if not known.
- isA
Returns true if the node's meaning matches the specified type.
- isEmpty
Returns true if the node is completely empty (no root, even).
- matches
Returns true if the node an it's first four children match the specified types.
Missing nodes have t
- setMeaning
Sets the meaning for this node (and it's root Token). Not valid if the node
isEmpty(). Returns the n
- size
Returns the number of elements in the node (including root).
- write
Formats the node and writes it to the specified Writer. The indent is prepended
to each output line,