Class MethodHandle

java.lang.Object
sootup.core.jimple.common.constant.MethodHandle
All Implemented Interfaces:
EquivTo, Constant, Immediate, Value, JimpleIR, Acceptor<ConstantVisitor>

public class MethodHandle extends Object implements Constant
  • Constructor Details

  • Method Details

    • isMethodRef

      public static boolean isMethodRef(int tag)
    • isFieldRef

      public static boolean isFieldRef(int tag)
    • isMethodRef

      public boolean isMethodRef()
    • isFieldRef

      public boolean isFieldRef()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public @NonNull Type getType()
      Description copied from interface: Value
      Returns the Soot type of this Value.
      Specified by:
      getType in interface Value
      Returns:
      the type of this value
    • getKind

      public MethodHandle.Kind getKind()
    • getReferenceSignature

      public SootClassMemberSignature<? extends SootClassMemberSubSignature> getReferenceSignature()
    • accept

      public <V extends ConstantVisitor> V accept(@NonNull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
      Specified by:
      accept in interface Acceptor<ConstantVisitor>
      Type Parameters:
      V - the concrete visitor type
      Parameters:
      v - the visitor processing this object
      Returns:
      the visitor after processing
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getValue

      public String 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