public class UniversalQuantifierExpression extends QuantifiedConstraintExpression
forall
argument in
(expression) constraint-expression
where
expression
must evaluate to a Collection
, and the universal
quantifier expression is sastisfied iff constraint-expression
is satisfied
for all settings of argument
taken from the Collection
.argument, collection, collectionIsQuantified, constraint
parenthesized
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
UniversalQuantifierExpression(int line,
int byteOffset,
Argument a,
Expression c,
ConstraintExpression co)
Full constructor.
|
UniversalQuantifierExpression(TokenValue t,
Argument a,
Expression c,
ConstraintExpression co)
Parser's 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.
|
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. |
getVariableTypes, iterator
containsQuantifiedVariable
public UniversalQuantifierExpression(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 UniversalQuantifierExpression(TokenValue t, Argument a, Expression c, ConstraintExpression co)
t
- The token containing line and byte offset information.a
- The quantification variable specification.c
- Evaluates to the collection of objects.co
- The quantified constraint.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.