![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
The base class for all AST node classes. More...
#include <ElftosbAST.h>
Inheritance diagram for elftosb::ASTNode:
Collaboration diagram for elftosb::ASTNode:Public Member Functions | |
| ASTNode () | |
| Default constructor. | |
| ASTNode (ASTNode *parent) | |
| Constructor taking a parent node. | |
| ASTNode (const ASTNode &other) | |
| Copy constructor. | |
| virtual | ~ASTNode () |
| Destructor. | |
| virtual ASTNode * | clone () const =0 |
| Returns an exact duplicate of this object. | |
| virtual std::string | nodeName () const |
| Returns the name of the object's class. | |
Parents | |
| virtual ASTNode * | getParent () const |
| virtual void | setParent (ASTNode *newParent) |
Tree printing | |
| virtual void | printTree () const |
| virtual void | printTree (int indent) const |
Location | |
| virtual void | setLocation (token_loc_t &loc) |
| virtual void | setLocation (token_loc_t &first, token_loc_t &last) |
| virtual void | setLocation (ASTNode *loc) |
| virtual void | setLocation (ASTNode *first, ASTNode *last) |
| virtual token_loc_t & | getLocation () |
| virtual const token_loc_t & | getLocation () const |
| virtual int | getFirstLine () |
| virtual int | getLastLine () |
Protected Member Functions | |
| void | printIndent (int indent) const |
| Prints indent number of spaces. | |
Protected Attributes | |
| ASTNode * | m_parent |
| Pointer to parent node of this object. May be NULL. | |
| token_loc_t | m_location |
| Location of this node in the source file. | |
The base class for all AST node classes.