| Modifier and Type | Field and Description |
|---|---|
| public final Expression | |
| public final Expression | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final int | calcHashCode()
Implements abstract com. |
| public Iterator | |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. |
| public Expression[] |
| exp1 | back to summary |
|---|---|
| public final Expression exp1 | |
| exp2 | back to summary |
|---|---|
| public final Expression exp2 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| BinaryExp | back to summary |
|---|---|
| public BinaryExp(Expression left, Expression right) | |
| calcHashCode | back to summary |
|---|---|
| protected final int calcHashCode() Implements abstract com. Doc from com. Computes the hashCode again. This method and the parameter to the constructor has to be the same. This method is used when the object is being read from the stream. | |
| children | back to summary |
|---|---|
| public Iterator iterates all child expressions. Since expressions are binarized, expressions like A|B|C is modeled as A|(B|C). This is may not be preferable for some applications. This method returns an iterator that iterates all children (A,B, and C in this example) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract com. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getChildren | back to summary |
|---|---|
| public Expression[] getChildren() returns all child expressions in one array. This method is similar to the children method but it returns an array that contains all children instead of an iterator object. | |