Interface IDexCallSite
A Dex call site item. Do not confuse with Java's
CallSite - although the two are related.-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_ANONYMOUS, FLAG_ARTIFICIAL, FLAG_BRIDGE, FLAG_CONSTRUCTOR, FLAG_DECLARED_SYNCHRONIZED, FLAG_DESTRUCTOR, FLAG_ENUM, FLAG_FINAL, FLAG_INNER, FLAG_INTERFACE, FLAG_INTERNAL, FLAG_NATIVE, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STRICT, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_VARARGS, FLAG_VIRTUAL, FLAG_VOLATILE -
Method Summary
Modifier and TypeMethodDescriptiongenerate(boolean effective) Generate a string representing the call site.getCallSiteValue(int index) Get a value stored in this call site item.Get the list of linker method (bootstrap method) arguments.Get the method name.intConvenience method to retrieve the target method name hint.Get the method prototype.intConvenience method to retrieve the target method prototype.Convenience method to retrieve the bootstrap method handle.intConvenience method to retrieve the bootstrap method handle.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
getAddress, getAddress, getGenericFlags, getIndex, getItemId, getName, getName, getSignature, getSignature, getSignature, isArtificial, isInternal
-
Method Details
-
getCallSiteValues
Get the list of linker method (bootstrap method) arguments. The provided list contains at least 3 entries; the first three entries are: a method handle to the bootstrap method, a dynamic method name, a dynamic method type (prototype).- Returns:
- a list containing at least 3 entries
-
getCallSiteValue
Get a value stored in this call site item.- Parameters:
index- the zero-based call site value index- Returns:
- the call site value
-
getLinkerMethodHandleIndex
int getLinkerMethodHandleIndex()Convenience method to retrieve the bootstrap method handle. Get the first value entry, which is an index into the method handles pool.- Returns:
- the bootstrap method handle index
-
getLinkerMethodHandle
IDexMethodHandle getLinkerMethodHandle()Convenience method to retrieve the bootstrap method handle.- Returns:
- the bootstrap method handle
-
getDynamicMethodNameIndex
int getDynamicMethodNameIndex()Convenience method to retrieve the target method name hint. Get the second value entry, which is an index into the string pool.- Returns:
- the dynamic method name string index
-
getDynamicMethodName
IDexString getDynamicMethodName()Get the method name.- Returns:
- the dynamic method name
-
getDynamicMethodPrototypeIndex
int getDynamicMethodPrototypeIndex()Convenience method to retrieve the target method prototype. Get the third value entry, which is an index into the prototypes pool.- Returns:
- the dynamic method prototype index
-
getDynamicMethodPrototype
IDexPrototype getDynamicMethodPrototype()Get the method prototype.- Returns:
- the dynamic method prototype
-
generate
Generate a string representing the call site.- Parameters:
effective- true to use effective names, false to use original names- Returns:
- a generated call site string
-