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 intgetIndex()BuilderReferencegetMemberReference()Gets the member that is being referenced by this method handle.intgetMethodHandleType()Gets the method handle type.voidsetIndex(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:MethodHandleReferenceGets the method handle type.- Specified by:
getMethodHandleTypein interfaceMethodHandleReference- Returns:
- One of the MethodHandleType values
-
getMemberReference
@Nonnull public BuilderReference getMemberReference()
Description copied from interface:MethodHandleReferenceGets the member that is being referenced by this method handle.- Specified by:
getMemberReferencein interfaceMethodHandleReference- Returns:
- A MethodReference or FieldReference, depending on the method handle type
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceBuilderReference
-
setIndex
public void setIndex(int index)
- Specified by:
setIndexin interfaceBuilderReference
-
-