Search in sources :

Example 6 with JavaInsnData

use of jadx.plugins.input.java.data.code.JavaInsnData in project jadx by skylot.

the class WideDecoder method skip.

@Override
public void skip(CodeDecodeState state) {
    DataReader reader = state.reader();
    JavaInsnData insn = state.insn();
    int opcode = reader.readU1();
    if (opcode == IINC) {
        reader.skip(4);
        insn.setPayloadSize(5);
    } else {
        reader.skip(2);
        insn.setPayloadSize(3);
    }
}
Also used : DataReader(jadx.plugins.input.java.data.DataReader) JavaInsnData(jadx.plugins.input.java.data.code.JavaInsnData)

Aggregations

DataReader (jadx.plugins.input.java.data.DataReader)6 JavaInsnData (jadx.plugins.input.java.data.code.JavaInsnData)6 SwitchPayload (jadx.api.plugins.input.insns.custom.impl.SwitchPayload)2 JavaClassParseException (jadx.plugins.input.java.utils.JavaClassParseException)2 ICallSite (jadx.api.plugins.input.data.ICallSite)1 IMethodProto (jadx.api.plugins.input.data.IMethodProto)1 IMethodRef (jadx.api.plugins.input.data.IMethodRef)1 ConstPoolReader (jadx.plugins.input.java.data.ConstPoolReader)1 ConstantType (jadx.plugins.input.java.data.ConstantType)1