org.jmodelica.modelica.compiler.InstAccess Class Reference

node InstanceTree.ast:114 More...

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

org.jmodelica.modelica.compiler.BaseNode org.jmodelica.modelica.compiler.CommonNamePart org.jmodelica.modelica.compiler.InstArrayAccess org.jmodelica.modelica.compiler.InstClassAccess org.jmodelica.modelica.compiler.InstDot org.jmodelica.modelica.compiler.InstGlobalAccess org.jmodelica.modelica.compiler.InstAmbiguousAccess org.jmodelica.modelica.compiler.InstComponentAccess org.jmodelica.modelica.compiler.InstParseAccess

List of all members.

Public Member Functions

void flushCache ()
 low-level
void flushCollectionCache ()
 internal
InstAccess clone () throws CloneNotSupportedException
 internal
FExp createSizeFExp (Map< ASTNode, FExp > varMap)
 method Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:876
InstAccess specify (Index i)
 Creates a new InstAccess with the FArraySubscripts taken from the given Index.
void complianceCheck ()
 method ComplianceCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ComplianceCheck.jadd:41
void connectTo (InstAccess right, FQName prefix, ConnectionSetManager csm)
 method Connections /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Connections.jrag:423
void assignToInFuncEval (Map< CommonVariableDecl, CValue > values, CValue right)
 Evaluate an assignment with this as the left side during function evaluation.
void dumpTree (String indent)
 method InstDumpTree /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/DumpTree.jadd:169
void typeError ()
 method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:142
void typeCheck ()
 method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:501
void checkAccessCompInClassLeft (InstAccess right)
 method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:513
void checkAccessCompInClassRight (InstClassDecl icd)
 method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:530
void addAccessedVar (Set< InstComponentDecl > set)
 Add accessed variable to set.
FQName flatten (FQName prefix)
 method FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:1108
FQName flattenAndResolveIndices (FQName prefix)
 Specialized flattening method for resolving loop indices during flattening.
InstComponentDecl lookupArrayElement (InstComponentDecl array)
 Lookup the specific array component corresponding to this access, using current ceval() value for indices.
InstComponentDecl lookupEvaluatingIndices ()
 Lookup component, re-evaluating any array accesses except in last component.
InstComponentDecl componentFromSet (HashSet set)
 method InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:238
void populateInstRecordModificationList (List< InstRecordModification > list, InstValueModification org, FExp exp)
 method Environments /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstanceTree.jrag:468
void prettyPrint (Printer p, PrintStream str, String indent)
 method FlattPrettyPrint /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/PrettyPrint.jrag:1394
void setLastFArraySubscripts (FArraySubscripts fas)
 Set the array subscripts of the last name part.
InstDot copyAndAppend (String id)
 Copy this access, append a name part to the copy and return the copy.
InstAccess createPartToAppend (String id)
 Create an InstAccess suitable for appending to this access.
 InstAccess ()
 method InstanceTree.ast:1
 InstAccess (String p0)
 method InstanceTree.ast:7
 InstAccess (beaver.Symbol p0)
 method InstanceTree.ast:11
boolean mayHaveRewrite ()
 internal method InstanceTree.ast:24
void setID (String value)
 Setter for lexeme ID high-level method InstanceTree.ast:5.
void setID (beaver.Symbol symbol)
 method InstanceTree.ast:11
String getID ()
 Getter for lexeme ID high-level method InstanceTree.ast:22.
void setExpandedSubscripts (FArraySubscripts node)
 Setter for ExpandedSubscripts high-level method InstanceTree.ast:5.
FArraySubscripts getExpandedSubscriptsNoTransform ()
 low-level method InstanceTree.ast:11
boolean isInstArrayAccess ()
 Check if an instance access has array subscripts.
FArraySubscripts fArraySubscripts ()
 Get the FArraySubscripts of an InstAccess, if any.
int localNdims ()
 Get array dimensions of a single part of an access.
int ndims ()
 Get array dimensions.
ArrayList< FArraySubscriptsallFArraySubscripts ()
 Get the expanded FArraySubscripts of each part of this access.
FArraySubscripts getExpandedSubscripts ()
 Get the expanded array subscripts of this access.
Size size ()
 Get the array sizes.
boolean isArray ()
 check if an access is an array expression.
Indices indices ()
 Get the set of all array indices of an instance array access.
boolean isOutsideConnector ()
 syn Connections /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Connections.jrag:476
CValue ceval ()
 syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:1282
CommonNamePart nextNamePart ()
 Get the next part in the name this is a part of, or null if this is the last part.
boolean isForIndex ()
 syn FlatNameBinding /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatNameBinding.jrag:157
FType type ()
 syn FlatTypeAnalysis /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeAnalysis.jrag:454
boolean isAccessToStream ()
 syn FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:208
boolean isComponentSizeClass ()
 syn FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:277
InstAccess splitArrayAccess (int index)
 syn Flattening /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:643
boolean hasUnknownIndices ()
 syn FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:1088
HashSet lookupInstClass ()
 syn InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:21
HashSet qualifiedLookupInstClass (String name)
 syn InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:297
InstClassDecl myInstClassDecl ()
 syn InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:500
HashSet qualifiedLookupInstComponent (String name)
 syn InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:47
InstComponentDecl myInstComponentDecl ()
 syn InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:250
Kind predKind ()
 The attribute predKind defines the kind for the previous part of a qualified name.
boolean isUnknown ()
 syn UnknownDeclarations /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/PrimitiveClasses.jrag:124
String name ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:436
String qualifiedName ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:452
String lastName ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:477
String enclosingName ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:523
InstAccess getLastInstAccess ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:620
InstAccess getFirstInstAccess ()
 Access method for the first Access of a qualified or unqualified name.
InstAccess getTopInstAccess ()
 Get the top node in an access (possibly qualified).
FArraySubscripts getLastFArraySubscripts ()
 Get the array subscripts of the last name part.
FArraySubscripts getFArraySubscripts ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:704
boolean hasFArraySubscripts ()
 syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:707
boolean isSlice ()
 Check if this is a slice operation.
boolean isDisabled ()
 syn ComponentDeclMethods /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1759
CValue cevalRecordMember (String id)
 Perform constant evaluation of an access to a record member.
FClass myFClass ()
 inh FlatteningDebug /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:809
boolean inSizeExp ()
 inh FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:1183
HashSet lookupInstClass (String name)
 inh InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:25
HashSet lookupInstClassFromTop (String name)
 inh InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:94
HashSet lookupInstComponent (String name)
 inh InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:22
Kind kind ()
 inh InstNameClassification /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstNameClassification.jrag:75
InstComponentDecl containingInstComponent ()
 Find the component that this access should be evaluated in.
InstAccess getNextInstAccess ()
 inh Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:650
InstAccess retrieveTopInstAccess (InstAccess pre)
 inh Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:693
boolean inFunction ()
 inh FlatFunctionUtils /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1493
boolean inConnectClause ()
 inh FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1830
Size Define_Size_mySize (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:562 internal
boolean Define_boolean_isInstComponentSize (ASTNode caller, ASTNode child)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:291 internal
HashSet Define_HashSet_lookupInstClass (ASTNode caller, ASTNode child, String name)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:295 internal
HashSet Define_HashSet_lookupInstComponent (ASTNode caller, ASTNode child, String name)
 /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:44 internal
ASTNode rewriteTo ()
 internal

Public Attributes

int IDstart
 method InstanceTree.ast:9
int IDend
 method InstanceTree.ast:10

Protected Member Functions

InstAccess specifyEach (Index i, int[] dim)
 Create a copy with the FArraySubscripts of each part set to match the Index.
void typeError (InstAccess top)
 method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:146
int numChildren ()
 low-level method InstanceTree.ast:18
int getExpandedSubscriptsChildPosition ()
 low-level method InstanceTree.ast:17
void collect_contributors_FClass_collectInstAccesses ()
void contributeTo_FClass_FClass_collectInstAccesses (HashSet< InstAccess > collection)

Protected Attributes

String tokenString_ID
 * internal * method InstanceTree.ast:8
boolean allFArraySubscripts_computed = false
 internal
ArrayList< FArraySubscriptsallFArraySubscripts_value
 internal
boolean size_computed = false
 internal
Size size_value
 internal
boolean type_computed = false
 internal
FType type_value
 internal
int lookupInstClass_visited = -1
 internal
boolean lookupInstClass_computed = false
 internal
boolean lookupInstClass_initialized = false
 internal
HashSet lookupInstClass_value
 internal
java.util.Map qualifiedLookupInstClass_String_values
int myInstClassDecl_visited = -1
 internal
boolean myInstClassDecl_computed = false
 internal
boolean myInstClassDecl_initialized = false
 internal
InstClassDecl myInstClassDecl_value
 internal
boolean myInstComponentDecl_computed = false
 internal
InstComponentDecl myInstComponentDecl_value
 internal
java.util.Map lookupInstClass_String_values


Detailed Description

node InstanceTree.ast:114

Constructor & Destructor Documentation

org.jmodelica.modelica.compiler.InstAccess.InstAccess (  ) 

method InstanceTree.ast:1

org.jmodelica.modelica.compiler.InstAccess.InstAccess ( String  p0  ) 

method InstanceTree.ast:7

org.jmodelica.modelica.compiler.InstAccess.InstAccess ( beaver.Symbol  p0  ) 

method InstanceTree.ast:11


Member Function Documentation

void org.jmodelica.modelica.compiler.InstAccess.addAccessedVar ( Set< InstComponentDecl set  ) 

Add accessed variable to set.

method FlatVariability /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatVariability.jrag:229

ArrayList<FArraySubscripts> org.jmodelica.modelica.compiler.InstAccess.allFArraySubscripts (  ) 

Get the expanded FArraySubscripts of each part of this access.

syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:297

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

void org.jmodelica.modelica.compiler.InstAccess.assignToInFuncEval ( Map< CommonVariableDecl, CValue values,
CValue  right 
)

Evaluate an assignment with this as the left side during function evaluation.

Parameters:
values constant values for the variables. method ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:1957

CValue org.jmodelica.modelica.compiler.InstAccess.ceval (  ) 

syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:1282

Reimplemented in org.jmodelica.modelica.compiler.InstComponentAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

CValue org.jmodelica.modelica.compiler.InstAccess.cevalRecordMember ( String  id  ) 

Perform constant evaluation of an access to a record member.

inh ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:1322

void org.jmodelica.modelica.compiler.InstAccess.checkAccessCompInClassLeft ( InstAccess  right  ) 

method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:513

Reimplemented in org.jmodelica.modelica.compiler.InstClassAccess, org.jmodelica.modelica.compiler.InstComponentAccess, and org.jmodelica.modelica.compiler.InstDot.

void org.jmodelica.modelica.compiler.InstAccess.checkAccessCompInClassRight ( InstClassDecl  icd  ) 

method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:530

Reimplemented in org.jmodelica.modelica.compiler.InstComponentAccess, and org.jmodelica.modelica.compiler.InstDot.

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

void org.jmodelica.modelica.compiler.InstAccess.collect_contributors_FClass_collectInstAccesses (  )  [protected]

coll FlatteningDebug /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:806

void org.jmodelica.modelica.compiler.InstAccess.complianceCheck (  ) 

method ComplianceCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ComplianceCheck.jadd:41

InstComponentDecl org.jmodelica.modelica.compiler.InstAccess.componentFromSet ( HashSet  set  ) 

method InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:238

void org.jmodelica.modelica.compiler.InstAccess.connectTo ( InstAccess  right,
FQName  prefix,
ConnectionSetManager  csm 
)

method Connections /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Connections.jrag:423

InstComponentDecl org.jmodelica.modelica.compiler.InstAccess.containingInstComponent (  ) 

Find the component that this access should be evaluated in.

inh InstanceAST_API /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstanceTree.jrag:1400

void org.jmodelica.modelica.compiler.InstAccess.contributeTo_FClass_FClass_collectInstAccesses ( HashSet< InstAccess collection  )  [protected]

InstDot org.jmodelica.modelica.compiler.InstAccess.copyAndAppend ( String  id  ) 

Copy this access, append a name part to the copy and return the copy.

method Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:721

Reimplemented in org.jmodelica.modelica.compiler.InstDot.

InstAccess org.jmodelica.modelica.compiler.InstAccess.createPartToAppend ( String  id  ) 

Create an InstAccess suitable for appending to this access.

method Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:737

Reimplemented in org.jmodelica.modelica.compiler.InstComponentAccess.

FExp org.jmodelica.modelica.compiler.InstAccess.createSizeFExp ( Map< ASTNode, FExp varMap  ) 

method Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:876

boolean org.jmodelica.modelica.compiler.InstAccess.Define_boolean_isInstComponentSize ( ASTNode  caller,
ASTNode  child 
)

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

HashSet org.jmodelica.modelica.compiler.InstAccess.Define_HashSet_lookupInstClass ( ASTNode  caller,
ASTNode  child,
String  name 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:295 internal

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

HashSet org.jmodelica.modelica.compiler.InstAccess.Define_HashSet_lookupInstComponent ( ASTNode  caller,
ASTNode  child,
String  name 
)

/tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:44 internal

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

Size org.jmodelica.modelica.compiler.InstAccess.Define_Size_mySize ( ASTNode  caller,
ASTNode  child 
)

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

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess.

void org.jmodelica.modelica.compiler.InstAccess.dumpTree ( String  indent  ) 

String org.jmodelica.modelica.compiler.InstAccess.enclosingName (  ) 

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:523

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

FArraySubscripts org.jmodelica.modelica.compiler.InstAccess.fArraySubscripts (  ) 

Get the FArraySubscripts of an InstAccess, if any.

Returns:
A reference to a FArraySubscripts object, or null. syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:73

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess.

FQName org.jmodelica.modelica.compiler.InstAccess.flatten ( FQName  prefix  ) 

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

FQName org.jmodelica.modelica.compiler.InstAccess.flattenAndResolveIndices ( FQName  prefix  ) 

Specialized flattening method for resolving loop indices during flattening.

Intended for use when building connection sets. Do not use for accesses in functions or size expressions.

Parameters:
prefix prefix to add to name
indexMap map from names of index variables to expressions to replace them with method FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:1145

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

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

FArraySubscripts org.jmodelica.modelica.compiler.InstAccess.getExpandedSubscripts (  ) 

Get the expanded array subscripts of this access.

An access without subscripts returns subscripts that span the entire component. Any colon subscripts are expanded into constant vector expressions. syn nta Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:330

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess.

int org.jmodelica.modelica.compiler.InstAccess.getExpandedSubscriptsChildPosition (  )  [protected]

FArraySubscripts org.jmodelica.modelica.compiler.InstAccess.getExpandedSubscriptsNoTransform (  ) 

FArraySubscripts org.jmodelica.modelica.compiler.InstAccess.getFArraySubscripts (  ) 

InstAccess org.jmodelica.modelica.compiler.InstAccess.getFirstInstAccess (  ) 

Access method for the first Access of a qualified or unqualified name.

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:646

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

String org.jmodelica.modelica.compiler.InstAccess.getID (  ) 

FArraySubscripts org.jmodelica.modelica.compiler.InstAccess.getLastFArraySubscripts (  ) 

Get the array subscripts of the last name part.

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:701

InstAccess org.jmodelica.modelica.compiler.InstAccess.getLastInstAccess (  ) 

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:620

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

InstAccess org.jmodelica.modelica.compiler.InstAccess.getNextInstAccess (  ) 

inh Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:650

InstAccess org.jmodelica.modelica.compiler.InstAccess.getTopInstAccess (  ) 

Get the top node in an access (possibly qualified).

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:691

boolean org.jmodelica.modelica.compiler.InstAccess.hasFArraySubscripts (  ) 

boolean org.jmodelica.modelica.compiler.InstAccess.hasUnknownIndices (  ) 

syn FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:1088

boolean org.jmodelica.modelica.compiler.InstAccess.inConnectClause (  ) 

inh FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1830

Indices org.jmodelica.modelica.compiler.InstAccess.indices (  ) 

Get the set of all array indices of an instance array access.

Returns:
An Indices object containing all indices in each array dimension. syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:1672

Implements org.jmodelica.modelica.compiler.CommonNamePart.

boolean org.jmodelica.modelica.compiler.InstAccess.inFunction (  ) 

inh FlatFunctionUtils /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1493

boolean org.jmodelica.modelica.compiler.InstAccess.inSizeExp (  ) 

inh FlatExpressions /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:1183

boolean org.jmodelica.modelica.compiler.InstAccess.isAccessToStream (  ) 

syn FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:208

boolean org.jmodelica.modelica.compiler.InstAccess.isArray (  ) 

check if an access is an array expression.

Returns:
True if array dimension > 0 else false syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:938

Implements org.jmodelica.modelica.compiler.CommonNamePart.

boolean org.jmodelica.modelica.compiler.InstAccess.isComponentSizeClass (  ) 

syn FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:277

boolean org.jmodelica.modelica.compiler.InstAccess.isDisabled (  ) 

syn ComponentDeclMethods /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:1759

Reimplemented in org.jmodelica.modelica.compiler.InstComponentAccess, and org.jmodelica.modelica.compiler.InstDot.

boolean org.jmodelica.modelica.compiler.InstAccess.isForIndex (  ) 

syn FlatNameBinding /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatNameBinding.jrag:157

boolean org.jmodelica.modelica.compiler.InstAccess.isInstArrayAccess (  ) 

Check if an instance access has array subscripts.

Returns:
True if the access has array subscripts, otherwise false. syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:64

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess.

boolean org.jmodelica.modelica.compiler.InstAccess.isOutsideConnector (  ) 

syn Connections /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Connections.jrag:476

boolean org.jmodelica.modelica.compiler.InstAccess.isSlice (  ) 

Check if this is a slice operation.

syn Slices /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:752

Reimplemented in org.jmodelica.modelica.compiler.InstDot.

boolean org.jmodelica.modelica.compiler.InstAccess.isUnknown (  ) 

syn UnknownDeclarations /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/PrimitiveClasses.jrag:124

Reimplemented in org.jmodelica.modelica.compiler.InstClassAccess, and org.jmodelica.modelica.compiler.InstComponentAccess.

Kind org.jmodelica.modelica.compiler.InstAccess.kind (  ) 

inh InstNameClassification /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstNameClassification.jrag:75

String org.jmodelica.modelica.compiler.InstAccess.lastName (  ) 

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:477

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

int org.jmodelica.modelica.compiler.InstAccess.localNdims (  ) 

Get array dimensions of a single part of an access.

syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:157

InstComponentDecl org.jmodelica.modelica.compiler.InstAccess.lookupArrayElement ( InstComponentDecl  array  ) 

Lookup the specific array component corresponding to this access, using current ceval() value for indices.

If no specific component can be found or this access is not to a specific element, the component for the array is returned.

Parameters:
array the component node for the array method InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:59

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess.

InstComponentDecl org.jmodelica.modelica.compiler.InstAccess.lookupEvaluatingIndices (  ) 

Lookup component, re-evaluating any array accesses except in last component.

method InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:89

HashSet org.jmodelica.modelica.compiler.InstAccess.lookupInstClass ( String  name  ) 

inh InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:25

HashSet org.jmodelica.modelica.compiler.InstAccess.lookupInstClass (  ) 

syn InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:21

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

HashSet org.jmodelica.modelica.compiler.InstAccess.lookupInstClassFromTop ( String  name  ) 

inh InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:94

HashSet org.jmodelica.modelica.compiler.InstAccess.lookupInstComponent ( String  name  ) 

inh InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:22

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

FClass org.jmodelica.modelica.compiler.InstAccess.myFClass (  ) 

inh FlatteningDebug /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:809

InstClassDecl org.jmodelica.modelica.compiler.InstAccess.myInstClassDecl (  ) 

syn InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:500

Reimplemented in org.jmodelica.modelica.compiler.InstClassAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

InstComponentDecl org.jmodelica.modelica.compiler.InstAccess.myInstComponentDecl (  ) 

syn InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:250

Reimplemented in org.jmodelica.modelica.compiler.InstComponentAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

String org.jmodelica.modelica.compiler.InstAccess.name (  ) 

int org.jmodelica.modelica.compiler.InstAccess.ndims (  ) 

Get array dimensions.

A value > 0 indicates an array, 0 indicates a scalar and -1 indicates an error in computation of the array dimensions.

Returns:
Array dimension. syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:287

CommonNamePart org.jmodelica.modelica.compiler.InstAccess.nextNamePart (  ) 

Get the next part in the name this is a part of, or null if this is the last part.

syn ConstantEvaluation /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/ConstantEvaluation.jrag:2000

Implements org.jmodelica.modelica.compiler.CommonNamePart.

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

void org.jmodelica.modelica.compiler.InstAccess.populateInstRecordModificationList ( List< InstRecordModification list,
InstValueModification  org,
FExp  exp 
)

method Environments /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstanceTree.jrag:468

Kind org.jmodelica.modelica.compiler.InstAccess.predKind (  ) 

The attribute predKind defines the kind for the previous part of a qualified name.

syn InstNameClassification /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstNameClassification.jrag:102

Reimplemented in org.jmodelica.modelica.compiler.InstDot.

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

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

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

HashSet org.jmodelica.modelica.compiler.InstAccess.qualifiedLookupInstClass ( String  name  ) 

syn InstLookupClasses /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupClasses.jrag:297

Reimplemented in org.jmodelica.modelica.compiler.InstClassAccess.

HashSet org.jmodelica.modelica.compiler.InstAccess.qualifiedLookupInstComponent ( String  name  ) 

syn InstLookupComponents /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/InstLookupComponents.jrag:47

Reimplemented in org.jmodelica.modelica.compiler.InstClassAccess, and org.jmodelica.modelica.compiler.InstComponentAccess.

String org.jmodelica.modelica.compiler.InstAccess.qualifiedName (  ) 

syn Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:452

Reimplemented in org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

InstAccess org.jmodelica.modelica.compiler.InstAccess.retrieveTopInstAccess ( InstAccess  pre  ) 

inh Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:693

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

void org.jmodelica.modelica.compiler.InstAccess.setExpandedSubscripts ( FArraySubscripts  node  ) 

void org.jmodelica.modelica.compiler.InstAccess.setID ( beaver.Symbol  symbol  ) 

void org.jmodelica.modelica.compiler.InstAccess.setID ( String  value  ) 

void org.jmodelica.modelica.compiler.InstAccess.setLastFArraySubscripts ( FArraySubscripts  fas  ) 

Set the array subscripts of the last name part.

method Names /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Util.jrag:713

Size org.jmodelica.modelica.compiler.InstAccess.size (  ) 

Get the array sizes.

syn Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:797

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

InstAccess org.jmodelica.modelica.compiler.InstAccess.specify ( Index  i  ) 

Creates a new InstAccess with the FArraySubscripts taken from the given Index.

Parameters:
i the Index specifying what array subscripts to use method Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:1530

InstAccess org.jmodelica.modelica.compiler.InstAccess.specifyEach ( Index  i,
int[]  dim 
) [protected]

Create a copy with the FArraySubscripts of each part set to match the Index.

Parameters:
i the Index specifying what array subscripts to use
dim the next dimension in i to use, wrapped in an array so that it can be changed by the method method Arrays /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Arrays.jrag:1541

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

InstAccess org.jmodelica.modelica.compiler.InstAccess.splitArrayAccess ( int  index  ) 

syn Flattening /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/Flattening.jrag:643

Reimplemented in org.jmodelica.modelica.compiler.InstArrayAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

FType org.jmodelica.modelica.compiler.InstAccess.type (  ) 

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

void org.jmodelica.modelica.compiler.InstAccess.typeCheck (  ) 

method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:501

Reimplemented in org.jmodelica.modelica.compiler.InstComponentAccess, and org.jmodelica.modelica.compiler.InstDot.

void org.jmodelica.modelica.compiler.InstAccess.typeError ( InstAccess  top  )  [protected]

method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:146

Reimplemented in org.jmodelica.modelica.compiler.InstClassAccess, org.jmodelica.modelica.compiler.InstComponentAccess, org.jmodelica.modelica.compiler.InstDot, and org.jmodelica.modelica.compiler.InstGlobalAccess.

void org.jmodelica.modelica.compiler.InstAccess.typeError (  ) 

method FlatTypeCheck /tmp/JModelica/Compiler/ModelicaFrontEnd/src/jastadd/FlatTypeCheck.jrag:142


Member Data Documentation

internal

internal

method InstanceTree.ast:10

method InstanceTree.ast:9

internal

internal

internal

internal

internal

internal

internal

internal

internal

internal

internal

internal

* internal * method InstanceTree.ast:8

* internal

internal

internal


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

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