Package org.jf.baksmali.Adaptors
Class MethodDefinition
- java.lang.Object
-
- org.jf.baksmali.Adaptors.MethodDefinition
-
public class MethodDefinition extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethodDefinition.InvalidSwitchPayloadstatic classMethodDefinition.LabelCache
-
Field Summary
Fields Modifier and Type Field Description ClassDefinitionclassDefjava.util.List<org.jf.dexlib2.iface.instruction.Instruction>effectiveInstructionscom.google.common.collect.ImmutableList<org.jf.dexlib2.iface.instruction.Instruction>instructionsorg.jf.dexlib2.iface.Methodmethodorg.jf.dexlib2.iface.MethodImplementationmethodImplcom.google.common.collect.ImmutableList<org.jf.dexlib2.iface.MethodParameter>methodParametersRegisterFormatterregisterFormatter
-
Constructor Summary
Constructors Constructor Description MethodDefinition(ClassDefinition classDef, org.jf.dexlib2.iface.Method method, org.jf.dexlib2.iface.MethodImplementation methodImpl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intfindPayloadOffset(int targetOffset, org.jf.dexlib2.Opcode type)org.jf.dexlib2.iface.instruction.InstructionfindSwitchPayload(int targetOffset, org.jf.dexlib2.Opcode type)MethodDefinition.LabelCachegetLabelCache()intgetPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset)intgetSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset)static voidwriteEmptyMethodTo(BaksmaliWriter writer, org.jf.dexlib2.iface.Method method, ClassDefinition classDef)voidwriteTo(BaksmaliWriter writer)
-
-
-
Field Detail
-
classDef
@Nonnull public final ClassDefinition classDef
-
method
@Nonnull public final org.jf.dexlib2.iface.Method method
-
methodImpl
@Nonnull public final org.jf.dexlib2.iface.MethodImplementation methodImpl
-
instructions
@Nonnull public final com.google.common.collect.ImmutableList<org.jf.dexlib2.iface.instruction.Instruction> instructions
-
effectiveInstructions
@Nonnull public final java.util.List<org.jf.dexlib2.iface.instruction.Instruction> effectiveInstructions
-
methodParameters
@Nonnull public final com.google.common.collect.ImmutableList<org.jf.dexlib2.iface.MethodParameter> methodParameters
-
registerFormatter
public RegisterFormatter registerFormatter
-
-
Constructor Detail
-
MethodDefinition
public MethodDefinition(@Nonnull ClassDefinition classDef, @Nonnull org.jf.dexlib2.iface.Method method, @Nonnull org.jf.dexlib2.iface.MethodImplementation methodImpl)
-
-
Method Detail
-
writeEmptyMethodTo
public static void writeEmptyMethodTo(BaksmaliWriter writer, org.jf.dexlib2.iface.Method method, ClassDefinition classDef) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTo
public void writeTo(BaksmaliWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
findSwitchPayload
public org.jf.dexlib2.iface.instruction.Instruction findSwitchPayload(int targetOffset, org.jf.dexlib2.Opcode type)
-
findPayloadOffset
public int findPayloadOffset(int targetOffset, org.jf.dexlib2.Opcode type)
-
getLabelCache
@Nonnull public MethodDefinition.LabelCache getLabelCache()
-
getPackedSwitchBaseAddress
public int getPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset)
-
getSparseSwitchBaseAddress
public int getSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset)
-
-