OpenMD 3.1
Molecular Dynamics in the Open
|
Public Member Functions | |
CommonAST (RefToken t) | |
CommonAST (const CommonAST &other) | |
virtual const char * | typeName (void) const |
Return the class name. | |
virtual RefAST | clone (void) const |
Clone this AST node. | |
virtual std::string | getText () const |
Get the token text for this node. | |
virtual int | getType () const |
Get the token type for this node. | |
virtual void | initialize (int t, const std ::string &txt) |
Various initialization routines. | |
virtual void | initialize (RefAST t) |
virtual void | initialize (RefToken t) |
virtual void | setText (const std ::string &txt) |
Set the token text for this node. | |
virtual void | setType (int type) |
Set the token type for this node. | |
Public Member Functions inherited from antlr::BaseAST | |
BaseAST (const BaseAST &other) | |
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 |
Is t an exact structural and equals() match of this tree. | |
virtual bool | equalsListPartial (RefAST t) const |
Is 't' a subtree of this list? The siblings of the root are NOT ignored. | |
virtual bool | equalsTree (RefAST t) const |
Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored. | |
virtual bool | equalsTreePartial (RefAST t) const |
Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored. | |
virtual std ::vector< RefAST > | findAll (RefAST t) |
Walk the tree looking for all exact subtree matches. | |
virtual std ::vector< RefAST > | findAllPartial (RefAST t) |
Walk the tree looking for all subtrees. | |
virtual void | addChild (RefAST c) |
Add a node to the end of the child list for this node. | |
virtual size_t | getNumberOfChildren () const |
Get the number of child nodes of this node (shallow e.g. | |
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 void | removeChildren () |
Remove all children. | |
virtual void | setFirstChild (RefAST c) |
Set the first child of a node. | |
virtual void | setNextSibling (RefAST n) |
Set the next sibling after this one. | |
virtual std::string | toString () const |
Return string representation for the AST. | |
virtual std::string | toStringList () const |
Print out a child sibling tree in LISP notation. | |
virtual std::string | toStringTree () const |
Public Member Functions inherited from antlr::AST | |
AST (const AST &) | |
Static Public Member Functions | |
static RefAST | factory () |
Static Public Attributes | |
static const char *const | TYPE_NAME = "CommonAST" |
Protected Attributes | |
int | ttype |
std::string | text |
Protected Attributes inherited from antlr::BaseAST | |
RefBaseAST | down |
RefBaseAST | right |
Definition at line 18 of file CommonAST.hpp.
|
inline |
Definition at line 20 of file CommonAST.hpp.
|
inline |
Definition at line 27 of file CommonAST.hpp.
|
inline |
Definition at line 34 of file CommonAST.hpp.
|
inlinevirtual |
Definition at line 41 of file CommonAST.hpp.
|
inlinevirtual |
Clone this AST node.
Implements antlr::BaseAST.
Reimplemented in antlr::CommonASTWithHiddenTokens.
Definition at line 51 of file CommonAST.hpp.
|
static |
Definition at line 41 of file CommonAST.cpp.
|
inlinevirtual |
Get the token text for this node.
Reimplemented from antlr::BaseAST.
Definition at line 57 of file CommonAST.hpp.
|
inlinevirtual |
Get the token type for this node.
Reimplemented from antlr::BaseAST.
Definition at line 61 of file CommonAST.hpp.
|
inlinevirtual |
Various initialization routines.
Used by several factories to initialize an AST element.
Implements antlr::AST.
Reimplemented in antlr::CommonASTWithHiddenTokens.
Definition at line 66 of file CommonAST.hpp.
|
inlinevirtual |
Implements antlr::AST.
Definition at line 72 of file CommonAST.hpp.
|
inlinevirtual |
Implements antlr::AST.
Definition at line 77 of file CommonAST.hpp.
|
inlinevirtual |
Set the token text for this node.
Reimplemented from antlr::BaseAST.
Definition at line 87 of file CommonAST.hpp.
|
inlinevirtual |
Set the token type for this node.
Reimplemented from antlr::BaseAST.
Definition at line 91 of file CommonAST.hpp.
|
inlinevirtual |
Return the class name.
Implements antlr::BaseAST.
Reimplemented in antlr::CommonASTWithHiddenTokens.
Definition at line 45 of file CommonAST.hpp.
|
protected |
Definition at line 101 of file CommonAST.hpp.
|
protected |
Definition at line 100 of file CommonAST.hpp.
|
static |
Definition at line 98 of file CommonAST.hpp.