Interface Constant

All Superinterfaces:
Acceptor<ConstantVisitor>, EquivTo, Immediate, Value
All Known Subinterfaces:
ComparableConstant<C>, LogicalConstant<L>, NumericConstant<N>, RealConstant<R>, ShiftableConstant<A>
All Known Implementing Classes:
BooleanConstant, ClassConstant, DoubleConstant, EnumConstant, FloatConstant, IntConstant, LongConstant, MethodHandle, MethodType, NullConstant, StringConstant

public interface Constant extends Immediate, Acceptor<ConstantVisitor>
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Returns a hash code consistent with structural equality for this object.
    default boolean
    Returns true if this object is equivalent to o according to the given comparator.
    default Stream<Value>
    Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference.
    default void
     

    Methods inherited from interface sootup.core.jimple.visitor.Acceptor

    accept

    Methods inherited from interface sootup.core.jimple.basic.EquivTo

    equivTo

    Methods inherited from interface sootup.core.jimple.basic.Value

    accept, getType
  • Method Details

    • getUses

      @Nonnull default Stream<Value> getUses()
      Description copied from interface: Value
      Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference.
      Specified by:
      getUses in interface Value
      Returns:
    • equivTo

      default boolean equivTo(Object o, @Nonnull JimpleComparator comparator)
      Description copied from interface: EquivTo
      Returns true if this object is equivalent to o according to the given comparator.
      Specified by:
      equivTo in interface EquivTo
    • equivHashCode

      default int equivHashCode()
      Returns a hash code consistent with structural equality for this object. For Constants, equality is structural equality; we hope that each subclass defines hashCode() correctly.
      Specified by:
      equivHashCode in interface EquivTo
    • toString

      default void toString(@Nonnull StmtPrinter up)
      Specified by:
      toString in interface Value