Package com.android.dx.io
Class CodeReader
java.lang.Object
com.android.dx.io.CodeReader
Walks through a block of code and calls visitor call backs.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAllVisitors
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all instructions.void
setCallSiteVisitor
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all call site instructions.void
setFallbackVisitor
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all instructions not otherwise handled.void
setFieldVisitor
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all field instructions.void
Setsvisitor
as the visitor for all method and proto instructions.void
setMethodVisitor
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all method instructions.void
setStringVisitor
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all string instructions.void
setTypeVisitor
(CodeReader.Visitor visitor) Setsvisitor
as the visitor for all type instructions.void
visitAll
(short[] encodedInstructions) void
visitAll
(DecodedInstruction[] decodedInstructions)
-
Constructor Details
-
CodeReader
public CodeReader()
-
-
Method Details
-
setAllVisitors
Setsvisitor
as the visitor for all instructions. -
setFallbackVisitor
Setsvisitor
as the visitor for all instructions not otherwise handled. -
setStringVisitor
Setsvisitor
as the visitor for all string instructions. -
setTypeVisitor
Setsvisitor
as the visitor for all type instructions. -
setFieldVisitor
Setsvisitor
as the visitor for all field instructions. -
setMethodVisitor
Setsvisitor
as the visitor for all method instructions. -
setMethodAndProtoVisitor
Setsvisitor
as the visitor for all method and proto instructions. -
setCallSiteVisitor
Setsvisitor
as the visitor for all call site instructions. -
visitAll
- Throws:
DexException
-
visitAll
- Throws:
DexException
-