Modifier and Type | Method and Description |
---|---|
<E,F,D,I> D |
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).
|
Decls |
and(Decls other)
Returns a sequence of this.size + other.size decls that has
these decls as the prefix and the given decls as the suffix.
|
Decl |
get(int i)
Returns the ith declaration in this Decls sequence.
|
Iterator<Decl> |
iterator()
Returns an unmodifiable iterator over the decls in this Decls object.
|
int |
size()
Returns the number of decls in this Decls object.
|
String |
toString()
Returns a string representation of this node.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public <E,F,D,I> D accept(ReturnVisitor<E,F,D,I> visitor)
accept
in class Node
Node.accept(kodkod.ast.visitor.ReturnVisitor)
public void accept(VoidVisitor visitor)
accept
in class Node
Node.accept(kodkod.ast.visitor.VoidVisitor)
public final Decls and(Decls other)
NullPointerException
- decl = nullpublic Decl get(int i)
0 <= i < this.size
public Iterator<Decl> iterator()
public int size()
public String toString()
toString
in class Node
Node.toString()
© Emina Torlak 2005-present