Methods Summary |
---|
private void | callVisit(com.android.dx.io.instructions.DecodedInstruction[] all, com.android.dx.io.instructions.DecodedInstruction one)
Visitor visitor = null;
switch (OpcodeInfo.getIndexType(one.getOpcode())) {
case STRING_REF: visitor = stringVisitor; break;
case TYPE_REF: visitor = typeVisitor; break;
case FIELD_REF: visitor = fieldVisitor; break;
case METHOD_REF: visitor = methodVisitor; break;
}
if (visitor == null) {
visitor = fallbackVisitor;
}
if (visitor != null) {
visitor.visit(all, one);
}
|
public void | setAllVisitors(com.android.dx.io.CodeReader$Visitor visitor)Sets {@code visitor} as the visitor for all instructions.
fallbackVisitor = visitor;
stringVisitor = visitor;
typeVisitor = visitor;
fieldVisitor = visitor;
methodVisitor = visitor;
|
public void | setFallbackVisitor(com.android.dx.io.CodeReader$Visitor visitor)Sets {@code visitor} as the visitor for all instructions not
otherwise handled.
fallbackVisitor = visitor;
|
public void | setFieldVisitor(com.android.dx.io.CodeReader$Visitor visitor)Sets {@code visitor} as the visitor for all field instructions.
fieldVisitor = visitor;
|
public void | setMethodVisitor(com.android.dx.io.CodeReader$Visitor visitor)Sets {@code visitor} as the visitor for all method instructions.
methodVisitor = visitor;
|
public void | setStringVisitor(com.android.dx.io.CodeReader$Visitor visitor)Sets {@code visitor} as the visitor for all string instructions.
stringVisitor = visitor;
|
public void | setTypeVisitor(com.android.dx.io.CodeReader$Visitor visitor)Sets {@code visitor} as the visitor for all type instructions.
typeVisitor = visitor;
|
public void | visitAll(com.android.dx.io.instructions.DecodedInstruction[] decodedInstructions)
int size = decodedInstructions.length;
for (int i = 0; i < size; i++) {
DecodedInstruction one = decodedInstructions[i];
if (one == null) {
continue;
}
callVisit(decodedInstructions, one);
}
|
public void | visitAll(short[] encodedInstructions)
DecodedInstruction[] decodedInstructions =
DecodedInstruction.decodeAll(encodedInstructions);
visitAll(decodedInstructions);
|