soot.jimple
Class IntConstant

java.lang.Object
  |
  +--soot.jimple.Constant
        |
        +--soot.jimple.NumericConstant
              |
              +--soot.jimple.ArithmeticConstant
                    |
                    +--soot.jimple.IntConstant
All Implemented Interfaces:
ConvertToBaf, EquivTo, java.io.Serializable, Switchable, ToBriefString, Value

public class IntConstant
extends ArithmeticConstant
implements Switchable, ToBriefString

See Also:
Serialized Form

Field Summary
 int value
           
 
Constructor Summary
protected IntConstant(int value)
           
 
Method Summary
 NumericConstant add(NumericConstant c)
           
 ArithmeticConstant and(ArithmeticConstant c)
           
 void apply(Switch sw)
          Called when this object is visited.
 NumericConstant divide(NumericConstant c)
           
 NumericConstant equalEqual(NumericConstant c)
           
 boolean equals(java.lang.Object c)
           
 Type getType()
          Returns the Soot type of this Value.
 NumericConstant greaterThan(NumericConstant c)
           
 NumericConstant greaterThanOrEqual(NumericConstant c)
           
 int hashCode()
           
 NumericConstant lessThan(NumericConstant c)
           
 NumericConstant lessThanOrEqual(NumericConstant c)
           
 NumericConstant multiply(NumericConstant c)
           
 NumericConstant negate()
           
 NumericConstant notEqual(NumericConstant c)
           
 ArithmeticConstant or(ArithmeticConstant c)
           
 NumericConstant remainder(NumericConstant c)
           
 ArithmeticConstant shiftLeft(ArithmeticConstant c)
           
 ArithmeticConstant shiftRight(ArithmeticConstant c)
           
 NumericConstant subtract(NumericConstant c)
           
 java.lang.String toBriefString()
          Returns a brief description of this object.
 java.lang.String toString()
           
 ArithmeticConstant unsignedShiftRight(ArithmeticConstant c)
           
static IntConstant v(int value)
           
 ArithmeticConstant xor(ArithmeticConstant c)
           
 
Methods inherited from class soot.jimple.Constant
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final int value
Constructor Detail

IntConstant

protected IntConstant(int value)
Method Detail

v

public static IntConstant v(int value)

equals

public boolean equals(java.lang.Object c)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

add

public NumericConstant add(NumericConstant c)
Specified by:
add in class NumericConstant

subtract

public NumericConstant subtract(NumericConstant c)
Specified by:
subtract in class NumericConstant

multiply

public NumericConstant multiply(NumericConstant c)
Specified by:
multiply in class NumericConstant

divide

public NumericConstant divide(NumericConstant c)
Specified by:
divide in class NumericConstant

remainder

public NumericConstant remainder(NumericConstant c)
Specified by:
remainder in class NumericConstant

equalEqual

public NumericConstant equalEqual(NumericConstant c)
Specified by:
equalEqual in class NumericConstant

notEqual

public NumericConstant notEqual(NumericConstant c)
Specified by:
notEqual in class NumericConstant

lessThan

public NumericConstant lessThan(NumericConstant c)
Specified by:
lessThan in class NumericConstant

lessThanOrEqual

public NumericConstant lessThanOrEqual(NumericConstant c)
Specified by:
lessThanOrEqual in class NumericConstant

greaterThan

public NumericConstant greaterThan(NumericConstant c)
Specified by:
greaterThan in class NumericConstant

greaterThanOrEqual

public NumericConstant greaterThanOrEqual(NumericConstant c)
Specified by:
greaterThanOrEqual in class NumericConstant

negate

public NumericConstant negate()
Specified by:
negate in class NumericConstant

and

public ArithmeticConstant and(ArithmeticConstant c)
Specified by:
and in class ArithmeticConstant

or

public ArithmeticConstant or(ArithmeticConstant c)
Specified by:
or in class ArithmeticConstant

xor

public ArithmeticConstant xor(ArithmeticConstant c)
Specified by:
xor in class ArithmeticConstant

shiftLeft

public ArithmeticConstant shiftLeft(ArithmeticConstant c)
Specified by:
shiftLeft in class ArithmeticConstant

shiftRight

public ArithmeticConstant shiftRight(ArithmeticConstant c)
Specified by:
shiftRight in class ArithmeticConstant

unsignedShiftRight

public ArithmeticConstant unsignedShiftRight(ArithmeticConstant c)
Specified by:
unsignedShiftRight in class ArithmeticConstant

toString

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

toBriefString

public java.lang.String toBriefString()
Description copied from interface: ToBriefString
Returns a brief description of this object.

Specified by:
toBriefString in interface ToBriefString

getType

public Type getType()
Description copied from interface: Value
Returns the Soot type of this Value.

Specified by:
getType in interface Value

apply

public void apply(Switch sw)
Description copied from interface: Switchable
Called when this object is visited.

Specified by:
apply in interface Switchable