Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a field and initializing expression. More...
#include <omScriptingMirFields.h>
Public Member Functions | |
Field (const Shared< FieldDeclaration > &newDeclaration, const Shared< Expression > &newInitializer) | |
Create a new field declaration object with the specified visibility, type, and name. More... | |
const Shared< FieldDeclaration > & | getDeclaration () const |
Return a pointer to the declaration of this field. More... | |
const Shared< Expression > & | getInitializer () const |
Return an optionally NULL pointer to an expression representing the starting value of this field. More... | |
void | setInitializer (const Shared< Expression > &newInitializer) |
Set an optionally NULL pointer to an expression representing the starting value of this field. 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< Field > | construct (const Shared< FieldDeclaration > &newDeclaration, const Shared< Expression > &newInitializer) |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More... | |
A class that represents a field and initializing expression.
|
inline |
Create a new field declaration object with the specified visibility, type, and name.
|
inline |
Return a pointer to the declaration of this field.
|
inline |
Return an optionally NULL pointer to an expression representing the starting value of this field.
|
inline |
Set an optionally NULL pointer to an expression representing the starting value of this field.
|
inlinestatic |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.