|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Expression
cetus.hir.UnaryExpression
public class UnaryExpression
| Field Summary | |
|---|---|
protected UnaryOperator |
op
|
| Fields inherited from class cetus.hir.Expression |
|---|
children, needs_parens, object_print_method, parent |
| Constructor Summary | |
|---|---|
UnaryExpression(UnaryOperator op,
Expression expr)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates and returns a deep copy of this expression. |
static void |
defaultPrint(UnaryExpression expr,
java.io.OutputStream stream)
Prints a unary expression to a stream. |
boolean |
equals(java.lang.Object o)
|
Expression |
getExpression()
Returns the expression. |
UnaryOperator |
getOperator()
Returns the operator of the expression. |
int |
hashCode()
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created objects will use the supplied method. |
void |
setExpression(Expression expr)
|
java.lang.String |
toString()
Every expression class should override toString method. |
| Methods inherited from class cetus.hir.Expression |
|---|
compareTo, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected UnaryOperator op
| Constructor Detail |
|---|
public UnaryExpression(UnaryOperator op,
Expression expr)
| Method Detail |
|---|
public java.lang.Object clone()
Expression
clone in class Expression
public static void defaultPrint(UnaryExpression 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 Expressionpublic boolean equals(java.lang.Object o)
equals in class Expressionpublic Expression getExpression()
public UnaryOperator getOperator()
public int hashCode()
hashCode in class java.lang.Objectpublic static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public void setExpression(Expression expr)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||