org.jmodelica.modelica.compiler.FRealType Class Reference

Class representing the primitive type Real. More...

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

org.jmodelica.modelica.compiler.FPrimitiveNumericType org.jmodelica.modelica.compiler.FPrimitiveType org.jmodelica.modelica.compiler.FType org.jmodelica.modelica.compiler.BaseNode

List of all members.

Public Member Functions

void flushCache ()
 low-level
void flushCollectionCache ()
 internal
FRealType clone () throws CloneNotSupportedException
 internal
FRealType copy ()
 internal
FRealType fullCopy ()
 low-level
FExp zeroLiteral ()
 method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:934
FExp createLiteral (int v)
 method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:944
FVariable createFVariable (FVisibilityType fvt, FQName name, boolean param)
 method Scalarization /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Scalarization.jrag:1350
 FRealType ()
 method FlatModelica.ast:1
 FRealType (Size p0)
 method FlatModelica.ast:7
boolean mayHaveRewrite ()
 internal method FlatModelica.ast:19
void setSize (Size value)
 Setter for lexeme Size high-level method FlatModelica.ast:5.
Size getSize ()
 Getter for lexeme Size high-level method FlatModelica.ast:12.
CValue add (CValue v1, CValue v2)
 Addition of constant values.
CValue sub (CValue v1, CValue v2)
 Subtraction of constant values.
CValue mul (CValue v1, CValue v2)
 Multiplication of constant values.
CValue div (CValue v1, CValue v2)
 Division of constant values.
CValue pow (CValue v1, CValue v2)
 Power expression for constant values.
CValue neg (CValue v)
 Negation of a constant value.
CValue abs (CValue v)
 Abs expression for constant values.
CValue equ (CValue v1, CValue v2)
 Equals comparison for constant values.
CValue neq (CValue v1, CValue v2)
 Not equal comparison for constant values.
CValue geq (CValue v1, CValue v2)
 Greater or equal than comparison for constant values.
CValue gt (CValue v1, CValue v2)
 Greater than comparison for constant values.
CValue leq (CValue v1, CValue v2)
 Less or equal than comparison for constant values.
CValue lt (CValue v1, CValue v2)
 Less than comparison for constant values.
boolean canBeRange ()
 syn FlatTypeAnalysis /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:287
boolean typeCompatible (FType type, boolean allowUnknown)
 syn FTypeCompatibility /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:692
boolean isReal ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:804
FType scalarType ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:890
FType arrayType (Size size)
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:925
String name ()
 syn FlatNames /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1266
String signatureString ()
 Returns a string (tersely) describing this type.
String exportWrapperType_C ()
 syn ExportFunctions /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/ExportFunctions.jadd:57
ASTNode rewriteTo ()
 internal

Static Public Attributes

static final FRealType SCALAR = new FRealType(Size.SCALAR)
 method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:797

Protected Member Functions

int numChildren ()
 low-level method FlatModelica.ast:13


Detailed Description

Class representing the primitive type Real.

node FlatModelica.ast:286


Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.FRealType.FRealType (  ) 

method FlatModelica.ast:1

org.jmodelica.modelica.compiler.FRealType.FRealType ( Size  p0  ) 

method FlatModelica.ast:7


Member Function Documentation

CValue org.jmodelica.modelica.compiler.FRealType.abs ( CValue  v  ) 

Abs expression for constant values.

Parameters:
v Constant value of operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2282

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.add ( CValue  v1,
CValue  v2 
)

Addition of constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2204

Reimplemented from org.jmodelica.modelica.compiler.FType.

FType org.jmodelica.modelica.compiler.FRealType.arrayType ( Size  size  ) 

syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:925

Reimplemented from org.jmodelica.modelica.compiler.FType.

boolean org.jmodelica.modelica.compiler.FRealType.canBeRange (  ) 

syn FlatTypeAnalysis /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:287

Reimplemented from org.jmodelica.modelica.compiler.FType.

FRealType org.jmodelica.modelica.compiler.FRealType.clone (  )  throws CloneNotSupportedException

FRealType org.jmodelica.modelica.compiler.FRealType.copy (  ) 

internal

FVariable org.jmodelica.modelica.compiler.FRealType.createFVariable ( FVisibilityType  fvt,
FQName  name,
boolean  param 
)

method Scalarization /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Scalarization.jrag:1350

Reimplemented from org.jmodelica.modelica.compiler.FType.

FExp org.jmodelica.modelica.compiler.FRealType.createLiteral ( int  v  ) 

method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:944

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.div ( CValue  v1,
CValue  v2 
)

Division of constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2246

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.equ ( CValue  v1,
CValue  v2 
)

Equals comparison for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2331

Reimplemented from org.jmodelica.modelica.compiler.FType.

String org.jmodelica.modelica.compiler.FRealType.exportWrapperType_C (  ) 

syn ExportFunctions /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/ExportFunctions.jadd:57

Reimplemented from org.jmodelica.modelica.compiler.FType.

void org.jmodelica.modelica.compiler.FRealType.flushCache (  ) 

void org.jmodelica.modelica.compiler.FRealType.flushCollectionCache (  ) 

FRealType org.jmodelica.modelica.compiler.FRealType.fullCopy (  ) 

low-level

CValue org.jmodelica.modelica.compiler.FRealType.geq ( CValue  v1,
CValue  v2 
)

Greater or equal than comparison for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2363

Reimplemented from org.jmodelica.modelica.compiler.FType.

Size org.jmodelica.modelica.compiler.FRealType.getSize (  ) 

Getter for lexeme Size high-level method FlatModelica.ast:12.

Reimplemented from org.jmodelica.modelica.compiler.FPrimitiveNumericType.

CValue org.jmodelica.modelica.compiler.FRealType.gt ( CValue  v1,
CValue  v2 
)

Greater than comparison for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2379

Reimplemented from org.jmodelica.modelica.compiler.FType.

boolean org.jmodelica.modelica.compiler.FRealType.isReal (  ) 

syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:804

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.leq ( CValue  v1,
CValue  v2 
)

Less or equal than comparison for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2395

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.lt ( CValue  v1,
CValue  v2 
)

Less than comparison for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2411

Reimplemented from org.jmodelica.modelica.compiler.FType.

boolean org.jmodelica.modelica.compiler.FRealType.mayHaveRewrite (  ) 

internal method FlatModelica.ast:19

Reimplemented from org.jmodelica.modelica.compiler.FPrimitiveNumericType.

CValue org.jmodelica.modelica.compiler.FRealType.mul ( CValue  v1,
CValue  v2 
)

Multiplication of constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2232

Reimplemented from org.jmodelica.modelica.compiler.FType.

String org.jmodelica.modelica.compiler.FRealType.name (  )  [virtual]

syn FlatNames /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1266

Implements org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.neg ( CValue  v  ) 

Negation of a constant value.

Parameters:
v Constant value of operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2271

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.neq ( CValue  v1,
CValue  v2 
)

Not equal comparison for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2347

Reimplemented from org.jmodelica.modelica.compiler.FType.

int org.jmodelica.modelica.compiler.FRealType.numChildren (  )  [protected]

low-level method FlatModelica.ast:13

Reimplemented from org.jmodelica.modelica.compiler.FPrimitiveNumericType.

CValue org.jmodelica.modelica.compiler.FRealType.pow ( CValue  v1,
CValue  v2 
)

Power expression for constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2260

Reimplemented from org.jmodelica.modelica.compiler.FType.

ASTNode org.jmodelica.modelica.compiler.FRealType.rewriteTo (  ) 

FType org.jmodelica.modelica.compiler.FRealType.scalarType (  ) 

syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:890

Reimplemented from org.jmodelica.modelica.compiler.FType.

void org.jmodelica.modelica.compiler.FRealType.setSize ( Size  value  ) 

Setter for lexeme Size high-level method FlatModelica.ast:5.

Reimplemented from org.jmodelica.modelica.compiler.FPrimitiveNumericType.

String org.jmodelica.modelica.compiler.FRealType.signatureString (  ) 

Returns a string (tersely) describing this type.

See also:
FFunctionDecl.signatureString() syn FlatFunctionUtils /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1480

Reimplemented from org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FRealType.sub ( CValue  v1,
CValue  v2 
)

Subtraction of constant values.

Parameters:
v1 Constant value of left operand.
v2 Constant value of right operand.
Returns:
Resulting constant value. syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2218

Reimplemented from org.jmodelica.modelica.compiler.FType.

boolean org.jmodelica.modelica.compiler.FRealType.typeCompatible ( FType  type,
boolean  allowUnknown 
)

syn FTypeCompatibility /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:692

Reimplemented from org.jmodelica.modelica.compiler.FType.

FExp org.jmodelica.modelica.compiler.FRealType.zeroLiteral (  ) 

method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:934

Reimplemented from org.jmodelica.modelica.compiler.FType.


Member Data Documentation

method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:797


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

Generated on Fri Oct 7 14:50:17 2011 for JModelica.org by  doxygen 1.5.8