Package soot.jimple

Class Constant

    • Constructor Detail

      • Constant

        public Constant()
    • Method Detail

      • getUseBoxes

        public final List<ValueBox> getUseBoxes()
        Description copied from interface: Value
        Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
        Specified by:
        getUseBoxes in interface Value
      • clone

        public Object clone()
        Clones the current constant. Not implemented here.
        Specified by:
        clone in interface Value
        Overrides:
        clone in class Object
      • equivTo

        public boolean equivTo​(Object c)
        Returns true if this object is structurally equivalent to c. For Constants, equality is structural equality, so we just call equals().
        Specified by:
        equivTo in interface EquivTo
      • equivHashCode

        public 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