Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.expr
Class ConstOperator

java.lang.Object
  extended bynet.sf.jode.expr.Expression
      extended bynet.sf.jode.expr.Operator
          extended bynet.sf.jode.expr.NoArgOperator
              extended bynet.sf.jode.expr.ConstOperator

public class ConstOperator
extends NoArgOperator


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
ConstOperator(java.lang.Object constant)
           
 
Method Summary
 void dumpExpression(TabbedPrintWriter writer)
           
 int getPriority()
          Get priority of the operator.
 java.lang.Object getValue()
           
 boolean isOne(Type type)
          Return true, if this value is a one of the given type.
 void makeInitializer(Type type)
           
 boolean opEquals(Operator o)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jode.expr.NoArgOperator
updateSubTypes, updateType
 
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, setOperatorIndex, setSubExpressions, simplify, subsEquals
 
Methods inherited from class net.sf.jode.expr.Expression
dumpExpression, dumpExpression, getBreakPenalty, getParent, getType, isVoid, negate, removeOnetimeLocals, setType, simplifyString, simplifyStringBuffer, updateParentType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstOperator

public ConstOperator(java.lang.Object constant)
Method Detail

getValue

public java.lang.Object getValue()

isOne

public boolean isOne(Type type)
Return true, if this value is a one of the given type. This is used for ++ and -- instructions.

Parameters:
type - the type for which this must be a one. This may be different from the type this value actually is.

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

opEquals

public boolean opEquals(Operator o)
Overrides:
opEquals in class Operator

makeInitializer

public void makeInitializer(Type type)
Overrides:
makeInitializer in class Expression

toString

public java.lang.String toString()
Overrides:
toString in class Expression

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.