![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
AST node for a call statement. More...
#include <ElftosbAST.h>
Inheritance diagram for elftosb::CallStatementASTNode:
Collaboration diagram for elftosb::CallStatementASTNode:Public Types | |
| enum | call_type_t { kCallType, kJumpType } |
| Possible sub-types of call statements. | |
Public Member Functions | |
| CallStatementASTNode (call_type_t callType=kCallType) | |
| CallStatementASTNode (call_type_t callType, ASTNode *target, ASTNode *arg, ASTNode *sp) | |
| CallStatementASTNode (const CallStatementASTNode &other) | |
| virtual ASTNode * | clone () const |
| Returns an exact duplicate of this object. | |
| virtual std::string | nodeName () const |
| Returns the name of the object's class. | |
| virtual void | printTree (int indent) const |
| void | setCallType (call_type_t callType) |
| call_type_t | getCallType () |
| void | setTarget (ASTNode *target) |
| ASTNode * | getTarget () |
| void | setArgument (ASTNode *arg) |
| ASTNode * | getArgument () |
| void | setIsHAB (bool isHAB) |
| bool | isHAB () const |
| void | setStackPointer (ASTNode *arg) |
| ASTNode * | getStackPointer () |
Public Member Functions inherited from elftosb::StatementASTNode | |
| StatementASTNode (const StatementASTNode &other) | |
Public Member Functions inherited from elftosb::ASTNode | |
| ASTNode () | |
| Default constructor. | |
| ASTNode (ASTNode *parent) | |
| Constructor taking a parent node. | |
| ASTNode (const ASTNode &other) | |
| Copy constructor. | |
| virtual | ~ASTNode () |
| Destructor. | |
| virtual ASTNode * | getParent () const |
| virtual void | setParent (ASTNode *newParent) |
| virtual void | printTree () const |
| 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 Attributes | |
| call_type_t | m_type |
| smart_ptr< ASTNode > | m_target |
| This becomes the IVT address in HAB mode. | |
| smart_ptr< ASTNode > | m_arg |
| smart_ptr< ASTNode > | m_stackPointer |
| bool | m_isHAB |
| Stack pointer node for "jump sp" command. | |
Protected Attributes inherited from elftosb::ASTNode | |
| 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. | |
Additional Inherited Members | |
Protected Member Functions inherited from elftosb::ASTNode | |
| void | printIndent (int indent) const |
| Prints indent number of spaces. | |
AST node for a call statement.