#include <ast.h>
Inheritance diagram for IfStatementAST:


Definition at line 1290 of file ast.h.
Public Types | |
| enum | |
Public Member Functions | |
| IfStatementAST () | |
| ConditionAST * | condition () const |
| void | setCondition (ConditionAST *condition) |
| StatementAST * | statement () const |
| void | setStatement (StatementAST *statement) |
| StatementAST * | elseStatement () const |
| void | setElseStatement (StatementAST *statement) |
Private Member Functions | |
| IfStatementAST (const IfStatementAST &source) | |
| void | operator= (const IfStatementAST &source) |
Private Attributes | |
| ConditionAST * | m_condition |
| StatementAST * | m_statement |
| StatementAST * | m_elseStatement |
| anonymous enum |
| IfStatementAST::IfStatementAST | ( | ) |
Definition at line 644 of file ast.cpp.
00645 : m_condition(0), 00646 m_statement(0), 00647 m_elseStatement(0) 00648 { 00649 }
| IfStatementAST::IfStatementAST | ( | const IfStatementAST & | source | ) | [private] |
| ConditionAST* IfStatementAST::condition | ( | ) | const [inline] |
Definition at line 1298 of file ast.h.
References m_condition.
Referenced by TreeWalker::parseIfStatement(), and setCondition().
01298 { return m_condition; }
| void IfStatementAST::setCondition | ( | ConditionAST * | condition | ) |
Definition at line 651 of file ast.cpp.
References condition(), m_condition, and AST::setParent().
Referenced by Parser::parseIfStatement().
00652 { 00653 m_condition = condition; 00654 if (m_condition) m_condition->setParent(this); 00655 }
Here is the call graph for this function:

| StatementAST* IfStatementAST::statement | ( | ) | const [inline] |
Definition at line 1301 of file ast.h.
References m_statement.
Referenced by TreeWalker::parseIfStatement(), and setStatement().
01301 { return m_statement; }
| void IfStatementAST::setStatement | ( | StatementAST * | statement | ) |
Definition at line 657 of file ast.cpp.
References m_statement, AST::setParent(), and statement().
Referenced by Parser::parseIfStatement().
00658 { 00659 m_statement = statement; 00660 if (m_statement) m_statement->setParent(this); 00661 }
Here is the call graph for this function:

| StatementAST* IfStatementAST::elseStatement | ( | ) | const [inline] |
Definition at line 1304 of file ast.h.
References m_elseStatement.
Referenced by TreeWalker::parseIfStatement(), and setElseStatement().
01304 { return m_elseStatement; }
| void IfStatementAST::setElseStatement | ( | StatementAST * | statement | ) |
Definition at line 663 of file ast.cpp.
References elseStatement(), m_elseStatement, and AST::setParent().
Referenced by Parser::parseIfStatement().
00664 { 00665 m_elseStatement = elseStatement; 00666 if (m_elseStatement) m_elseStatement->setParent(this); 00667 }
Here is the call graph for this function:

| void IfStatementAST::operator= | ( | const IfStatementAST & | source | ) | [private] |
ConditionAST* IfStatementAST::m_condition [private] |
StatementAST* IfStatementAST::m_statement [private] |
StatementAST* IfStatementAST::m_elseStatement [private] |
1.5.1