Class MethodDefinition


  • public class MethodDefinition
    extends java.lang.Object
    • Field Detail

      • 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
    • 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)
      • getPackedSwitchBaseAddress

        public int getPackedSwitchBaseAddress​(int packedSwitchPayloadCodeOffset)
      • getSparseSwitchBaseAddress

        public int getSparseSwitchBaseAddress​(int sparseSwitchPayloadCodeOffset)