org.jmodelica.modelica.compiler.CValueBoolean Class Reference

Constant boolean value. More...

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

org.jmodelica.modelica.compiler.CValue

List of all members.

Public Member Functions

 CValueBoolean (boolean b)
 Constructor.
boolean booleanValue ()
 Convert to boolean.
int intValue ()
 Convert to int.
CValue convertBoolean ()
 Convert to CValueBoolean.
String stringValue ()
 Convert to string.
FLitExp buildLiteral ()
 Create a new literal expression AST node.

Static Public Attributes

static final CValueBoolean FALSE = new CValueBoolean(false)
 A CValueBolean with the value false, for conveniance.
static final CValueBoolean TRUE = new CValueBoolean(false)
 A CValueBolean with the value true, for conveniance.


Detailed Description

Constant boolean value.

class :0


Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.CValueBoolean.CValueBoolean ( boolean  b  ) 

Constructor.

Parameters:
b Boolean value.


Member Function Documentation

boolean org.jmodelica.modelica.compiler.CValueBoolean.booleanValue (  ) 

Convert to boolean.

Returns:
Value converted to boolean.

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

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

Create a new literal expression AST node.

Returns:
FBooleanLitExp AST node.

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

CValue org.jmodelica.modelica.compiler.CValueBoolean.convertBoolean (  ) 

Convert to CValueBoolean.

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

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

Convert to int.

Used for array index and comparisons.

Returns:
Value converted to int.

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

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

Convert to string.

Returns:
Value converted to string.

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


Member Data Documentation

A CValueBolean with the value false, for conveniance.

A CValueBolean with the value true, for conveniance.


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

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