org.apache.drill.exec.compile

Class ClassBuilder

    • Method Detail

      • getImplementationClass

        public Class<?> getImplementationClass(CodeGenerator<?> cg)
                                        throws ClassTransformationException
        Given a code generator which has already generated plain Java code, compile the code, create a class loader, and return the resulting Java class.
        Parameters:
        cg - a plain Java capable code generator that has generated plain Java code
        Returns:
        the class that the code generator defines
        Throws:
        ClassTransformationException

Copyright © 2017 The Apache Software Foundation. All rights reserved.