Package org.jf.dexlib2.writer.builder
Class BuilderMethodHandleReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseMethodHandleReference
-
- org.jf.dexlib2.writer.builder.BuilderMethodHandleReference
-
- All Implemented Interfaces:
java.lang.Comparable<MethodHandleReference>
,MethodHandleReference
,Reference
,BuilderReference
public class BuilderMethodHandleReference extends BaseMethodHandleReference implements BuilderReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Constructor Summary
Constructors Constructor Description BuilderMethodHandleReference(int methodHandleType, BuilderReference memberReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
BuilderReference
getMemberReference()
Gets the member that is being referenced by this method handle.int
getMethodHandleType()
Gets the method handle type.void
setIndex(int index)
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseMethodHandleReference
compareTo, equals, hashCode, toString
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReference
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
-
-
-
Constructor Detail
-
BuilderMethodHandleReference
public BuilderMethodHandleReference(int methodHandleType, @Nonnull BuilderReference memberReference)
-
-
Method Detail
-
getMethodHandleType
public int getMethodHandleType()
Description copied from interface:MethodHandleReference
Gets the method handle type.- Specified by:
getMethodHandleType
in interfaceMethodHandleReference
- Returns:
- One of the MethodHandleType values
-
getMemberReference
@Nonnull public BuilderReference getMemberReference()
Description copied from interface:MethodHandleReference
Gets the member that is being referenced by this method handle.- Specified by:
getMemberReference
in interfaceMethodHandleReference
- Returns:
- A MethodReference or FieldReference, depending on the method handle type
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceBuilderReference
-
setIndex
public void setIndex(int index)
- Specified by:
setIndex
in interfaceBuilderReference
-
-