public abstract class Expression extends ASTNode
Modifier and Type | Field and Description |
---|---|
boolean |
parenthesized
Indicates whether this expression was parenthesized in the source.
|
Type |
typeCache
The
SemanticAnalysis pass will store the type of this expression here. |
boolean |
typeCacheFilled
Indicates whether the
typeCache variable contains usable information. |
byteOffset, line, nodeID, symbolTable
Modifier and Type | Method and Description |
---|---|
boolean |
containsQuantifiedVariable()
Determines if there are any quantified variables in this expression.
|
HashSet<Argument> |
getVariableTypes()
Returns a set of
Argument s storing the name and type of each variable that is a
subexpression of this expression. |
void |
senseValueChild()
Supports the
SemanticAnalysis pass which needs to notify
MethodInvocation s that are the immediate value child of a
SenseStatement that it's allowable to invoke an array or generator classifier. |
public Type typeCache
SemanticAnalysis
pass will store the type of this expression here.public boolean typeCacheFilled
typeCache
variable contains usable information.public boolean parenthesized
public void senseValueChild()
SemanticAnalysis
pass which needs to notify
MethodInvocation
s that are the immediate value
child of a
SenseStatement
that it's allowable to invoke an array or generator classifier.
Only MethodInvocation
will need to override this method which does nothing by
default.SemanticAnalysis
public HashSet<Argument> getVariableTypes()
Argument
s storing the name and type of each variable that is a
subexpression of this expression. This method cannot be run before
SemanticAnalysis
runs.public boolean containsQuantifiedVariable()
SemanticAnalysis
runs.Copyright © 2016. All rights reserved.