com.ochafik.lang.compiler
Class CompilerUtils
java.lang.Object
com.ochafik.lang.compiler.CompilerUtils
public class CompilerUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompilerUtils
public CompilerUtils()
getClassPath
public static String getClassPath(Class<?> c,
File cacheDirectory)
throws MalformedURLException,
IOException
- Throws:
MalformedURLException
IOException
getClassPaths
public static Set<String> getClassPaths(File cacheDirectory,
Class<?>... cs)
throws MalformedURLException,
IOException
- Throws:
MalformedURLException
IOException
compile
public static void compile(JavaCompiler compiler,
MemoryFileManager fileManager,
DiagnosticCollector<JavaFileObject> diagnostics,
String sourceCompatibility,
File cacheDirectory,
Class<?>... classpathHints)
throws MalformedURLException,
IOException
- Throws:
MalformedURLException
IOException
getJavaCompiler
public static JavaCompiler getJavaCompiler(boolean preferJavac)
throws FileNotFoundException
- Throws:
FileNotFoundException
main2
public static void main2(String[] args)
Copyright © 2009. All Rights Reserved.