org.jmodelica.modelica.compiler.FPrimitiveNumericType Class Reference

Base class for the numeric types Real and Integer. More...

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

org.jmodelica.modelica.compiler.FPrimitiveType org.jmodelica.modelica.compiler.FType org.jmodelica.modelica.compiler.BaseNode org.jmodelica.modelica.compiler.FIntegerType org.jmodelica.modelica.compiler.FRealType

List of all members.

Public Member Functions

void flushCache ()
 low-level
void flushCollectionCache ()
 internal
FPrimitiveNumericType clone () throws CloneNotSupportedException
 internal
 FPrimitiveNumericType ()
 method FlatModelica.ast:1
 FPrimitiveNumericType (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.
FType numericPromotion (FType type, boolean allowUnknown)
 Combine two types to the broadest common numeric denominator.
FType looseNumericPromotion (FType type, boolean allowUnknown)
 Combine two types to the broadest common numeric denominator.
FType scalarNumericPromotion (FType type)
 Combine two types to the broadest common scalar numeric denominator.
boolean equivalentTo (FType type, boolean allowUnknown)
 syn FTypeEquivalent /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:755
boolean isNumeric ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:820
boolean hasAdd ()
 syn BuiltInFlatTypes /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:867
ASTNode rewriteTo ()
 internal

Protected Member Functions

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


Detailed Description

Base class for the numeric types Real and Integer.

node FlatModelica.ast:281


Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.FPrimitiveNumericType.FPrimitiveNumericType (  ) 

method FlatModelica.ast:1

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

method FlatModelica.ast:7


Member Function Documentation

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

boolean org.jmodelica.modelica.compiler.FPrimitiveNumericType.equivalentTo ( FType  type,
boolean  allowUnknown 
)

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

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

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

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

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

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

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

Reimplemented in org.jmodelica.modelica.compiler.FIntegerType, and org.jmodelica.modelica.compiler.FRealType.

boolean org.jmodelica.modelica.compiler.FPrimitiveNumericType.hasAdd (  ) 

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

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

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

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

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

FType org.jmodelica.modelica.compiler.FPrimitiveNumericType.looseNumericPromotion ( FType  type,
boolean  allowUnknown 
)

Combine two types to the broadest common numeric denominator.

If either is non-numeric or if both are array and sizes doesn't match, the unknown type is returned. An integer type combined with a real type results in a real type. If allowUnknown is true, then unknown lengths are considered equal to any length. syn TypePromotion /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:670

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

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

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

FType org.jmodelica.modelica.compiler.FPrimitiveNumericType.numericPromotion ( FType  type,
boolean  allowUnknown 
)

Combine two types to the broadest common numeric denominator.

If either is non-numeric or if sizes doesn't match, the unknown type is returned. An integer type combined with a real type results in a real type. If allowUnknown is true, then unknown lengths are considered equal to any length. syn TypePromotion /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:662

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

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

FType org.jmodelica.modelica.compiler.FPrimitiveNumericType.scalarNumericPromotion ( FType  type  ) 

Combine two types to the broadest common scalar numeric denominator.

If either is non-numeric, the unknown type is returned. An integer type combined with a real type results in a real type. syn TypePromotion /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:678

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

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

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

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

Reimplemented in org.jmodelica.modelica.compiler.FIntegerType, and org.jmodelica.modelica.compiler.FRealType.


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

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