|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jode.expr.Expression
net.sf.jode.expr.NopOperator
A NopOperator takes one arguments and returns it again. It is used as placeholder when the real operator is not yet known (e.g. in SwitchBlock, but also in every other Operator). A Nop operator doesn't have subExpressions; getSubExpressions() simply returns zero.
Field Summary |
Fields inherited from class net.sf.jode.expr.Expression |
EMPTYSTRING, type |
Constructor Summary | |
NopOperator(Type type)
|
Method Summary | |
Expression |
addOperand(Expression op)
|
void |
dumpExpression(TabbedPrintWriter writer)
|
boolean |
equals(java.lang.Object o)
|
int |
getFreeOperandCount()
Get the number of operands. |
int |
getPriority()
Get priority of the operator. |
boolean |
isConstant()
|
Expression |
simplify()
|
void |
updateSubTypes()
Tells an expression that an outer expression has changed our type and that the inner types should be recalculated. |
void |
updateType()
Tells an expression that an inner expression may have changed and that the type should be recalculated. |
Methods inherited from class net.sf.jode.expr.Expression |
canCombine, combine, containsConflictingLoad, containsMatchingLoad, dumpExpression, dumpExpression, fillDeclarables, fillInGenSet, getBreakPenalty, getParent, getType, hasSideEffects, isVoid, makeDeclaration, makeInitializer, negate, removeOnetimeLocals, setType, simplifyString, simplifyStringBuffer, toString, updateParentType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NopOperator(Type type)
Method Detail |
public int getFreeOperandCount()
Expression
getFreeOperandCount
in class Expression
public int getPriority()
Expression
getPriority
in class Expression
public void updateSubTypes()
Expression
updateSubTypes
in class Expression
public void updateType()
Expression
updateType
in class Expression
public Expression addOperand(Expression op)
addOperand
in class Expression
public boolean isConstant()
isConstant
in class Expression
public boolean equals(java.lang.Object o)
public Expression simplify()
simplify
in class Expression
public void dumpExpression(TabbedPrintWriter writer) throws java.io.IOException
dumpExpression
in class Expression
java.io.IOException
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |