com.android.dx.io
Class CodeReader

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

public final class CodeReader
extends Object

Walks through a block of code and calls visitor call backs.


Nested Class Summary
static interface CodeReader.Visitor
           
 
Constructor Summary
CodeReader()
           
 
Method Summary
 void setAllVisitors(CodeReader.Visitor visitor)
          Sets visitor as the visitor for all instructions.
 void setFallbackVisitor(CodeReader.Visitor visitor)
          Sets visitor as the visitor for all instructions not otherwise handled.
 void setFieldVisitor(CodeReader.Visitor visitor)
          Sets visitor as the visitor for all field instructions.
 void setMethodVisitor(CodeReader.Visitor visitor)
          Sets visitor as the visitor for all method instructions.
 void setStringVisitor(CodeReader.Visitor visitor)
          Sets visitor as the visitor for all string instructions.
 void setTypeVisitor(CodeReader.Visitor visitor)
          Sets visitor as the visitor for all type instructions.
 void visitAll(DecodedInstruction[] decodedInstructions)
           
 void visitAll(short[] encodedInstructions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeReader

public CodeReader()
Method Detail

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.


visitAll

public void visitAll(DecodedInstruction[] decodedInstructions)
              throws com.android.dex.DexException
Throws:
com.android.dex.DexException

visitAll

public void visitAll(short[] encodedInstructions)
              throws com.android.dex.DexException
Throws:
com.android.dex.DexException


Copyright © 2015. All rights reserved.