org.jmodelica.modelica.compiler.FIntegerType Class Reference

Class representing the primitive type Integer. More...

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

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
FIntegerType clone () throws CloneNotSupportedException
 internal
FIntegerType copy ()
 internal
FIntegerType fullCopy ()
 low-level
FExp zeroLiteral ()
 method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:935
FExp createLiteral (int v)
 method BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:943
FVariable createFVariable (FVisibilityType fvt, FQName name, boolean param)
 method Scalarization /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Scalarization.jrag:1355
 FIntegerType ()
 method FlatModelica.ast:1
 FIntegerType (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 neg (CValue v)
 Negation of a constant value.
CValue abs (CValue v)
 Abs expression for constant values.
boolean canBeRange ()
 syn FlatTypeAnalysis /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:286
boolean typeCompatible (FType type, boolean allowUnknown)
 syn FTypeCompatibility /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:694
boolean isInteger ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:806
boolean canBeIndex ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:871
FType scalarType ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:891
FType arrayType (Size size)
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:926
String name ()
 syn FlatNames /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1267
String signatureString ()
 Returns a string (tersely) describing this type.
String argType_C ()
 syn CCodeGen /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen.jrag:442
String exportWrapperType_C ()
 syn ExportFunctions /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/ExportFunctions.jadd:58
ASTNode rewriteTo ()
 internal

Static Public Attributes

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

Protected Member Functions

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


Detailed Description

Class representing the primitive type Integer.

node FlatModelica.ast:291


Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.FIntegerType.FIntegerType (  ) 

method FlatModelica.ast:1

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

method FlatModelica.ast:7


Member Function Documentation

CValue org.jmodelica.modelica.compiler.FIntegerType.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:2284

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

CValue org.jmodelica.modelica.compiler.FIntegerType.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:2206

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

String org.jmodelica.modelica.compiler.FIntegerType.argType_C (  ) 

syn CCodeGen /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen.jrag:442

Reimplemented from org.jmodelica.modelica.compiler.FPrimitiveType.

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

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

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

boolean org.jmodelica.modelica.compiler.FIntegerType.canBeIndex (  ) 

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

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

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

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

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

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

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

internal

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

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

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

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

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

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

CValue org.jmodelica.modelica.compiler.FIntegerType.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:2248

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

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

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

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

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

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

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

low-level

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

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

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

boolean org.jmodelica.modelica.compiler.FIntegerType.isInteger (  ) 

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

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

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

internal method FlatModelica.ast:19

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

CValue org.jmodelica.modelica.compiler.FIntegerType.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:2234

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

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

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

Implements org.jmodelica.modelica.compiler.FType.

CValue org.jmodelica.modelica.compiler.FIntegerType.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:2272

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

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

low-level method FlatModelica.ast:13

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

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

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

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

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

void org.jmodelica.modelica.compiler.FIntegerType.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.FIntegerType.signatureString (  ) 

Returns a string (tersely) describing this type.

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

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

CValue org.jmodelica.modelica.compiler.FIntegerType.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:2220

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

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

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

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

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

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

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


Member Data Documentation

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


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

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