|
ANTLR Support Libraries 2.7.1+
|
#include <CommonASTWithHiddenTokens.hpp>


Public Member Functions | |
| CommonASTWithHiddenTokens () | |
| virtual | ~CommonASTWithHiddenTokens () |
| virtual const char * | typeName (void) const |
| Return the class name. | |
| virtual RefAST | clone (void) const |
| Clone this AST node. | |
| virtual void | initialize (int t, const std ::string &txt) |
| virtual void | initialize (RefAST t) |
| virtual void | initialize (RefToken t) |
| virtual RefToken | getHiddenAfter () const |
| virtual RefToken | getHiddenBefore () const |
Public Member Functions inherited from CommonAST | |
| CommonAST () | |
| CommonAST (RefToken t) | |
| CommonAST (const CommonAST &other) | |
| virtual | ~CommonAST () |
| 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) |
| 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 BaseAST | |
| BaseAST () | |
| BaseAST (const BaseAST &other) | |
| virtual | ~BaseAST () |
| virtual const char * | typeName (void) const =0 |
| Return the class name. | |
| virtual RefAST | clone (void) const =0 |
| 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 std ::vector< RefAST > | findAll (RefAST t) |
| virtual 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 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. | |
| virtual void | setNextSibling (RefAST n) |
| Set the next sibling after this one. | |
| 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. | |
| 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 AST | |
| AST () | |
| AST (const AST &) | |
| virtual | ~AST () |
| virtual const char * | typeName (void) const =0 |
| Return the type name for this AST node. (for XML output) | |
| virtual RefAST | clone (void) const =0 |
| Clone this AST node. | |
| virtual bool | equals (RefAST t) const =0 |
| Is node t equal to this in terms of token type and text? | |
| virtual bool | equalsList (RefAST t) const =0 |
| virtual bool | equalsListPartial (RefAST t) const =0 |
| virtual bool | equalsTree (RefAST t) const =0 |
| virtual bool | equalsTreePartial (RefAST t) const =0 |
| virtual std ::vector< RefAST > | findAll (RefAST t)=0 |
| virtual std ::vector< RefAST > | findAllPartial (RefAST t)=0 |
| virtual void | addChild (RefAST c)=0 |
| Add a node to the end of the child list for this node. | |
| virtual size_t | getNumberOfChildren () const =0 |
| Get the number of children. Returns 0 if the node is a leaf. | |
| virtual RefAST | getFirstChild () const =0 |
| Get the first child of this node; null if no children. | |
| virtual RefAST | getNextSibling () const =0 |
| Get the next sibling in line after this one. | |
| virtual std::string | getText () const =0 |
| Get the token text for this node. | |
| virtual int | getType () const =0 |
| Get the token type for this node. | |
| virtual void | initialize (int t, const std ::string &txt)=0 |
| virtual void | initialize (RefAST t)=0 |
| virtual void | initialize (RefToken t)=0 |
| virtual void | setFirstChild (RefAST c)=0 |
| Set the first child of a node. | |
| virtual void | setNextSibling (RefAST n)=0 |
| Set the next sibling after this one. | |
| virtual void | setText (const std ::string &txt)=0 |
| Set the token text for this node. | |
| virtual void | setType (int type)=0 |
| Set the token type for this node. | |
| virtual std::string | toString () const =0 |
| Return this AST node as a string. | |
| virtual std::string | toStringList () const =0 |
| Print out a child-sibling tree in LISP notation. | |
| virtual std::string | toStringTree () const =0 |
Static Public Member Functions | |
| static RefAST | factory () |
Static Public Member Functions inherited from CommonAST | |
| static RefAST | factory () |
Static Public Attributes | |
| static const char *const | TYPE_NAME = "CommonASTWithHiddenTokens" |
Static Public Attributes inherited from CommonAST | |
| static const char *const | TYPE_NAME = "CommonAST" |
Protected Attributes | |
| RefToken | hiddenBefore |
| RefToken | hiddenAfter |
Protected Attributes inherited from CommonAST | |
| int | ttype |
| std::string | text |
Protected Attributes inherited from BaseAST | |
| RefBaseAST | down |
| RefBaseAST | right |
A CommonAST whose initialization copies hidden token information from the Token used to create a node.
| CommonASTWithHiddenTokens::CommonASTWithHiddenTokens | ( | ) |
|
virtual |
|
virtual |
|
static |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
Return the class name.
Reimplemented from CommonAST.
|
protected |
|
protected |
|
static |