Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the declaration of a scope, type, field, or method. More...
#include <omScriptingMirDeclaration.h>
Public Types | |
enum | DeclarationType { NAMESPACE, TYPE, ALIAS, CLASS, INTERFACE, FIELD, METHOD, OPERATOR, CONSTRUCTOR, DESTRUCTOR, VARIABLE } |
An enum that specifies the different types of type declarations. More... | |
Public Member Functions | |
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... | |
Protected Member Functions | |
Declaration (DeclarationType newType) | |
Create a new declaration with the specified declaration type enum value. More... | |
A class that represents the declaration of a scope, type, field, or method.
An enum that specifies the different types of type declarations.
Enumerator | |
---|---|
NAMESPACE |
Indicates an instance of NamespaceDeclaration that represents a namespace scope. |
TYPE |
Indicates an instance of TypeDeclaration that represents a new type. |
ALIAS |
Indicates an instance of TypeDeclaration that represents an aliased type. |
CLASS |
Indicates an instance of ClassDeclaration that represents a class type. |
INTERFACE |
Indicates an instance of ClassDeclaration that represents an interface type. |
FIELD |
Indicates an instance of FieldDeclaration. |
METHOD |
Indicates an instance of MethodDeclaration. |
OPERATOR |
Indicates an instance of OperatorDeclaration. |
CONSTRUCTOR |
Indicates an instance of ConstructorDeclaration. |
DESTRUCTOR |
Indicates an instance of DestructorDeclaration. |
VARIABLE |
Indicates an instance of VariableDeclaration. |
|
inlineprotected |
Create a new declaration with the specified declaration type enum value.
|
inline |
Return the type of this declaration.