org.glassfish.pfl.dynamic.codegen.impl
Class ASMUtil
java.lang.Object
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.
|
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 |
ASMUtil
public ASMUtil()
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.