Search in sources :

Example 1 with InvokeInterface

use of net.runelite.asm.attributes.code.instructions.InvokeInterface in project runelite by runelite.

the class CodeVisitor method visitMethodInsn.

@Override
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {
    InvokeInstruction ii = (InvokeInstruction) createInstructionFromOpcode(opcode);
    assert ii instanceof InvokeInterface == itf;
    Type type = new Type(owner);
    net.runelite.asm.pool.Method entry = new net.runelite.asm.pool.Method(new net.runelite.asm.pool.Class(type.getInternalName()), name, new Signature(desc));
    ii.setMethod(entry);
}
Also used : InvokeInterface(net.runelite.asm.attributes.code.instructions.InvokeInterface) InvokeInstruction(net.runelite.asm.attributes.code.instruction.types.InvokeInstruction) InstructionType(net.runelite.asm.attributes.code.InstructionType) Type(net.runelite.asm.Type) Signature(net.runelite.asm.signature.Signature) Method(net.runelite.asm.Method)

Aggregations

Method (net.runelite.asm.Method)1 Type (net.runelite.asm.Type)1 InstructionType (net.runelite.asm.attributes.code.InstructionType)1 InvokeInstruction (net.runelite.asm.attributes.code.instruction.types.InvokeInstruction)1 InvokeInterface (net.runelite.asm.attributes.code.instructions.InvokeInterface)1 Signature (net.runelite.asm.signature.Signature)1