Commit 716a5da8 authored by Lubomir Bulej's avatar Lubomir Bulej

AsmHelper: added a getField() method which takes ASM Type instead of String.

parent 15ac6352
......@@ -294,6 +294,13 @@ public abstract class AsmHelper {
return new TypeInsnNode (Opcodes.CHECKCAST, type.getDescriptor ());
}
//
public static FieldInsnNode getField (
final Type owner, final String name, final Type desc
) {
return getField (owner.getInternalName (), name, desc.getDescriptor ());
}
public static FieldInsnNode getField (
final String owner, final String name, final String desc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment