public abstract class QuantifiedConstraintExpression extends ConstraintExpression
| Modifier and Type | Field and Description |
|---|---|
Argument |
argument
(¬ø) The variable specified by this argument is set to each of the objects from
the collection in turn and used throughout the quantified constraint.
|
Expression |
collection
(¬ø) The objects to iterate through; it must evaluate to a Java
Collection. |
boolean |
collectionIsQuantified
Filled in by
SemanticAnalysis, this flag is set if collection
contains any quantified variables. |
ConstraintExpression |
constraint
(¬ø) The quantified constraint.
|
parenthesizedbyteOffset, line, nodeID, symbolTable| Constructor and Description |
|---|
QuantifiedConstraintExpression(int line,
int byteOffset,
Argument a,
Expression c,
ConstraintExpression co)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HashSet |
getVariableTypes()
Returns a set of
Arguments 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.
|
containsQuantifiedVariablepublic Argument argument
public Expression collection
Collection.public ConstraintExpression constraint
public boolean collectionIsQuantified
SemanticAnalysis, this flag is set if collection
contains any quantified variables.public QuantifiedConstraintExpression(int line,
int byteOffset,
Argument a,
Expression c,
ConstraintExpression co)
line - The line on which the source code represented by this node is found.byteOffset - The byte offset from the beginning of the source file at which the source
code represented by this node is found.a - The quantification variable specification.c - Evaluates to the collection of objects.co - The quantified constraint.public HashSet getVariableTypes()
Arguments 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 ConstraintExpressionpublic ASTNodeIterator iterator()
Copyright © 2016. All rights reserved.