Class CodeReader
java.lang.Object
com.android.dx.io.CodeReader
Walks through a block of code and calls visitor call backs.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAllVisitors(CodeReader.Visitor visitor) Setsvisitoras the visitor for all instructions.voidsetCallSiteVisitor(CodeReader.Visitor visitor) Setsvisitoras the visitor for all call site instructions.voidsetFallbackVisitor(CodeReader.Visitor visitor) Setsvisitoras the visitor for all instructions not otherwise handled.voidsetFieldVisitor(CodeReader.Visitor visitor) Setsvisitoras the visitor for all field instructions.voidSetsvisitoras the visitor for all method and proto instructions.voidsetMethodVisitor(CodeReader.Visitor visitor) Setsvisitoras the visitor for all method instructions.voidsetStringVisitor(CodeReader.Visitor visitor) Setsvisitoras the visitor for all string instructions.voidsetTypeVisitor(CodeReader.Visitor visitor) Setsvisitoras the visitor for all type instructions.voidvisitAll(short[] encodedInstructions) voidvisitAll(DecodedInstruction[] decodedInstructions)
-
Constructor Details
-
CodeReader
public CodeReader()
-
-
Method Details
-
setAllVisitors
Setsvisitoras the visitor for all instructions. -
setFallbackVisitor
Setsvisitoras the visitor for all instructions not otherwise handled. -
setStringVisitor
Setsvisitoras the visitor for all string instructions. -
setTypeVisitor
Setsvisitoras the visitor for all type instructions. -
setFieldVisitor
Setsvisitoras the visitor for all field instructions. -
setMethodVisitor
Setsvisitoras the visitor for all method instructions. -
setMethodAndProtoVisitor
Setsvisitoras the visitor for all method and proto instructions. -
setCallSiteVisitor
Setsvisitoras the visitor for all call site instructions. -
visitAll
- Throws:
DexException
-
visitAll
- Throws:
DexException
-