public class ConstraintEqualityExpression extends ConstraintExpression
String
.Modifier and Type | Field and Description |
---|---|
Expression |
left
(¬ø) The expression on the left hand side of the operator.
|
boolean |
leftIsDiscreteLearner
Filled in by
SemanticAnalysis , this flag is set if left represents
the invocation of a discrete learner. |
boolean |
leftIsQuantified
Filled in by
SemanticAnalysis , this flag is set if left contains
any quantified variables. |
Operator |
operation
(¬ø) Represents either an equality or an inequality comparison.
|
Expression |
right
(¬ø) The expression on the right hand side of the operator.
|
boolean |
rightIsDiscreteLearner
Filled in by
SemanticAnalysis , this flag is set if right represents
the invocation of a discrete learner. |
boolean |
rightIsQuantified
Filled in by
SemanticAnalysis , this flag is set if right contains
any quantified variables. |
parenthesized
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
ConstraintEqualityExpression(Operator o,
Expression l,
Expression r)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
boolean |
containsQuantifiedVariable()
Determines if there are any quantified variables in this expression.
|
HashSet |
getVariableTypes()
Returns a set of
Argument s storing the name and type of each variable that is a
subexpression of this expression. |
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
public Operator operation
public Expression left
public boolean leftIsDiscreteLearner
SemanticAnalysis
, this flag is set if left
represents
the invocation of a discrete learner.public boolean leftIsQuantified
SemanticAnalysis
, this flag is set if left
contains
any quantified variables.public Expression right
public boolean rightIsDiscreteLearner
SemanticAnalysis
, this flag is set if right
represents
the invocation of a discrete learner.public boolean rightIsQuantified
SemanticAnalysis
, this flag is set if right
contains
any quantified variables.public ConstraintEqualityExpression(Operator o, Expression l, Expression r)
o
- The equality comparison operator.l
- The expression on the left of the operator.r
- The expression on the right of the operator.public HashSet 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.getVariableTypes
in class ConstraintExpression
public boolean containsQuantifiedVariable()
SemanticAnalysis
runs.containsQuantifiedVariable
in class ConstraintExpression
public ASTNodeIterator iterator()
public Object clone()
public void runPass(Pass pass)
run()
method is called for this type of node.public void write(StringBuffer buffer)
ASTNode
to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.Copyright © 2016. All rights reserved.