Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents an floating-point literal within the source code. More...
#include <omScriptingMirLiterals.h>
Public Member Functions | |
FloatLiteral (const String &newSpelling) | |
Create a new float literal object with the specified spelling. More... | |
operator const String & () const | |
Return a string representing the spelling of this float literal in the source code. More... | |
const String & | getSpelling () const |
Return a string representing the spelling of this float literal in the source code. More... | |
lang::Type::Kind | getTypeKind () const |
Return an enum value representing the kind of type that this integer literal has. More... | |
Public Member Functions inherited from om::scripting::mir::lang::Literal | |
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 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< FloatLiteral > | construct (const String &newSpelling) |
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::Literal | |
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... | |
Protected Member Functions inherited from om::scripting::mir::lang::Literal | |
Literal (Type newType) | |
Create a new literal with the specified literal type enum value. More... | |
A class that represents an floating-point literal within the source code.
om::scripting::mir::lang::FloatLiteral::FloatLiteral | ( | const String & | newSpelling | ) |
Create a new float literal object with the specified spelling.
|
inline |
Return a string representing the spelling of this float literal in the source code.
|
inline |
Return a string representing the spelling of this float literal in the source code.
|
inline |
Return an enum value representing the kind of type that this integer literal has.
|
inlinestatic |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.