Om  1.0.0
A universal framework for multimedia simulation
Public Types | Public Member Functions | Protected Member Functions | List of all members
om::scripting::mir::lang::Declaration Class Reference

A class that represents the declaration of a scope, type, field, or method. More...

#include <omScriptingMirDeclaration.h>

Inheritance diagram for om::scripting::mir::lang::Declaration:
om::scripting::mir::lang::ASTNode om::scripting::mir::lang::ClassDeclaration om::scripting::mir::lang::FieldDeclaration om::scripting::mir::lang::FunctionDeclaration om::scripting::mir::lang::NamespaceDeclaration om::scripting::mir::lang::TypeDeclaration om::scripting::mir::lang::VariableDeclaration om::scripting::mir::lang::ConstructorDeclaration om::scripting::mir::lang::MethodDeclaration om::scripting::mir::lang::OperatorDeclaration

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 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...
 

Protected Member Functions

 Declaration (DeclarationType newType)
 Create a new declaration with the specified declaration type enum value. More...
 

Detailed Description

A class that represents the declaration of a scope, type, field, or method.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

om::scripting::mir::lang::Declaration::Declaration ( DeclarationType  newType)
inlineprotected

Create a new declaration with the specified declaration type enum value.

Member Function Documentation

DeclarationType om::scripting::mir::lang::Declaration::getDeclarationType ( ) const
inline

Return the type of this declaration.


The documentation for this class was generated from the following file: