public class IntConstant extends ArithmeticConstant
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier | Constructor and Description |
---|---|
protected |
IntConstant(int value) |
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toString
public static IntConstant v(int value)
public boolean equals(java.lang.Object c)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NumericConstant add(NumericConstant c)
add
in class NumericConstant
public NumericConstant subtract(NumericConstant c)
subtract
in class NumericConstant
public NumericConstant multiply(NumericConstant c)
multiply
in class NumericConstant
public NumericConstant divide(NumericConstant c)
divide
in class NumericConstant
public NumericConstant remainder(NumericConstant c)
remainder
in class NumericConstant
public NumericConstant equalEqual(NumericConstant c)
equalEqual
in class NumericConstant
public NumericConstant notEqual(NumericConstant c)
notEqual
in class NumericConstant
public NumericConstant lessThan(NumericConstant c)
lessThan
in class NumericConstant
public NumericConstant lessThanOrEqual(NumericConstant c)
lessThanOrEqual
in class NumericConstant
public NumericConstant greaterThan(NumericConstant c)
greaterThan
in class NumericConstant
public NumericConstant greaterThanOrEqual(NumericConstant c)
greaterThanOrEqual
in class NumericConstant
public NumericConstant negate()
negate
in class NumericConstant
public ArithmeticConstant and(ArithmeticConstant c)
and
in class ArithmeticConstant
public ArithmeticConstant or(ArithmeticConstant c)
or
in class ArithmeticConstant
public ArithmeticConstant xor(ArithmeticConstant c)
xor
in class ArithmeticConstant
public ArithmeticConstant shiftLeft(ArithmeticConstant c)
shiftLeft
in class ArithmeticConstant
public ArithmeticConstant shiftRight(ArithmeticConstant c)
shiftRight
in class ArithmeticConstant
public ArithmeticConstant unsignedShiftRight(ArithmeticConstant c)
unsignedShiftRight
in class ArithmeticConstant
public java.lang.String toString()
toString
in class java.lang.Object
public Type getType()
Value
public void apply(Switch sw)
Switchable