Class CodeReader

java.lang.Object
com.android.dx.io.CodeReader

public final class CodeReader extends Object
Walks through a block of code and calls visitor call backs.
  • Constructor Details

    • CodeReader

      public CodeReader()
  • Method Details

    • setAllVisitors

      public void setAllVisitors(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all instructions.
    • setFallbackVisitor

      public void setFallbackVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all instructions not otherwise handled.
    • setStringVisitor

      public void setStringVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all string instructions.
    • setTypeVisitor

      public void setTypeVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all type instructions.
    • setFieldVisitor

      public void setFieldVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all field instructions.
    • setMethodVisitor

      public void setMethodVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all method instructions.
    • setMethodAndProtoVisitor

      public void setMethodAndProtoVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all method and proto instructions.
    • setCallSiteVisitor

      public void setCallSiteVisitor(CodeReader.Visitor visitor)
      Sets visitor as the visitor for all call site instructions.
    • visitAll

      public void visitAll(DecodedInstruction[] decodedInstructions) throws DexException
      Throws:
      DexException
    • visitAll

      public void visitAll(short[] encodedInstructions) throws DexException
      Throws:
      DexException