Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Member Functions | List of all members
om::scripting::mir::lang::BlockStatement Class Reference

A class that represents a new statement scope block. More...

#include <omScriptingMirStatements.h>

Inheritance diagram for om::scripting::mir::lang::BlockStatement:
om::scripting::mir::lang::Statement om::scripting::mir::lang::ASTNode

Public Member Functions

 BlockStatement ()
 Create a new block statement with no statements in its scope.. More...
 
Size getStatementCount () const
 Return the number of statements that are in this block statement's scope. More...
 
const Shared< Statement > & getStatement (Index statementIndex) const
 Return a pointer to the statement within this block statement at the specified index. More...
 
Bool addStatement (const Shared< Statement > &newStatement)
 Add the specified statement to the end of this block statement's scope. More...
 
- Public Member Functions inherited from om::scripting::mir::lang::Statement
 Statement (Type newType)
 Create a new statement with the specified statement type enum value. More...
 
Type getType () const
 Return the type of this statement. More...
 
- Public Member Functions inherited from om::scripting::mir::lang::ASTNode
 ASTNode ()
 Create a new AST node with no node position specified. More...
 
 ASTNode (const Position &newPosition)
 Create a new AST node which corresponds to a token starting at the specified source code position. More...
 
virtual ~ASTNode ()
 Destroy this AST node object. More...
 
const PositiongetPosition () const
 Return an object representing the position of this AST node in the source code. More...
 
void setPosition (const Position &newPosition)
 Set the position of this AST node in the source code. More...
 

Static Public Member Functions

static Shared< BlockStatementconstruct ()
 Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More...
 
- Static Public Member Functions inherited from om::scripting::mir::lang::Statement
static Shared< Statementconstruct (Type newType)
 Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More...
 

Additional Inherited Members

- Public Types inherited from om::scripting::mir::lang::Statement
enum  Type {
  BLOCK, IF, WHILE, FOR,
  SWITCH, EXPRESSION, RETURN, BREAK,
  CONTINUE, THROW, TRY_CATCH
}
 An enum that specifies the different types of statements. More...
 

Detailed Description

A class that represents a new statement scope block.

Constructor & Destructor Documentation

om::scripting::mir::lang::BlockStatement::BlockStatement ( )
inline

Create a new block statement with no statements in its scope..

Member Function Documentation

Size om::scripting::mir::lang::BlockStatement::getStatementCount ( ) const
inline

Return the number of statements that are in this block statement's scope.

const Shared<Statement>& om::scripting::mir::lang::BlockStatement::getStatement ( Index  statementIndex) const
inline

Return a pointer to the statement within this block statement at the specified index.

Bool om::scripting::mir::lang::BlockStatement::addStatement ( const Shared< Statement > &  newStatement)
inline

Add the specified statement to the end of this block statement's scope.

static Shared<BlockStatement> om::scripting::mir::lang::BlockStatement::construct ( )
inlinestatic

Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.


The documentation for this class was generated from the following file: