Package org.jf.dexlib2.writer.builder
Class BuilderCallSiteReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseCallSiteReference
-
- org.jf.dexlib2.writer.builder.BuilderCallSiteReference
-
- All Implemented Interfaces:
CallSiteReference
,Reference
,BuilderReference
public class BuilderCallSiteReference extends BaseCallSiteReference implements BuilderReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Constructor Summary
Constructors Constructor Description BuilderCallSiteReference(java.lang.String name, BuilderEncodedValues.BuilderArrayEncodedValue encodedCallSite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends BuilderEncodedValues.BuilderEncodedValue>
getExtraArguments()
int
getIndex()
BuilderMethodHandleReference
getMethodHandle()
Gets a reference to a method handle for the bootstrap linker methodjava.lang.String
getMethodName()
BuilderMethodProtoReference
getMethodProto()
java.lang.String
getName()
Gets a name for this call site.void
setIndex(int index)
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseCallSiteReference
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
-
BuilderCallSiteReference
public BuilderCallSiteReference(@Nonnull java.lang.String name, @Nonnull BuilderEncodedValues.BuilderArrayEncodedValue encodedCallSite)
-
-
Method Detail
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:CallSiteReference
Gets a name for this call site. This is an arbitrary synthetic string that serves to differentiate call sites that would otherwise be identical. It can be any arbitrary string, with the only requirement being that 2 different, but otherwise identical call sites in the same dex file must not share the same name. Multiple non-identical call sites may use the same name however.- Specified by:
getName
in interfaceCallSiteReference
- Returns:
- The name for this call site.
-
getMethodHandle
@Nonnull public BuilderMethodHandleReference getMethodHandle()
Description copied from interface:CallSiteReference
Gets a reference to a method handle for the bootstrap linker method- Specified by:
getMethodHandle
in interfaceCallSiteReference
- Returns:
- A MethodHandleReference to the bootstrap linker method
-
getMethodName
@Nonnull public java.lang.String getMethodName()
- Specified by:
getMethodName
in interfaceCallSiteReference
- Returns:
- A method name that the bootstrap linker should resolve.
-
getMethodProto
@Nonnull public BuilderMethodProtoReference getMethodProto()
- Specified by:
getMethodProto
in interfaceCallSiteReference
- Returns:
- A MethodProtoReference corresponding to the prototype of the method that the bootstrap linker should resolve
-
getExtraArguments
@Nonnull public java.util.List<? extends BuilderEncodedValues.BuilderEncodedValue> getExtraArguments()
- Specified by:
getExtraArguments
in interfaceCallSiteReference
- Returns:
- A list of extra arguments to pass to the bootstrap linker
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceBuilderReference
-
setIndex
public void setIndex(int index)
- Specified by:
setIndex
in interfaceBuilderReference
-
-