#include <BaseAST.hpp>
Inheritance diagram for BaseAST:

Public Methods | |
| BaseAST () | |
| BaseAST (const BaseAST &other) | |
| virtual | ~BaseAST () |
| virtual const char * | typeName (void) const |
| Return the class name. | |
| virtual RefAST | clone (void) const |
| Clone this AST node. | |
| virtual bool | equals (RefAST t) const |
| Is node t equal to this in terms of token type and text? | |
| virtual bool | equalsList (RefAST t) const |
| virtual bool | equalsListPartial (RefAST t) const |
| virtual bool | equalsTree (RefAST t) const |
| virtual bool | equalsTreePartial (RefAST t) const |
| virtual | ANTLR_USE_NAMESPACE (std) vector< RefAST > findAll(RefAST t) |
| virtual | ANTLR_USE_NAMESPACE (std) vector< RefAST > findAllPartial(RefAST t) |
| virtual void | addChild (RefAST c) |
| Add a node to the end of the child list for this node. | |
| virtual size_t | getNumberOfChildren () const |
| virtual RefAST | getFirstChild () const |
| Get the first child of this node; null if no children. | |
| virtual RefAST | getNextSibling () const |
| Get the next sibling in line after this one. | |
| virtual | ANTLR_USE_NAMESPACE (std) string getText() const |
| Get the token text for this node. | |
| virtual int | getType () const |
| Get the token type for this node. | |
| virtual void | removeChildren () |
| Remove all children. | |
| virtual void | setFirstChild (RefAST c) |
| Set the first child of a node. | |
| void | setNextSibling (RefAST n) |
| Set the next sibling after this one. | |
| virtual void | setText (const ANTLR_USE_NAMESPACE(std) string &txt) |
| Set the token text for this node. | |
| virtual void | setType (int type) |
| Set the token type for this node. | |
| virtual | ANTLR_USE_NAMESPACE (std) string toString() const |
| Return string representation for the AST. | |
| virtual | ANTLR_USE_NAMESPACE (std) string toStringList() const |
| Print out a child sibling tree in LISP notation. | |
| virtual | ANTLR_USE_NAMESPACE (std) string toStringTree() const |
| Get the token text for this node. | |
Static Public Attributes | |
| const char *const | TYPE_NAME = "BaseAST" |
Protected Attributes | |
| RefBaseAST | down |
| RefBaseAST | right |
|
|
|
|
|
|
|
|
|
|
|
Add a node to the end of the child list for this node.
Implements AST. |
|
|
Get the token text for this node.
Implements AST. Reimplemented in CommonAST. |
|
|
Print out a child sibling tree in LISP notation.
Implements AST. Reimplemented in CommonAST. |
|
|
Return string representation for the AST.
Implements AST. Reimplemented in CommonAST. |
|
|
Get the token text for this node.
Implements AST. Reimplemented in CommonAST. |
|
|
Walk the tree looking for all subtrees. Return an ASTEnumerator that lets the caller walk the list of subtree roots found herein. Implements AST. Reimplemented in CommonAST. |
|
|
Walk the tree looking for all exact subtree matches. Return an ASTEnumerator that lets the caller walk the list of subtree roots found herein. Implements AST. Reimplemented in CommonAST. |
|
|
Clone this AST node.
Implements AST. Reimplemented in CommonAST, and CommonASTWithHiddenTokens. |
|
|
Is node t equal to this in terms of token type and text? 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 child nodes of this node (shallow e.g. not of the whole tree it spans). Implements AST. |
|
|
Get the token type for this node.
Implements AST. Reimplemented in CommonAST. |
|
|
Remove all children.
|
|
|
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. Reimplemented in CommonAST. |
|
|
Set the token type for this node.
Implements AST. Reimplemented in CommonAST. |
|
|
Return the class name.
Implements AST. Reimplemented in CommonAST, and CommonASTWithHiddenTokens. |
|
|
|
|
|
|
|
|
Reimplemented in CommonAST, and CommonASTWithHiddenTokens. |
1.2.18