#include <ASTNULLType.hpp>
Inheritance diagram for ASTNULLType:
Public Methods | |
const char * | typeName (void) const |
Return the type name for this AST node. (for XML output). | |
RefAST | clone (void) const |
Clone this AST node. | |
void | addChild (RefAST c) |
Add a node to the end of the child list for this node. | |
size_t | getNumberOfChildren () const |
Get the number of children. Returns 0 if the node is a leaf. | |
void | setFirstChild (RefAST c) |
Set the first child of a node. | |
void | setNextSibling (RefAST n) |
Set the next sibling after this one. | |
bool | equals (RefAST t) const |
Is node t equal to this in terms of token type and text? | |
bool | equalsList (RefAST t) const |
bool | equalsListPartial (RefAST t) const |
bool | equalsTree (RefAST t) const |
bool | equalsTreePartial (RefAST t) const |
ANTLR_USE_NAMESPACE (std) vector< RefAST > findAll(RefAST tree) | |
ANTLR_USE_NAMESPACE (std) vector< RefAST > findAllPartial(RefAST subtree) | |
RefAST | getFirstChild () const |
Get the first child of this node; null if no children. | |
RefAST | getNextSibling () const |
Get the next sibling in line after this one. | |
ANTLR_USE_NAMESPACE (std) string getText() const | |
Get the token text for this node. | |
int | getType () const |
Get the token type for this node. | |
void | initialize (int t, const ANTLR_USE_NAMESPACE(std) string &txt) |
void | initialize (RefAST t) |
void | initialize (RefToken t) |
void | initialize (ANTLR_USE_NAMESPACE(std) istream &infile) |
void | setText (const ANTLR_USE_NAMESPACE(std) string &text) |
Set the token text for this node. | |
void | setType (int ttype) |
Set the token type for this node. | |
ANTLR_USE_NAMESPACE (std) string toString() const | |
Get the token text for this node. | |
ANTLR_USE_NAMESPACE (std) string toStringList() const | |
Get the token text for this node. | |
ANTLR_USE_NAMESPACE (std) string toStringTree() const | |
Get the token text for this node. | |
bool | attributesToStream (ANTLR_USE_NAMESPACE(std) ostream &out) const |
void | toStream (ANTLR_USE_NAMESPACE(std) ostream &out) const |
|
Add a node to the end of the child list for this node.
Implements AST. |
|
Get the token text for this node.
Implements AST. |
|
Get the token text for this node.
Implements AST. |
|
Get the token text for this node.
Implements AST. |
|
Get the token text for this node.
Implements AST. |
|
Walk the tree looking for all exact subtree matches. Return a vector of RefAST that lets the caller walk the list of subtree roots found herein. Implements AST. |
|
Walk the tree looking for all exact subtree matches. Return a vector of RefAST that lets the caller walk the list of subtree roots found herein. Implements AST. |
|
|
|
Clone this AST node.
Implements AST. |
|
Is node t equal to this in terms of token type and text?
Implements AST. |
|
Is t an exact structural and equals() match of this tree. The 'this' reference is considered the start of a sibling list. Implements AST. |
|
Is 't' a subtree of this list? The siblings of the root are NOT ignored. Implements AST. |
|
Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored. Implements AST. |
|
Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored. Implements AST. |
|
Get the first child of this node; null if no children.
Implements AST. |
|
Get the next sibling in line after this one.
Implements AST. |
|
Get the number of children. Returns 0 if the node is a leaf.
Implements AST. |
|
Get the token type for this node.
Implements AST. |
|
|
|
Implements AST. |
|
Implements AST. |
|
Various initialization routines. Used by several factories to initialize an AST element. Implements AST. |
|
Set the first child of a node.
Implements AST. |
|
Set the next sibling after this one.
Implements AST. |
|
Set the token text for this node.
Implements AST. |
|
Set the token type for this node.
Implements AST. |
|
|
|
Return the type name for this AST node. (for XML output).
Implements AST. |