Interface NumericConstant<N extends NumericConstant<N>>

All Superinterfaces:
Acceptor<ConstantVisitor>, ComparableConstant<N>, Constant, EquivTo, Immediate, JimpleIR, Value
All Known Subinterfaces:
RealConstant<R>, ShiftableConstant<A>
All Known Implementing Classes:
DoubleConstant, FloatConstant, IntConstant, LongConstant

public interface NumericConstant<N extends NumericConstant<N>> extends Constant, ComparableConstant<N>
  • Method Details

    • add

      @NonNull N add(@NonNull N c)
    • subtract

      @NonNull N subtract(@NonNull N c)
    • multiply

      @NonNull N multiply(@NonNull N c)
    • divide

      @NonNull N divide(@NonNull N c)
    • remainder

      @NonNull N remainder(@NonNull N c)
    • lessThan

      @NonNull BooleanConstant lessThan(@NonNull N c)
    • lessThanOrEqual

      @NonNull BooleanConstant lessThanOrEqual(@NonNull N c)
    • greaterThan

      @NonNull BooleanConstant greaterThan(@NonNull N c)
    • greaterThanOrEqual

      @NonNull BooleanConstant greaterThanOrEqual(@NonNull N c)
    • negate

      @NonNull N negate()
    • getValue

      @NonNull Number getValue()
      Description copied from interface: Constant
      Obtain the runtime value of the Constant. E.g. IntConstant.getInstance(42).getValue() will return Integer.valueOf(42).
      Specified by:
      getValue in interface Constant
      Returns:
      the runtime value of the Constant