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::Method Class Reference

A class that represents a method declaration and its statements. More...

#include <omScriptingMirMethods.h>

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

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 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< Methodconstruct (const Shared< MethodDeclaration > &newDeclaration)
 Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More...
 

Detailed Description

A class that represents a method declaration and its statements.

Constructor & Destructor Documentation

om::scripting::mir::lang::Method::Method ( const Shared< MethodDeclaration > &  newDeclaration)
inline

Create a new method object with the specified declaration.

Member Function Documentation

const Shared<MethodDeclaration>& om::scripting::mir::lang::Method::getDeclaration ( ) const
inline

Return a pointer to the declaration of this method.

static Shared<Method> om::scripting::mir::lang::Method::construct ( const Shared< MethodDeclaration > &  newDeclaration)
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: