|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.ast.Formula
kodkod.ast.ComparisonFormula
public final class ComparisonFormula
A formula that compares two expressions, e.g. x = y
children = left + right |
left: Expression |
right: Expression |
op: Operator |
Nested Class Summary | |
---|---|
static class |
ComparisonFormula.Operator
Represents a comparison operator; e.g. |
Field Summary |
---|
Fields inherited from class kodkod.ast.Formula |
---|
FALSE, TRUE |
Method Summary | ||
---|---|---|
|
accept(ReturnVisitor<E,F,D,I> visitor)
Accepts the given visitor and returns the result. |
|
void |
accept(VoidVisitor visitor)
Accepts the given visitor. |
|
Expression |
left()
Returns the left child of this. |
|
ComparisonFormula.Operator |
op()
Returns the operator of this. |
|
Expression |
right()
Returns the right child of this. |
|
java.lang.String |
toString()
Returns the string representation of this formula. |
Methods inherited from class kodkod.ast.Formula |
---|
and, compose, comprehension, forAll, forSome, iff, implies, not, or, quantify, thenElse, thenElse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Expression left()
public Expression right()
public ComparisonFormula.Operator op()
public <E,F,D,I> F accept(ReturnVisitor<E,F,D,I> visitor)
accept
in interface Node
accept
in class Formula
Node.accept(kodkod.ast.visitor.ReturnVisitor)
public void accept(VoidVisitor visitor)
Node.accept(kodkod.ast.visitor.VoidVisitor)
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 |