public class CommaExpression extends Expression
| Constructor and Description |
|---|
CommaExpression(java.util.List expr_list)
Constructs a comma expression from the specified list of expressions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExpression(Expression expr)
Inserts a new expression at the end of the expression list.
|
CommaExpression |
clone()
Creates and returns a deep copy of this expression.
|
static void |
defaultPrint(CommaExpression e,
java.io.PrintWriter o)
Prints a CommaExpression to a stream.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently
created objects will use the supplied method.
|
java.lang.String |
toString()
Returns a string representation of the expression
|
compareTo, equals, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verifypublic CommaExpression(java.util.List expr_list)
expr_list - the list of new expressions.java.lang.IllegalArgumentException - if expr_list is a singleton or
null.NotAnOrphanException - if an element of expr_list has a
parent object.public void addExpression(Expression expr)
expr - the new expression to be inserted.java.lang.IllegalArgumentException - if expr is null.NotAnOrphanException - if expr has a parent object.public CommaExpression clone()
Expressionclone in class Expressionpublic static void defaultPrint(CommaExpression e, java.io.PrintWriter o)
e - The expression to print.o - The writer on which to print the expression.public java.lang.String toString()
ExpressiontoString in class Expressionpublic static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.