List of usage examples for org.objectweb.asm.tree MethodNode MethodNode
public MethodNode(final int api)
From source file:edu.mit.streamjit.util.bytecode.MethodUnresolver.java
License:Open Source License
private MethodUnresolver(Method m) { this.method = m; this.methodNode = new MethodNode(Opcodes.ASM4); this.registers = new IdentityHashMap<>(); this.labels = new IdentityHashMap<>(); TypeFactory tf = m.getParent().getParent().types(); this.booleanType = tf.getPrimitiveType(boolean.class); this.byteType = tf.getPrimitiveType(byte.class); this.charType = tf.getPrimitiveType(char.class); this.shortType = tf.getPrimitiveType(short.class); this.intType = tf.getPrimitiveType(int.class); this.longType = tf.getPrimitiveType(long.class); this.floatType = tf.getPrimitiveType(float.class); this.doubleType = tf.getPrimitiveType(double.class); }