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

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


        // options.add("-target");
        // options.add("1.6");
    }

    public Class compile(String sourceString) {
        JavaSource source = new JavaSource(sourceString);
        return compile(source);
    }
View Full Code Here


        if (extensionData.getExtensionDataType().isClazz() && StringUtils.isNotBlank(extensionData.getClazzPath())) {
            clazz = scan(extensionData.getClazzPath());
            fullname = "[" + extensionData.getClazzPath() + "]ClassPath";
        } else if (extensionData.getExtensionDataType().isSource()
                   && StringUtils.isNotBlank(extensionData.getSourceText())) {
            JavaSource javaSource = new JavaSource(extensionData.getSourceText());
            clazz = jdkCompiler.compile(javaSource);
            fullname = "[" + javaSource.toString() + "]SourceText";
        }

        if (clazz == null) {
            throw new ExtensionLoadException("ERROR ## classload this fileresolver=" + fullname + " has an error");
        }
View Full Code Here

        options.add("-target");
        options.add("1.6");
    }

    public Class compile(String sourceString) {
        JavaSource source = new JavaSource(sourceString);
        return compile(source);
    }
View Full Code Here

TOP

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

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.