|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.ast.IntExpression
kodkod.ast.IfIntExpression
public final class IfIntExpression
An int expression whose value depends on the truth of a condition.
children = condition + thenExpr + elseExpr |
condition: Formula |
thenExpr: IntExpression |
elseExpr: IntExpression |
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). |
|
Formula |
condition()
Returns the if-condition. |
|
IntExpression |
elseExpr()
Returns the else-expression. |
|
IntExpression |
thenExpr()
Returns the then-expression. |
|
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 |
Method Detail |
---|
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)
public Formula condition()
public IntExpression thenExpr()
public IntExpression elseExpr()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |