Package com.alibaba.otter.shared.common.utils.compile.model

Examples of com.alibaba.otter.shared.common.utils.compile.model.JdkCompilerClassLoader


    public Class compile(JavaSource javaSource) {
        try {

            final DiagnosticCollector<JavaFileObject> errs = new DiagnosticCollector<JavaFileObject>();
            JdkCompileTask compileTask = new JdkCompileTask(new JdkCompilerClassLoader(this.getClass().getClassLoader()),
                options);
            String fullName = javaSource.getPackageName() + "." + javaSource.getClassName();
            Class newClass = compileTask.compile(fullName, javaSource.getSource(), errs);
            return newClass;
        } catch (JdkCompileException ex) {
View Full Code Here


    public Class compile(JavaSource javaSource) {
        try {

            final DiagnosticCollector<JavaFileObject> errs = new DiagnosticCollector<JavaFileObject>();
            JdkCompileTask compileTask = new JdkCompileTask(
                                                            new JdkCompilerClassLoader(this.getClass().getClassLoader()),
                                                            options);
            String fullName = javaSource.getPackageName() + "." + javaSource.getClassName();
            Class newClass = compileTask.compile(fullName, javaSource.getSource(), errs);
            return newClass;
        } catch (JdkCompileException ex) {
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.common.utils.compile.model.JdkCompilerClassLoader

Copyright © 2018 www.massapicom. 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.