Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the declaration of a derrived type or alias. More...
#include <omScriptingMirTypeDeclaration.h>
Public Member Functions | |
TypeDeclaration (Visibility newVisibility, const Shared< Identifier > &newName, const Shared< TemplateDeclaration > &newTemplateDeclaration, const Shared< lang::Type > &newBaseType, Bool newIsAlias) | |
Create a new type declaration object with the specified attributes. More... | |
Visibility | getVisibility () const |
Return an object representing the visibility type of this type declaration. More... | |
void | setVisibility (Visibility newVisibility) |
Set the visibility of this type declaration to the specified type. More... | |
const Shared< Identifier > & | getName () const |
Return a pointer to an identifier representing the name of this type declaration. More... | |
const Shared< Type > & | getBaseType () const |
Return a pointer to the base type of the alias or type that is declared. More... | |
const Shared< TemplateDeclaration > & | getTemplateDeclaration () const |
Return an optionally NULL pointer to the template declaration of this type. More... | |
Bool | getIsTemplate () const |
Return whether or not this type declaration is a template. 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< TypeDeclaration > | construct (Visibility newVisibility, const Shared< Identifier > &newName, const Shared< TemplateDeclaration > &newTemplateDeclaration, const Shared< lang::Type > &newBaseType, Bool newIsAlias) |
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::Declaration | |
Declaration (DeclarationType newType) | |
Create a new declaration with the specified declaration type enum value. More... | |
A class that represents the declaration of a derrived type or alias.
|
inline |
Create a new type declaration object with the specified attributes.
|
inline |
Return an object representing the visibility type of this type declaration.
|
inline |
Set the visibility of this type declaration to the specified type.
|
inline |
Return a pointer to an identifier representing the name of this type declaration.
Return a pointer to the base type of the alias or type that is declared.
|
inline |
Return an optionally NULL pointer to the template declaration of this type.
|
inline |
Return whether or not this type declaration is a template.
|
inlinestatic |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.