public abstract class LeafExpression extends Expression
Relation
and Variable
are examples of leaf exressions. Two leaf expressions are equal
if and only if they refer to the same object. That is,
leaf1.eauls(leaf2) <=> leaf1 == leaf2. A leaf has a name, which is
basically a comment for the purpose of printing, viewing, etc. The name
has no meaning otherwise.name: String
arity: int
no children
IDEN, INTS, NONE, UNIV
Modifier and Type | Method and Description |
---|---|
int |
arity()
Returns the arity of this leaf.
|
String |
name()
Returns the name of this leaf.
|
String |
toString()
Returns a string representation of this node.
|
accept, apply, apply, apply, closure, compare, compose, compose, compose, count, difference, eq, in, intersection, intersection, intersection, join, lone, no, one, override, override, override, product, product, product, project, reflexiveClosure, some, sum, transpose, union, union, union
public final int arity()
arity
in class Expression
public final String name()
public String toString()
toString
in class Node
Node.toString()
© Emina Torlak 2005-present