org.jmodelica.modelica.compiler.CValueReal Class Reference

Constant real value. More...

Inheritance diagram for org.jmodelica.modelica.compiler.CValueReal:

org.jmodelica.modelica.compiler.CValue

List of all members.

Public Member Functions

 CValueReal (double d)
 Constructor.
int intValue ()
 Convert to int.
double realValue ()
 Convert to double.
CValue convertReal ()
 Convert to CValueReal.
String stringValue ()
 Convert to string.
FLitExp buildLiteral ()
 Create a new literal expression AST node.
boolean isNumeric ()
 Returns true if the constant value is of numeric type.


Detailed Description

Constant real value.

class :0


Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.CValueReal.CValueReal ( double  d  ) 

Constructor.

Parameters:
d Double value.


Member Function Documentation

FLitExp org.jmodelica.modelica.compiler.CValueReal.buildLiteral (  ) 

Create a new literal expression AST node.

Returns:
FRealLitExp AST node.

Reimplemented from org.jmodelica.modelica.compiler.CValue.

CValue org.jmodelica.modelica.compiler.CValueReal.convertReal (  ) 

Convert to CValueReal.

Reimplemented from org.jmodelica.modelica.compiler.CValue.

int org.jmodelica.modelica.compiler.CValueReal.intValue (  ) 

Convert to int.

Returns:
Value converted to int.

Reimplemented from org.jmodelica.modelica.compiler.CValue.

boolean org.jmodelica.modelica.compiler.CValueReal.isNumeric (  ) 

Returns true if the constant value is of numeric type.

Returns:
True.

Reimplemented from org.jmodelica.modelica.compiler.CValue.

double org.jmodelica.modelica.compiler.CValueReal.realValue (  ) 

Convert to double.

Returns:
Value converted to double.

Reimplemented from org.jmodelica.modelica.compiler.CValue.

String org.jmodelica.modelica.compiler.CValueReal.stringValue (  ) 

Convert to string.

Returns:
Value converted to string.

Reimplemented from org.jmodelica.modelica.compiler.CValue.


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

Generated on Fri Oct 7 14:49:35 2011 for JModelica.org by  doxygen 1.5.8