|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Expression
cetus.hir.NewExpression
public class NewExpression
| Field Summary | |
|---|---|
protected static boolean |
global
If blobal == true, it prints "::" before printing the new expression. |
| Fields inherited from class cetus.hir.Expression |
|---|
children, needs_parens, object_print_method, parent |
| Constructor Summary | |
|---|---|
NewExpression(java.util.List specs)
|
|
NewExpression(java.util.List specs,
Initializer init)
|
|
| Method Summary | |
|---|---|
void |
clearGlobal()
disable printing "::" |
java.lang.Object |
clone()
Creates and returns a deep copy of this expression. |
static void |
defaultPrint(NewExpression expr,
java.io.OutputStream stream)
Prints a new expression to a stream. |
boolean |
isGlobal()
returns true if it is set to be global. |
void |
setGlobal()
force printing "::" |
java.lang.String |
toString()
Every expression class should override toString method. |
| Methods inherited from class cetus.hir.Expression |
|---|
compareTo, equals, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static boolean global
| Constructor Detail |
|---|
public NewExpression(java.util.List specs)
public NewExpression(java.util.List specs,
Initializer init)
| Method Detail |
|---|
public void setGlobal()
public void clearGlobal()
public boolean isGlobal()
public java.lang.Object clone()
Expression
clone in class Expression
public static void defaultPrint(NewExpression expr,
java.io.OutputStream stream)
expr - The expression to print.stream - The stream on which to print the expression.public java.lang.String toString()
Expression
toString in class Expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||