Package org.jf.baksmali.Adaptors
Class MethodDefinition
java.lang.Object
org.jf.baksmali.Adaptors.MethodDefinition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ClassDefinitionfinal List<Instruction> private final InstructionOffsetMapfinal com.google.common.collect.ImmutableList<Instruction> private final MethodDefinition.LabelCachefinal Methodfinal MethodImplementationfinal com.google.common.collect.ImmutableList<MethodParameter> private final SparseIntArrayprivate final SparseIntArray -
Constructor Summary
ConstructorsConstructorDescriptionMethodDefinition(ClassDefinition classDef, Method method, MethodImplementation methodImpl) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAnalyzedInstructionMethodItems(List<MethodItem> methodItems) private voidaddDebugInfo(List<MethodItem> methodItems) private voidaddInstructionMethodItems(List<MethodItem> methodItems) private voidaddTries(List<MethodItem> methodItems) intfindPayloadOffset(int targetOffset, Opcode type) findSwitchPayload(int targetOffset, Opcode type) private List<MethodItem> intgetPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset) intgetSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset) private booleanprivate voidprivate static voidwriteAccessFlagsAndRestrictions(BaksmaliWriter writer, int accessFlags, Set<HiddenApiRestriction> hiddenApiRestrictions) static voidwriteEmptyMethodTo(BaksmaliWriter writer, Method method, ClassDefinition classDef) private static voidwriteParameters(ClassDefinition classDef, BaksmaliWriter writer, Method method, List<? extends MethodParameter> parameters) voidwriteTo(BaksmaliWriter writer)
-
Field Details
-
classDef
-
method
-
methodImpl
-
instructions
-
effectiveInstructions
-
methodParameters
-
registerFormatter
-
labelCache
-
packedSwitchMap
-
sparseSwitchMap
-
instructionOffsetMap
-
-
Constructor Details
-
MethodDefinition
public MethodDefinition(@Nonnull ClassDefinition classDef, @Nonnull Method method, @Nonnull MethodImplementation methodImpl)
-
-
Method Details
-
writeEmptyMethodTo
public static void writeEmptyMethodTo(BaksmaliWriter writer, Method method, ClassDefinition classDef) throws IOException - Throws:
IOException
-
writeTo
- Throws:
IOException
-
findSwitchPayload
-
findPayloadOffset
-
writeAccessFlagsAndRestrictions
private static void writeAccessFlagsAndRestrictions(BaksmaliWriter writer, int accessFlags, Set<HiddenApiRestriction> hiddenApiRestrictions) throws IOException - Throws:
IOException
-
writeParameters
private static void writeParameters(ClassDefinition classDef, BaksmaliWriter writer, Method method, List<? extends MethodParameter> parameters) throws IOException - Throws:
IOException
-
getLabelCache
-
getPackedSwitchBaseAddress
public int getPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset) -
getSparseSwitchBaseAddress
public int getSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset) -
getMethodItems
-
needsAnalyzed
private boolean needsAnalyzed() -
addInstructionMethodItems
-
addAnalyzedInstructionMethodItems
-
addTries
-
addDebugInfo
-
setLabelSequentialNumbers
private void setLabelSequentialNumbers()
-