public class CompoundLiteral extends Expression
| Constructor and Description |
|---|
CompoundLiteral(java.util.List specs,
java.util.List lits)
Constructs a new compound literal with the specified type and the list
of literals.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundLiteral |
clone()
Returns a clone of this compound literal.
|
static void |
defaultPrint(CompoundLiteral cl,
java.io.PrintWriter o)
Prints this compound literal to the specified stream.
|
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.
|
java.util.List<Traversable> |
getLiterals() |
java.util.List<Specifier> |
getSpecifiers() |
static void |
setClassPrintMethod(java.lang.reflect.Method m) |
compareTo, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, toString, verifypublic CompoundLiteral(java.util.List specs,
java.util.List lits)
public CompoundLiteral clone()
clone in class Expressionpublic static void defaultPrint(CompoundLiteral cl, 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==nullpublic static void setClassPrintMethod(java.lang.reflect.Method m)
public java.util.List<Specifier> getSpecifiers()
public java.util.List<Traversable> getLiterals()