use of jadx.api.plugins.input.insns.InsnData in project jadx by skylot.
the class SmaliInsnFormat method format.
public void format(InsnFormatterInfo formatInfo) {
InsnData insn = formatInfo.getInsn();
insn.decode();
int rawOpcodeUnit = insn.getRawOpcodeUnit();
int opcode = rawOpcodeUnit & 0xFF;
InsnFormatter insnFormatter = formatters.get(opcode);
if (insnFormatter != null) {
insnFormatter.format(formatInfo);
} else {
formatInfo.getCodeWriter().add("# ").add(insn.getOpcode()).add(" (?0x").add(Integer.toHexString(rawOpcodeUnit)).add(')');
}
}
Aggregations