org.jmodelica.modelica.compiler.FFunctionCallStmt Class Reference

A flattened function call statement. More...

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

org.jmodelica.modelica.compiler.FStatement org.jmodelica.modelica.compiler.BaseNode org.jmodelica.modelica.compiler.FunctionEvalNode

List of all members.

Public Member Functions

void flushCache ()
 low-level
void flushCollectionCache ()
 internal
FFunctionCallStmt clone () throws CloneNotSupportedException
 internal
FFunctionCallStmt copy ()
 internal
FFunctionCallStmt fullCopy ()
 low-level
int evaluate (Map< CommonVariableDecl, CValue > values)
 method ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2102
FFunctionCallStmt flatten (FQName prefix)
 method FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:933
void prettyPrint (Printer p, PrintStream str, String indent)
 method FlattPrettyPrint /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/PrettyPrint.jrag:1040
void scalarize (List< FFunctionVariable > vars, List< FStatement > stmts, Map< String, FExp > indexMap)
 method Scalarization /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Scalarization.jrag:766
void prettyPrint_XML (Printer p, PrintStream str, String indent)
 method XMLCodeGen /tmp/JModelica/Compiler/ModelicaXMLBackEnd/src/jastadd/XMLCodeGen.jrag:420
void prettyPrint_C (Printer p, PrintStream str, String indent)
 method CCodeGen /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen.jrag:583
 FFunctionCallStmt ()
 method FlatModelica.ast:1
 FFunctionCallStmt (List< FFunctionCallLeft > p0, FAbstractFunctionCall p1)
 method FlatModelica.ast:8
boolean mayHaveRewrite ()
 internal method FlatModelica.ast:21
void setLeftList (List< FFunctionCallLeft > list)
 Setter for LeftList high-level method FlatModelica.ast:5.
int getNumLeft ()
FFunctionCallLeft getLeft (int i)
 Getter for child in list LeftList high-level method FlatModelica.ast:19.
void addLeft (FFunctionCallLeft node)
 Add element to list LeftList high-level method FlatModelica.ast:27.
void addLeftNoTransform (FFunctionCallLeft node)
 low-level method FlatModelica.ast:34
void setLeft (FFunctionCallLeft node, int i)
 Setter for child in list LeftList high-level method FlatModelica.ast:42.
List< FFunctionCallLeftgetLefts ()
 Getter for Left list.
List< FFunctionCallLeftgetLeftsNoTransform ()
 low-level method FlatModelica.ast:56
List< FFunctionCallLeftgetLeftList ()
 Getter for list LeftList high-level method FlatModelica.ast:63.
List< FFunctionCallLeftgetLeftListNoTransform ()
 low-level method FlatModelica.ast:72
void setCall (FAbstractFunctionCall node)
 Setter for Call high-level method FlatModelica.ast:5.
FAbstractFunctionCall getCall ()
 Getter for Call high-level method FlatModelica.ast:12.
FAbstractFunctionCall getCallNoTransform ()
 low-level method FlatModelica.ast:18
String xmlTag ()
 syn XMLTagBinding /tmp/JModelica/Compiler/ModelicaXMLBackEnd/src/jastadd/XMLCodeGen.jrag:580
Size Define_Size_size (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:745 internal
FType Define_FType_type (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:468 internal
String Define_String_functionCallDecription (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:464 internal
String Define_String_funcName (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1433 internal
boolean Define_boolean_isFunctionCallClause (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1525 internal
int Define_int_prevIndex (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1541 internal
InstComponentDecl Define_InstComponentDecl_myOutput (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1572 internal
boolean Define_boolean_functionCallIsExp (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1582 internal
ArrayList< FFunctionCallLeftDefine_ArrayList_FFunctionCallLeft__myLefts (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1589 internal
ASTNode rewriteTo ()
 internal

Protected Member Functions

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


Detailed Description

A flattened function call statement.

This covers function calls with no used return value or when using the syntax (vars) := function(args);. Function calls using exactly one return value are handled by FAssignStmt through FAbstractFunctionCall. (FAbstractFunctionCall inherits FExp, since it can be used in expressions). node FlatModelica.ast:514


Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.FFunctionCallStmt.FFunctionCallStmt (  ) 

method FlatModelica.ast:1

org.jmodelica.modelica.compiler.FFunctionCallStmt.FFunctionCallStmt ( List< FFunctionCallLeft p0,
FAbstractFunctionCall  p1 
)

method FlatModelica.ast:8


Member Function Documentation

void org.jmodelica.modelica.compiler.FFunctionCallStmt.addLeft ( FFunctionCallLeft  node  ) 

Add element to list LeftList high-level method FlatModelica.ast:27.

void org.jmodelica.modelica.compiler.FFunctionCallStmt.addLeftNoTransform ( FFunctionCallLeft  node  ) 

low-level method FlatModelica.ast:34

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

internal

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

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

internal

ArrayList<FFunctionCallLeft> org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_ArrayList_FFunctionCallLeft__myLefts ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1589 internal

boolean org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_boolean_functionCallIsExp ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1582 internal

boolean org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_boolean_isFunctionCallClause ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1525 internal

FType org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_FType_type ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:468 internal

InstComponentDecl org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_InstComponentDecl_myOutput ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1572 internal

int org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_int_prevIndex ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1541 internal

Size org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_Size_size ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:745 internal

String org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_String_funcName ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1433 internal

String org.jmodelica.modelica.compiler.FFunctionCallStmt.Define_String_functionCallDecription ( ASTNode  caller,
ASTNode  child 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:464 internal

int org.jmodelica.modelica.compiler.FFunctionCallStmt.evaluate ( Map< CommonVariableDecl, CValue values  )  [virtual]

method ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2102

Implements org.jmodelica.modelica.compiler.FStatement.

FFunctionCallStmt org.jmodelica.modelica.compiler.FFunctionCallStmt.flatten ( FQName  prefix  )  [virtual]

method FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:933

Implements org.jmodelica.modelica.compiler.FStatement.

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

low-level

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

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

internal

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

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

low-level

FAbstractFunctionCall org.jmodelica.modelica.compiler.FFunctionCallStmt.getCall (  ) 

Getter for Call high-level method FlatModelica.ast:12.

FAbstractFunctionCall org.jmodelica.modelica.compiler.FFunctionCallStmt.getCallNoTransform (  ) 

low-level method FlatModelica.ast:18

FFunctionCallLeft org.jmodelica.modelica.compiler.FFunctionCallStmt.getLeft ( int  i  ) 

Getter for child in list LeftList high-level method FlatModelica.ast:19.

List<FFunctionCallLeft> org.jmodelica.modelica.compiler.FFunctionCallStmt.getLeftList (  ) 

Getter for list LeftList high-level method FlatModelica.ast:63.

List<FFunctionCallLeft> org.jmodelica.modelica.compiler.FFunctionCallStmt.getLeftListNoTransform (  ) 

low-level method FlatModelica.ast:72

List<FFunctionCallLeft> org.jmodelica.modelica.compiler.FFunctionCallStmt.getLefts (  ) 

Getter for Left list.

high-level method FlatModelica.ast:50

List<FFunctionCallLeft> org.jmodelica.modelica.compiler.FFunctionCallStmt.getLeftsNoTransform (  ) 

low-level method FlatModelica.ast:56

int org.jmodelica.modelica.compiler.FFunctionCallStmt.getNumLeft (  ) 

Returns:
number of children in LeftList high-level method FlatModelica.ast:12

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

internal method FlatModelica.ast:21

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

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

low-level method FlatModelica.ast:15

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

void org.jmodelica.modelica.compiler.FFunctionCallStmt.prettyPrint ( Printer  p,
PrintStream  str,
String  indent 
)

method FlattPrettyPrint /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/PrettyPrint.jrag:1040

void org.jmodelica.modelica.compiler.FFunctionCallStmt.prettyPrint_C ( Printer  p,
PrintStream  str,
String  indent 
)

method CCodeGen /tmp/JModelica/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen.jrag:583

void org.jmodelica.modelica.compiler.FFunctionCallStmt.prettyPrint_XML ( Printer  p,
PrintStream  str,
String  indent 
)

method XMLCodeGen /tmp/JModelica/Compiler/ModelicaXMLBackEnd/src/jastadd/XMLCodeGen.jrag:420

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

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

internal

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

void org.jmodelica.modelica.compiler.FFunctionCallStmt.scalarize ( List< FFunctionVariable vars,
List< FStatement stmts,
Map< String, FExp indexMap 
)

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

Reimplemented from org.jmodelica.modelica.compiler.FStatement.

void org.jmodelica.modelica.compiler.FFunctionCallStmt.setCall ( FAbstractFunctionCall  node  ) 

Setter for Call high-level method FlatModelica.ast:5.

void org.jmodelica.modelica.compiler.FFunctionCallStmt.setLeft ( FFunctionCallLeft  node,
int  i 
)

Setter for child in list LeftList high-level method FlatModelica.ast:42.

void org.jmodelica.modelica.compiler.FFunctionCallStmt.setLeftList ( List< FFunctionCallLeft list  ) 

Setter for LeftList high-level method FlatModelica.ast:5.

String org.jmodelica.modelica.compiler.FFunctionCallStmt.xmlTag (  ) 

syn XMLTagBinding /tmp/JModelica/Compiler/ModelicaXMLBackEnd/src/jastadd/XMLCodeGen.jrag:580


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

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