com.ochafik.lang.compiler
Class CompilerUtils

java.lang.Object
  extended by com.ochafik.lang.compiler.CompilerUtils

public class CompilerUtils
extends Object


Constructor Summary
CompilerUtils()
           
 
Method Summary
static void compile(JavaCompiler compiler, MemoryFileManager fileManager, DiagnosticCollector<JavaFileObject> diagnostics, String sourceCompatibility, File cacheDirectory, Class<?>... classpathHints)
           
static String getClassPath(Class<?> c, File cacheDirectory)
           
static Set<String> getClassPaths(File cacheDirectory, Class<?>... cs)
           
static JavaCompiler getJavaCompiler(boolean preferJavac)
           
static void main2(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilerUtils

public CompilerUtils()
Method Detail

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.