public class SomeExpression extends Expression
| Constructor and Description |
|---|
SomeExpression(java.lang.String code,
java.util.List<Traversable> children)
Constructs some unknown expression having the specified raw code and the
given list of children.
|
| Modifier and Type | Method and Description |
|---|---|
SomeExpression |
clone()
Creates and returns a deep copy of this expression.
|
static void |
defaultPrint(SomeExpression e,
java.io.PrintWriter o)
The default print method just prints out the raw code
|
boolean |
equals(java.lang.Object o)
Checks if the given object is has the same type with this expression and
its children is same with this expression's.
|
compareTo, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, toString, verifypublic SomeExpression(java.lang.String code,
java.util.List<Traversable> children)
code - the raw code for the expression.children - the child expressions.public SomeExpression clone()
Expressionclone in class Expressionpublic static void defaultPrint(SomeExpression e, java.io.PrintWriter o)
public boolean equals(java.lang.Object o)
Expressionequals in class Expressiono - the object to be compared with.o!=null, this.getClass()==o.getClass(),
and this.children.equals(o.children) ||
this.children==o.children==null