#include <IfNode.h>
Public Member Functions | |
| IfNode (unsigned long code_ref, ExpressionNode *if_expression_node, BlockNode *if_block_node) | |
| ~IfNode (void) | |
| const ExpressionNode * | get_if_expression_node () const |
| const BlockNode * | get_if_block_node () const |
| const ExpressionNodes * | get_elseif_expression_nodes () const |
| const BlockNodes * | get_elseif_block_nodes () const |
| const BlockNode * | get_else_block_node () const |
| void | add_elseif (ExpressionNode *elseif_expression_node, BlockNode *elseif_block_node) |
| void | set_else_block (BlockNode *else_block_node) |
| void | build (building::Builder *builder) const |
Represents an if-command node within the syntax tree built by the parser.
| el7::scripting::parsing::IfNode::IfNode | ( | unsigned long | code_ref, | |
| ExpressionNode * | if_expression_node, | |||
| BlockNode * | if_block_node | |||
| ) |
Explicit constructor.
| el7::scripting::parsing::IfNode::~IfNode | ( | void | ) |
Destructor.
| void el7::scripting::parsing::IfNode::add_elseif | ( | ExpressionNode * | elseif_expression_node, | |
| BlockNode * | elseif_block_node | |||
| ) |
Adds an expression node and a block node representing an elseif-expression to evaluate and the block of commands to execute.
| void el7::scripting::parsing::IfNode::build | ( | building::Builder * | builder | ) | const [virtual] |
Implements el7::scripting::parsing::Node.
| const BlockNode* el7::scripting::parsing::IfNode::get_else_block_node | ( | ) | const [inline] |
The block node representing the commands to execute within the else-block.
| const BlockNodes* el7::scripting::parsing::IfNode::get_elseif_block_nodes | ( | ) | const [inline] |
Returns the list of block nodes representing the commands to execute within the elseif-blocks.
| const ExpressionNodes* el7::scripting::parsing::IfNode::get_elseif_expression_nodes | ( | ) | const [inline] |
Returns the list of expression nodes representing the elseif-expressions to evaluate.
| const BlockNode* el7::scripting::parsing::IfNode::get_if_block_node | ( | ) | const [inline] |
Returns the block node representing the commands to execute within the if-block.
| const ExpressionNode* el7::scripting::parsing::IfNode::get_if_expression_node | ( | ) | const [inline] |
Returns the expression node representing the if-expression to evaluate.
| void el7::scripting::parsing::IfNode::set_else_block | ( | BlockNode * | else_block_node | ) |
Sets the block node representing the commands to execute within the else-block.
1.7.1