|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.ast.IntExpression
kodkod.ast.BinaryIntExpression
public final class BinaryIntExpression
A binary integer expression, e.g. x + y.
children = left + right |
left: IntExpression |
right: IntExpression |
op: Operator |
Nested Class Summary | |
---|---|
static class |
BinaryIntExpression.Operator
Binary operators on integer expressions. |
Constructor Summary | |
---|---|
BinaryIntExpression(IntExpression left,
BinaryIntExpression.Operator op,
IntExpression right)
Constructs a new binary int formula: left op right |
Method Summary | ||
---|---|---|
|
accept(ReturnVisitor<E,F,D,I> visitor)
Accepts the given visitor and returns the result of the visit (i.e. the result of the call visitor.visit(this)) |
|
void |
accept(VoidVisitor visitor)
Accepts the given void visitor by calling visitor.visit(this). |
|
IntExpression |
left()
Returns the left child of this. |
|
BinaryIntExpression.Operator |
op()
Returns the operator of this. |
|
IntExpression |
right()
Returns the right child of this. |
|
java.lang.String |
toString()
Returns the string representation of this int expression. |
Methods inherited from class kodkod.ast.IntExpression |
---|
abs, and, apply, compare, compose, divide, eq, gt, gte, lt, lte, minus, modulo, multiply, negate, not, or, plus, sha, shl, shr, signum, sum, toExpression, xor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BinaryIntExpression(IntExpression left, BinaryIntExpression.Operator op, IntExpression right)
java.lang.NullPointerException
- - left = null || right = null || op = nullthis.left' = left && this.right' = right && this.op' = op |
Method Detail |
---|
public IntExpression left()
public IntExpression right()
public BinaryIntExpression.Operator op()
public java.lang.String toString()
toString
in class java.lang.Object
public <E,F,D,I> I accept(ReturnVisitor<E,F,D,I> visitor)
accept
in interface Node
accept
in class IntExpression
IntExpression.accept(kodkod.ast.visitor.ReturnVisitor)
public void accept(VoidVisitor visitor)
accept
in interface Node
accept
in class IntExpression
IntExpression.accept(kodkod.ast.visitor.VoidVisitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |