Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a method declaration and its statements. More...
#include <omScriptingMirMethods.h>
Public Member Functions | |
Method (const Shared< MethodDeclaration > &newDeclaration) | |
Create a new method object with the specified declaration. More... | |
const Shared< MethodDeclaration > & | getDeclaration () const |
Return a pointer to the declaration of this method. More... | |
Public Member Functions inherited from om::scripting::mir::lang::FunctionBody | |
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 Position & | getPosition () 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< Method > | construct (const Shared< MethodDeclaration > &newDeclaration) |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More... | |
A class that represents a method declaration and its statements.
|
inline |
Create a new method object with the specified declaration.
|
inline |
Return a pointer to the declaration of this method.
|
inlinestatic |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.