Class ASMUtil
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.ASMUtil
Simple class containing a few ASM-related utilities
and dynamic attributes needs for the byte code generator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic 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 voidgenerateSourceCode(PrintStream ps, ClassGeneratorImpl cg, ImportList imports, Properties options) static voidgenerateSourceCode(String sourceGenDir, ClassGeneratorImpl cg, ImportList imports, Properties options) static File
-
Constructor Details
-
ASMUtil
public ASMUtil()
-
-
Method Details
-
bcName
-
generateSourceCode
public static void generateSourceCode(PrintStream ps, ClassGeneratorImpl cg, ImportList imports, Properties options) throws IOException - Throws:
IOException
-
getFile
-
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.
-