Package net.sourceforge.javautil.bytecode.impl.asm

Source Code of net.sourceforge.javautil.bytecode.impl.asm.BytecodeFactoryASM

package net.sourceforge.javautil.bytecode.impl.asm;

import org.objectweb.asm.ClassWriter;

import net.sourceforge.javautil.bytecode.IBytecodeFactory;
import net.sourceforge.javautil.bytecode.BytecodeCompiler.Version;
import net.sourceforge.javautil.bytecode.api.BytecodeResolutionPool;
import net.sourceforge.javautil.bytecode.api.type.AbstractType;
import net.sourceforge.javautil.bytecode.api.type.BytecodeContextType;

/**
* ASM bytecode factory.
*
* @author elponderador
* @author $Author$
* @version $Id$
*/
public class BytecodeFactoryASM implements IBytecodeFactory {
 
  protected final BytecodeWriterTypeASM writer = new BytecodeWriterTypeASM();

  public BytecodeContextType createTypeContext(AbstractType type, BytecodeResolutionPool pool, Version version) {
    return new BytecodeContextTypeASM(null, pool, new ClassWriter(ClassWriter.COMPUTE_MAXS), type, writer, version);
  }

}
TOP

Related Classes of net.sourceforge.javautil.bytecode.impl.asm.BytecodeFactoryASM

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.