org.glassfish.pfl.dynamic.codegen.impl
Class ASMUtil

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.ASMUtil

public class ASMUtil
extends Object

Simple class containing a few ASM-related utilities and dynamic attributes needs for the byte code generator.


Nested Class Summary
static class ASMUtil.LineNumberTable
           
static class ASMUtil.RequiredEmitterType
           
static class ASMUtil.VariablesInMethod
           
 
Constructor Summary
ASMUtil()
           
 
Method Summary
static String bcName(Type type)
           
static byte[] generate(ClassLoader cl, ClassGeneratorImpl cg, ImportList imports, Properties options, PrintStream debugOutput)
          Given a completed ClassGeneratorImpl, use ASM to construct the byte array representing the compiled class.
static void generateSourceCode(PrintStream ps, ClassGeneratorImpl cg, ImportList imports, Properties options)
           
static void generateSourceCode(String sourceGenDir, ClassGeneratorImpl cg, ImportList imports, Properties options)
           
static File getFile(String genDir, String className, String suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASMUtil

public ASMUtil()
Method Detail

bcName

public static String bcName(Type type)

generateSourceCode

public static void generateSourceCode(PrintStream ps,
                                      ClassGeneratorImpl cg,
                                      ImportList imports,
                                      Properties options)
                               throws IOException
Throws:
IOException

getFile

public static File getFile(String genDir,
                           String className,
                           String suffix)

generateSourceCode

public static void generateSourceCode(String sourceGenDir,
                                      ClassGeneratorImpl cg,
                                      ImportList imports,
                                      Properties options)
                               throws IOException
Throws:
IOException

generate

public static byte[] generate(ClassLoader cl,
                              ClassGeneratorImpl cg,
                              ImportList imports,
                              Properties options,
                              PrintStream debugOutput)
Given a completed ClassGeneratorImpl, use ASM to construct the byte array representing the compiled class.



Copyright © 2013 Oracle. All Rights Reserved.