Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.expr
Class IIncOperator

java.lang.Object
  extended bynet.sf.jode.expr.Expression
      extended bynet.sf.jode.expr.Operator
          extended bynet.sf.jode.expr.IIncOperator
All Implemented Interfaces:
CombineableOperator

public class IIncOperator
extends Operator
implements CombineableOperator


Field Summary
 
Fields inherited from class net.sf.jode.expr.Operator
ADD_OP, AND_OP, ASSIGN_OP, COMPARE_OP, DEC_OP, EQUALS_OP, GREATER_OP, GREATEREQ_OP, INC_OP, LESS_OP, LESSEQ_OP, LOG_AND_OP, LOG_NOT_OP, LOG_OR_OP, NEG_OP, NOTEQUALS_OP, OPASSIGN_OP, operatorIndex, SHIFT_OP, SUB_OP
 
Fields inherited from class net.sf.jode.expr.Expression
EMPTYSTRING, type
 
Constructor Summary
IIncOperator(LocalStoreOperator localStore, int value, int operator)
           
 
Method Summary
 void dumpExpression(TabbedPrintWriter writer)
           
 LValueExpression getLValue()
          Returns the LValue.
 int getPriority()
          Get priority of the operator.
 int getValue()
           
 boolean lvalueMatches(Operator loadop)
          Checks if the loadOp is combinable with the lvalue.
 void makeNonVoid()
          Makes a non void expression out of this store instruction.
 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.Operator
addOperand, canCombine, combine, containsConflictingLoad, containsMatchingLoad, equals, fillDeclarables, fillInGenSet, getFreeOperandCount, getOperator, getOperatorIndex, getOperatorString, getSubExpressions, hasSideEffects, initOperands, isConstant, isFreeOperator, isFreeOperator, makeDeclaration, opEquals, setOperatorIndex, setSubExpressions, subsEquals
 
Methods inherited from class net.sf.jode.expr.Expression
dumpExpression, dumpExpression, getBreakPenalty, getParent, getType, isVoid, 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

IIncOperator

public IIncOperator(LocalStoreOperator localStore,
                    int value,
                    int operator)
Method Detail

getLValue

public LValueExpression getLValue()
Description copied from interface: CombineableOperator
Returns the LValue.

Specified by:
getLValue in interface CombineableOperator

getValue

public int getValue()

getPriority

public int getPriority()
Description copied from class: Expression
Get priority of the operator. Currently this priorities are known:

Specified by:
getPriority in class Expression

updateSubTypes

public void updateSubTypes()
Description copied from class: Expression
Tells an expression that an outer expression has changed our type and that the inner types should be recalculated.

Specified by:
updateSubTypes in class Expression

updateType

public void updateType()
Description copied from class: Expression
Tells an expression that an inner expression may have changed and that the type should be recalculated. This may call setType of the caller again.

Specified by:
updateType in class Expression

makeNonVoid

public void makeNonVoid()
Makes a non void expression out of this store instruction.

Specified by:
makeNonVoid in interface CombineableOperator

lvalueMatches

public boolean lvalueMatches(Operator loadop)
Description copied from interface: CombineableOperator
Checks if the loadOp is combinable with the lvalue.

Specified by:
lvalueMatches in interface CombineableOperator

simplify

public Expression simplify()
Overrides:
simplify in class Operator

dumpExpression

public void dumpExpression(TabbedPrintWriter writer)
                    throws java.io.IOException
Specified by:
dumpExpression in class Operator
Throws:
java.io.IOException

Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.