Example usage for org.objectweb.asm.tree MethodNode MethodNode

List of usage examples for org.objectweb.asm.tree MethodNode MethodNode

Introduction

In this page you can find the example usage for org.objectweb.asm.tree MethodNode MethodNode.

Prototype

public MethodNode(final int api) 

Source Link

Document

Constructs an uninitialized MethodNode .

Usage

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);
}