public class DexCodeVisitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DexCodeVisitor |
visitor |
Constructor and Description |
---|
DexCodeVisitor() |
DexCodeVisitor(DexCodeVisitor visitor) |
Modifier and Type | Method and Description |
---|---|
void |
visitConstStmt(Op op,
int ra,
java.lang.Object value)
CONST * CONST_WIDE * CONST_STRING * CONST_CLASS *
|
DexDebugVisitor |
visitDebug() |
void |
visitEnd() |
void |
visitFieldStmt(Op op,
int a,
int b,
Field field)
OP_IGETX a,b field
OP_IPUTX a,b field
OP_SGETX a field
OP_SPUTX a field
|
void |
visitFillArrayDataStmt(Op op,
int ra,
java.lang.Object array) |
void |
visitFilledNewArrayStmt(Op op,
int[] args,
java.lang.String type)
OP_FILLED_NEW_ARRAY
|
void |
visitJumpStmt(Op op,
int a,
int b,
DexLabel label)
OP_IF_EQ
OP_IF_NE
OP_IF_LT
OP_IF_GE
OP_IF_GT
OP_IF_LE
OP_GOTO
OP_IF_EQZ
OP_IF_NEZ
OP_IF_LTZ
OP_IF_GEZ
OP_IF_GTZ
OP_IF_LEZ
|
void |
visitLabel(DexLabel label) |
void |
visitMethodStmt(Op op,
int[] args,
Method method)
OP_INVOKE_VIRTUAL
OP_INVOKE_SUPER
OP_INVOKE_DIRECT
OP_INVOKE_STATIC
OP_INVOKE_INTERFACE
|
void |
visitMethodStmt(Op op,
int[] args,
Method bsm,
Proto proto)
OP_INVOKE_POLYMORPHIC
|
void |
visitMethodStmt(Op op,
int[] args,
java.lang.String name,
Proto proto,
MethodHandle bsm,
java.lang.Object... bsmArgs)
OP_INVOKE_CUSTOM
|
void |
visitPackedSwitchStmt(Op op,
int aA,
int first_case,
DexLabel[] labels) |
void |
visitRegister(int total) |
void |
visitSparseSwitchStmt(Op op,
int ra,
int[] cases,
DexLabel[] labels) |
void |
visitStmt0R(Op op)
|
void |
visitStmt1R(Op op,
int reg)
OP_RETURN_X
OP_THROW_X
OP_MONITOR_ENTER
OP_MONITOR_EXIT
OP_MOVE_RESULT_X
OP_MOVE_EXCEPTION_X
|
void |
visitStmt2R(Op op,
int a,
int b)
OP_MOVE*
a = a X b
OP_ARRAY_LENGTH
a=Xb
X_TO_Y
|
void |
visitStmt2R1N(Op op,
int distReg,
int srcReg,
int content)
OP_X_INT_LIT8
|
void |
visitStmt3R(Op op,
int a,
int b,
int c)
OP_ADD
OP_SUB
OP_MUL
OP_DIV
OP_REM
OP_AND
OP_OR
OP_XOR
OP_SHL
OP_SHR
OP_USHR
OP_CMPL
OP_CMPG
OP_CMP
OP_AGETX
OP_APUTX
|
void |
visitTryCatch(DexLabel start,
DexLabel end,
DexLabel[] handler,
java.lang.String[] type) |
void |
visitTypeStmt(Op op,
int a,
int b,
java.lang.String type)
OP_INSTANCE_OF
OP_NEW_ARRAY
OP_CHECK_CAST
OP_NEW_INSTANCE
|
protected DexCodeVisitor visitor
public DexCodeVisitor()
public DexCodeVisitor(DexCodeVisitor visitor)
public void visitRegister(int total)
public void visitStmt2R1N(Op op, int distReg, int srcReg, int content)
OP_X_INT_LIT8
op
- distReg
- srcReg
- content
- public void visitStmt3R(Op op, int a, int b, int c)
OP_ADD OP_SUB OP_MUL OP_DIV OP_REM OP_AND OP_OR OP_XOR OP_SHL OP_SHR OP_USHR OP_CMPL OP_CMPG OP_CMP OP_AGETX OP_APUTX
public void visitTypeStmt(Op op, int a, int b, java.lang.String type)
OP_INSTANCE_OF OP_NEW_ARRAY OP_CHECK_CAST OP_NEW_INSTANCE
op
- a
- b
- type
- public void visitConstStmt(Op op, int ra, java.lang.Object value)
CONST * CONST_WIDE * CONST_STRING * CONST_CLASS *
op
- ra
- value
- int/long/typepublic void visitFillArrayDataStmt(Op op, int ra, java.lang.Object array)
public void visitEnd()
public void visitFieldStmt(Op op, int a, int b, Field field)
OP_IGETX a,b field OP_IPUTX a,b field OP_SGETX a field OP_SPUTX a field
op
- a
- b
- field
- public void visitFilledNewArrayStmt(Op op, int[] args, java.lang.String type)
OP_FILLED_NEW_ARRAY
op
- args
- type
- public void visitJumpStmt(Op op, int a, int b, DexLabel label)
OP_IF_EQ OP_IF_NE OP_IF_LT OP_IF_GE OP_IF_GT OP_IF_LE OP_GOTO OP_IF_EQZ OP_IF_NEZ OP_IF_LTZ OP_IF_GEZ OP_IF_GTZ OP_IF_LEZ
op
- a
- b
- label
- public void visitLabel(DexLabel label)
public void visitSparseSwitchStmt(Op op, int ra, int[] cases, DexLabel[] labels)
public void visitMethodStmt(Op op, int[] args, Method method)
OP_INVOKE_VIRTUAL OP_INVOKE_SUPER OP_INVOKE_DIRECT OP_INVOKE_STATIC OP_INVOKE_INTERFACE
op
- args
- method
- public void visitMethodStmt(Op op, int[] args, java.lang.String name, Proto proto, MethodHandle bsm, java.lang.Object... bsmArgs)
OP_INVOKE_CUSTOM
public void visitMethodStmt(Op op, int[] args, Method bsm, Proto proto)
OP_INVOKE_POLYMORPHIC
public void visitStmt2R(Op op, int a, int b)
OP_MOVE* a = a X b OP_ARRAY_LENGTH a=Xb X_TO_Y
op
- a
- b
- public void visitStmt0R(Op op)
op
- public void visitStmt1R(Op op, int reg)
OP_RETURN_X OP_THROW_X OP_MONITOR_ENTER OP_MONITOR_EXIT OP_MOVE_RESULT_X OP_MOVE_EXCEPTION_X
op
- reg
- public void visitPackedSwitchStmt(Op op, int aA, int first_case, DexLabel[] labels)
public void visitTryCatch(DexLabel start, DexLabel end, DexLabel[] handler, java.lang.String[] type)
public DexDebugVisitor visitDebug()