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::Literal Class Reference

A class that represents a literal numerical or string value within the source code. More...

#include <omScriptingMirLiterals.h>

Inheritance diagram for om::scripting::mir::lang::Literal:
om::scripting::mir::lang::ASTNode om::scripting::mir::lang::BooleanLiteral om::scripting::mir::lang::FloatLiteral om::scripting::mir::lang::IntegerLiteral om::scripting::mir::lang::NullLiteral om::scripting::mir::lang::StringLiteral

Public Types

enum  Type {
  INTEGER_LITERAL, FLOAT_LITERAL, STRING_LITERAL, BOOLEAN_LITERAL,
  NULL_LITERAL
}
 An enum that specifies the different kinds of visiblity for member declarations. More...
 

Public Member Functions

Type getType () const
 Convert this visibility type to an enum value. 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

 Literal (Type newType)
 Create a new literal with the specified literal type enum value. More...
 

Detailed Description

A class that represents a literal numerical or string value within the source code.

Member Enumeration Documentation

An enum that specifies the different kinds of visiblity for member declarations.

Enumerator
INTEGER_LITERAL 

The literal has a concrete type of IntegerLiteral.

FLOAT_LITERAL 

The literal has a concrete type of FloatLiteral.

STRING_LITERAL 

The literal has a concrete type of StringLiteral.

BOOLEAN_LITERAL 

The literal has a concrete type of BooleanLiteral.

NULL_LITERAL 

The literal has a concrete type of NullLiteral.

Constructor & Destructor Documentation

om::scripting::mir::lang::Literal::Literal ( Type  newType)
inlineprotected

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

Member Function Documentation

Type om::scripting::mir::lang::Literal::getType ( ) const
inline

Convert this visibility type to an enum value.


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