org.jf.baksmali.Adaptors
Class MethodDefinition

java.lang.Object
  extended by org.jf.baksmali.Adaptors.MethodDefinition

public class MethodDefinition
extends java.lang.Object


Nested Class Summary
static class MethodDefinition.InvalidSwitchPayload
           
static class MethodDefinition.LabelCache
           
 
Field Summary
 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 Summary
MethodDefinition(ClassDefinition classDef, org.jf.dexlib2.iface.Method method, org.jf.dexlib2.iface.MethodImplementation methodImpl)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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(org.jf.util.IndentingWriter writer,
                                      org.jf.dexlib2.iface.Method method,
                                      baksmaliOptions options)
                               throws java.io.IOException
Throws:
java.io.IOException

writeTo

public void writeTo(org.jf.util.IndentingWriter writer)
             throws java.io.IOException
Throws:
java.io.IOException

findSwitchPayload

public int findSwitchPayload(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)