Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the declaration of a class or namespace-level method. More...
#include <omScriptingMirMethods.h>
Public Member Functions | |
MethodDeclaration (Visibility newVisibility, const Shared< lang::Type > &newReturnType, const Shared< Identifier > &newName, const Shared< TemplateDeclaration > &newTemplateDeclaration, Bool newIsStatic, Bool newIsVirtual, Bool newIsConst) | |
Create a new method declaration object with the specified attributes. More... | |
const Shared< lang::Type > & | getReturnType () const |
Return a pointer to the type of the method that is declared. More... | |
const Shared< Identifier > & | getName () const |
Return a pointer to an identifier representing the name of this field. More... | |
Public Member Functions inherited from om::scripting::mir::lang::FunctionDeclaration | |
Visibility | getVisibility () const |
Return an object representing the visibility type of this function declaration. More... | |
void | setVisibility (Visibility newVisibility) |
Set the visibility of this function declaration to the specified type. More... | |
const Shared< TemplateDeclaration > & | getTemplateDeclaration () const |
Return an optionally NULL pointer to the template declaration of this function. More... | |
Bool | getIsTemplate () const |
Return whether or not this function declaration is a template. More... | |
Bool | getIsStatic () const |
Return whether or not this function is a static member of its enclosing class. More... | |
void | setIsStatic (Bool newIsStatic) |
Set whether or not this function is a static member of its enclosing class. More... | |
Bool | getIsVirtual () const |
Return whether or not this function is virtual and can be overridden. More... | |
Bool | getIsConst () const |
Return whether or not this function is a constant function in its enclosing class. More... | |
void | setIsConst (Bool newIsConst) |
Set whether or not this function is a constant function in its enclosing class. More... | |
Size | getParameterCount () const |
Return the number of parameters that this function declaration has. More... | |
const Shared< VariableDeclaration > & | getParameter (Index parameterIndex) const |
Return a pointer to the parameter declaration at the specified index in this function's parameter list. More... | |
Bool | addParameter (const Shared< VariableDeclaration > &newParameter) |
Add a new parameter to the end of this function declaration's signature. More... | |
Public Member Functions inherited from om::scripting::mir::lang::Declaration | |
DeclarationType | getDeclarationType () const |
Return the type of this declaration. 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< MethodDeclaration > | construct (Visibility newVisibility, const Shared< lang::Type > &newReturnType, const Shared< Identifier > &newName, const Shared< TemplateDeclaration > &newTemplateDeclaration, Bool newIsStatic, Bool newIsVirtual, Bool newIsConst) |
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::Declaration | |
enum | DeclarationType { NAMESPACE, TYPE, ALIAS, CLASS, INTERFACE, FIELD, METHOD, OPERATOR, CONSTRUCTOR, DESTRUCTOR, VARIABLE } |
An enum that specifies the different types of type declarations. More... | |
Protected Member Functions inherited from om::scripting::mir::lang::FunctionDeclaration | |
FunctionDeclaration (Declaration::DeclarationType type, Visibility newVisibility, const Shared< TemplateDeclaration > &newTemplateDeclaration, Bool newIsStatic, Bool newIsVirtual, Bool newIsConst) | |
Create a new function declaration object with the specified attributes. More... | |
Protected Member Functions inherited from om::scripting::mir::lang::Declaration | |
Declaration (DeclarationType newType) | |
Create a new declaration with the specified declaration type enum value. More... | |
A class that represents the declaration of a class or namespace-level method.
|
inline |
Create a new method declaration object with the specified attributes.
|
inline |
Return a pointer to the type of the method that is declared.
|
inline |
Return a pointer to an identifier representing the name of this field.
|
inlinestatic |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.