public final class IntConstant extends IntExpression
value: int
no children
Modifier and Type | Method and Description |
---|---|
<E,F,D,I> I |
accept(ReturnVisitor<E,F,D,I> visitor)
Accepts the given visitor and returns the result
of the visit (i.e.
|
void |
accept(VoidVisitor visitor)
Accepts the given void visitor by calling visitor.visit(this).
|
static IntConstant |
constant(int value)
Returns an IntConstant corresponding to the given value.
|
boolean |
equals(Object o)
Return true if o is an IntConstant with the same value as this.
|
int |
hashCode()
Return this.value
|
String |
toString()
Returns a string representation of this node.
|
int |
value()
Returns this.value.
|
public <E,F,D,I> I accept(ReturnVisitor<E,F,D,I> visitor)
accept
in class IntExpression
IntExpression.accept(kodkod.ast.visitor.ReturnVisitor)
public void accept(VoidVisitor visitor)
accept
in class IntExpression
IntExpression.accept(kodkod.ast.visitor.VoidVisitor)
public static IntConstant constant(int value)
public boolean equals(Object o)
public int hashCode()
public String toString()
toString
in class Node
Node.toString()
public int value()
© Emina Torlak 2005-present