org.jf.baksmali.Adaptors.Format
Class InstructionMethodItem<T extends org.jf.dexlib2.iface.instruction.Instruction>

java.lang.Object
  extended by org.jf.baksmali.Adaptors.MethodItem
      extended by org.jf.baksmali.Adaptors.Format.InstructionMethodItem<T>
All Implemented Interfaces:
java.lang.Comparable<MethodItem>
Direct Known Subclasses:
ArrayDataMethodItem, OffsetInstructionFormatMethodItem, PackedSwitchMethodItem, SparseSwitchMethodItem, UnresolvedOdexInstructionMethodItem

public class InstructionMethodItem<T extends org.jf.dexlib2.iface.instruction.Instruction>
extends MethodItem


Field Summary
protected  T instruction
           
protected  MethodDefinition methodDef
           
 
Fields inherited from class org.jf.baksmali.Adaptors.MethodItem
codeAddress
 
Constructor Summary
InstructionMethodItem(MethodDefinition methodDef, int codeAddress, T instruction)
           
 
Method Summary
 double getSortOrder()
           
protected  void writeFieldOffset(org.jf.util.IndentingWriter writer)
           
protected  void writeFirstRegister(org.jf.util.IndentingWriter writer)
           
protected  void writeInlineIndex(org.jf.util.IndentingWriter writer)
           
protected  void writeInvokeRangeRegisters(org.jf.util.IndentingWriter writer)
           
protected  void writeInvokeRegisters(org.jf.util.IndentingWriter writer)
           
protected  void writeLiteral(org.jf.util.IndentingWriter writer)
           
protected  void writeOpcode(org.jf.util.IndentingWriter writer)
           
protected  void writeRegister(org.jf.util.IndentingWriter writer, int registerNumber)
           
protected  void writeResourceId(org.jf.util.IndentingWriter writer)
           
protected  void writeResourceId(org.jf.util.IndentingWriter writer, int val)
           
protected  void writeSecondRegister(org.jf.util.IndentingWriter writer)
           
protected  void writeTargetLabel(org.jf.util.IndentingWriter writer)
           
protected  void writeThirdRegister(org.jf.util.IndentingWriter writer)
           
 boolean writeTo(org.jf.util.IndentingWriter writer)
           
protected  void writeVtableIndex(org.jf.util.IndentingWriter writer)
           
 
Methods inherited from class org.jf.baksmali.Adaptors.MethodItem
compareTo, getCodeAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodDef

@Nonnull
protected final MethodDefinition methodDef

instruction

@Nonnull
protected final T extends org.jf.dexlib2.iface.instruction.Instruction instruction
Constructor Detail

InstructionMethodItem

public InstructionMethodItem(@Nonnull
                             MethodDefinition methodDef,
                             int codeAddress,
                             @Nonnull
                             T instruction)
Method Detail

getSortOrder

public double getSortOrder()
Specified by:
getSortOrder in class MethodItem

writeTo

public boolean writeTo(org.jf.util.IndentingWriter writer)
                throws java.io.IOException
Specified by:
writeTo in class MethodItem
Throws:
java.io.IOException

writeOpcode

protected void writeOpcode(org.jf.util.IndentingWriter writer)
                    throws java.io.IOException
Throws:
java.io.IOException

writeTargetLabel

protected void writeTargetLabel(org.jf.util.IndentingWriter writer)
                         throws java.io.IOException
Throws:
java.io.IOException

writeRegister

protected void writeRegister(org.jf.util.IndentingWriter writer,
                             int registerNumber)
                      throws java.io.IOException
Throws:
java.io.IOException

writeFirstRegister

protected void writeFirstRegister(org.jf.util.IndentingWriter writer)
                           throws java.io.IOException
Throws:
java.io.IOException

writeSecondRegister

protected void writeSecondRegister(org.jf.util.IndentingWriter writer)
                            throws java.io.IOException
Throws:
java.io.IOException

writeThirdRegister

protected void writeThirdRegister(org.jf.util.IndentingWriter writer)
                           throws java.io.IOException
Throws:
java.io.IOException

writeInvokeRegisters

protected void writeInvokeRegisters(org.jf.util.IndentingWriter writer)
                             throws java.io.IOException
Throws:
java.io.IOException

writeInvokeRangeRegisters

protected void writeInvokeRangeRegisters(org.jf.util.IndentingWriter writer)
                                  throws java.io.IOException
Throws:
java.io.IOException

writeLiteral

protected void writeLiteral(org.jf.util.IndentingWriter writer)
                     throws java.io.IOException
Throws:
java.io.IOException

writeResourceId

protected void writeResourceId(org.jf.util.IndentingWriter writer)
                        throws java.io.IOException
Throws:
java.io.IOException

writeResourceId

protected void writeResourceId(org.jf.util.IndentingWriter writer,
                               int val)
                        throws java.io.IOException
Throws:
java.io.IOException

writeFieldOffset

protected void writeFieldOffset(org.jf.util.IndentingWriter writer)
                         throws java.io.IOException
Throws:
java.io.IOException

writeInlineIndex

protected void writeInlineIndex(org.jf.util.IndentingWriter writer)
                         throws java.io.IOException
Throws:
java.io.IOException

writeVtableIndex

protected void writeVtableIndex(org.jf.util.IndentingWriter writer)
                         throws java.io.IOException
Throws:
java.io.IOException