ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Tools::ASTCondition Struct Reference

Condition AST Node. More...

#include <abstractsyntaxtree.h>

Inheritance diagram for Stark::Tools::ASTCondition:
Collaboration diagram for Stark::Tools::ASTCondition:

List of all members.

Public Member Functions

 ASTCondition (ASTNode *parent)
 ~ASTCondition () override
void print (uint depth, DefinitionRegistry *definitions) override
 Print the script source code for this node and its children.
Common::Array< const ASTCommand * > listCommands (uint16 index) const override
 Recursively list all the commands in the tree with the requested index.
void findSuccessorsIntern (const ASTNode *node, ASTNode **follower, ASTNode **trueBranch, ASTNode **falseBranch) const override
const ASTCommandgetFirstCommand () const override
 Find the first command to be executed when running this job.

Public Attributes

ASTCommandcondition
bool invertedCondition
ASTBlockthenBlock
ASTBlockelseBlock

Detailed Description

Condition AST Node.

An if / then / else branching condition.

Definition at line 108 of file abstractsyntaxtree.h.


Constructor & Destructor Documentation

Stark::Tools::ASTCondition::ASTCondition ( ASTNode parent  ) 

Definition at line 156 of file abstractsyntaxtree.cpp.

Stark::Tools::ASTCondition::~ASTCondition (  )  [override]

Definition at line 165 of file abstractsyntaxtree.cpp.


Member Function Documentation

void Stark::Tools::ASTCondition::findSuccessorsIntern ( const ASTNode node,
ASTNode **  follower,
ASTNode **  trueBranch,
ASTNode **  falseBranch 
) const [override, virtual]

Implements Stark::Tools::ASTNode.

Definition at line 197 of file abstractsyntaxtree.cpp.

const ASTCommand * Stark::Tools::ASTCondition::getFirstCommand (  )  const [override, virtual]

Find the first command to be executed when running this job.

Implements Stark::Tools::ASTNode.

Definition at line 233 of file abstractsyntaxtree.cpp.

Common::Array< const ASTCommand * > Stark::Tools::ASTCondition::listCommands ( uint16  index  )  const [override, virtual]

Recursively list all the commands in the tree with the requested index.

Implements Stark::Tools::ASTNode.

Definition at line 185 of file abstractsyntaxtree.cpp.

void Stark::Tools::ASTCondition::print ( uint  depth,
DefinitionRegistry definitions 
) [override, virtual]

Print the script source code for this node and its children.

Implements Stark::Tools::ASTNode.

Definition at line 171 of file abstractsyntaxtree.cpp.


Member Data Documentation


The documentation for this struct was generated from the following files:


Generated on Sat Aug 17 2019 05:03:41 for ResidualVM by doxygen 1.7.1
curved edge   curved edge