#include <abstractsyntaxtree.h>
Public Member Functions | |
ASTCondition (ASTNode *parent) | |
void | print (uint depth, DefinitionRegistry *definitions) override |
Common::Array< const ASTCommand * > | listCommands (uint16 index) const override |
void | findSuccessorsIntern (const ASTNode *node, ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const override |
const ASTCommand * | getFirstCommand () const override |
Public Member Functions inherited from Stark::Tools::ASTNode | |
ASTNode (ASTNode *parent) | |
void | findSuccessors (ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const |
Public Attributes | |
ASTCommand * | condition |
bool | invertedCondition |
ASTBlock * | thenBlock |
ASTBlock * | elseBlock |
Additional Inherited Members | |
Protected Member Functions inherited from Stark::Tools::ASTNode | |
void | printWithDepth (uint depth, const Common::String &string) const |
Protected Attributes inherited from Stark::Tools::ASTNode | |
ASTNode * | _parent |
Condition AST Node
An if / then / else branching condition.
|
overridevirtual |
Print the script source code for this node and its children
Implements Stark::Tools::ASTNode.
|
overridevirtual |
Recursively list all the commands in the tree with the requested index
Implements Stark::Tools::ASTNode.
|
overridevirtual |
Find the first command to be executed when running this job
Implements Stark::Tools::ASTNode.