public class MethodDefinition
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodDefinition.InvalidSwitchPayload |
static class |
MethodDefinition.LabelCache |
| Modifier and Type | Field and Description |
|---|---|
ClassDefinition |
classDef |
com.google.common.collect.ImmutableList<org.jf.dexlib2.iface.instruction.Instruction> |
instructions |
org.jf.dexlib2.iface.Method |
method |
org.jf.dexlib2.iface.MethodImplementation |
methodImpl |
com.google.common.collect.ImmutableList<org.jf.dexlib2.iface.MethodParameter> |
methodParameters |
RegisterFormatter |
registerFormatter |
| Constructor and Description |
|---|
MethodDefinition(ClassDefinition classDef,
org.jf.dexlib2.iface.Method method,
org.jf.dexlib2.iface.MethodImplementation methodImpl) |
| Modifier and Type | Method and Description |
|---|---|
int |
findSwitchPayload(int targetOffset,
org.jf.dexlib2.Opcode type) |
MethodDefinition.LabelCache |
getLabelCache() |
int |
getPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset) |
int |
getSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset) |
static void |
writeEmptyMethodTo(org.jf.util.IndentingWriter writer,
org.jf.dexlib2.iface.Method method,
baksmaliOptions options) |
void |
writeTo(org.jf.util.IndentingWriter writer) |
@Nonnull public final ClassDefinition classDef
@Nonnull public final org.jf.dexlib2.iface.Method method
@Nonnull public final org.jf.dexlib2.iface.MethodImplementation methodImpl
@Nonnull public final com.google.common.collect.ImmutableList<org.jf.dexlib2.iface.instruction.Instruction> instructions
@Nonnull public final com.google.common.collect.ImmutableList<org.jf.dexlib2.iface.MethodParameter> methodParameters
public RegisterFormatter registerFormatter
public MethodDefinition(@Nonnull
ClassDefinition classDef,
@Nonnull
org.jf.dexlib2.iface.Method method,
@Nonnull
org.jf.dexlib2.iface.MethodImplementation methodImpl)
public static void writeEmptyMethodTo(org.jf.util.IndentingWriter writer,
org.jf.dexlib2.iface.Method method,
baksmaliOptions options)
throws java.io.IOException
java.io.IOExceptionpublic void writeTo(org.jf.util.IndentingWriter writer)
throws java.io.IOException
java.io.IOExceptionpublic int findSwitchPayload(int targetOffset,
org.jf.dexlib2.Opcode type)
@Nonnull public MethodDefinition.LabelCache getLabelCache()
public int getPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset)
public int getSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset)