Search in sources :

Example 1 with InsnData

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(')');
    }
}
Also used : InsnData(jadx.api.plugins.input.insns.InsnData)

Aggregations

InsnData (jadx.api.plugins.input.insns.InsnData)1