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

A class that represents a function's body and its statements. More...

#include <omScriptingMirMethods.h>

Inheritance diagram for om::scripting::mir::lang::FunctionBody:
om::scripting::mir::lang::ASTNode om::scripting::mir::lang::Constructor om::scripting::mir::lang::Method om::scripting::mir::lang::Operator

Public Member Functions

 FunctionBody ()
 Create a new function body object with no statements. More...
 
Size getStatementCount () const
 Return the number of statements that this function body contains. More...
 
const Shared< Statement > & getStatement (Index statementIndex) const
 Return a pointer to the statement at the specified index in this function body. More...
 
Bool addStatement (const Shared< Statement > &newStatement)
 Add the specified statement to the end of this function body's statement list. 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...
 

Detailed Description

A class that represents a function's body and its statements.

Constructor & Destructor Documentation

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

Create a new function body object with no statements.

Member Function Documentation

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

Return the number of statements that this function body contains.

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

Return a pointer to the statement at the specified index in this function body.

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

Add the specified statement to the end of this function body's statement list.


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