|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.io.CodeReader
public final class CodeReader
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 |
|---|
public CodeReader()
| Method Detail |
|---|
public void setAllVisitors(CodeReader.Visitor visitor)
visitor as the visitor for all instructions.
public void setFallbackVisitor(CodeReader.Visitor visitor)
visitor as the visitor for all instructions not
otherwise handled.
public void setStringVisitor(CodeReader.Visitor visitor)
visitor as the visitor for all string instructions.
public void setTypeVisitor(CodeReader.Visitor visitor)
visitor as the visitor for all type instructions.
public void setFieldVisitor(CodeReader.Visitor visitor)
visitor as the visitor for all field instructions.
public void setMethodVisitor(CodeReader.Visitor visitor)
visitor as the visitor for all method instructions.
public void visitAll(DecodedInstruction[] decodedInstructions)
throws com.android.dex.DexException
com.android.dex.DexException
public void visitAll(short[] encodedInstructions)
throws com.android.dex.DexException
com.android.dex.DexException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||