Drools :: Compiler 6.2.0.Final

org.drools.compiler.commons.jci.compilers
Class EclipseJavaCompiler

java.lang.Object
  extended by org.drools.compiler.commons.jci.compilers.AbstractJavaCompiler
      extended by org.drools.compiler.commons.jci.compilers.EclipseJavaCompiler
All Implemented Interfaces:
JavaCompiler

public final class EclipseJavaCompiler
extends AbstractJavaCompiler

Eclipse compiler implementation


Field Summary
 
Fields inherited from class org.drools.compiler.commons.jci.compilers.AbstractJavaCompiler
problemHandler
 
Constructor Summary
EclipseJavaCompiler()
           
EclipseJavaCompiler(EclipseJavaCompilerSettings pSettings, String prefix)
           
EclipseJavaCompiler(Map pSettings)
           
 
Method Summary
 CompilationResult compile(String[] pSourceFiles, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader, JavaCompilerSettings pSettings)
          Compiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class".
 JavaCompilerSettings createDefaultSettings()
          factory method to create the underlying default settings
 String getPathName(String fullPath)
           
 void setPrefix(String prefix)
           
 
Methods inherited from class org.drools.compiler.commons.jci.compilers.AbstractJavaCompiler
compile, compile, setCompilationProblemHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseJavaCompiler

public EclipseJavaCompiler()

EclipseJavaCompiler

public EclipseJavaCompiler(Map pSettings)

EclipseJavaCompiler

public EclipseJavaCompiler(EclipseJavaCompilerSettings pSettings,
                           String prefix)
Method Detail

setPrefix

public void setPrefix(String prefix)

getPathName

public String getPathName(String fullPath)

compile

public CompilationResult compile(String[] pSourceFiles,
                                 ResourceReader pReader,
                                 ResourceStore pStore,
                                 ClassLoader pClassLoader,
                                 JavaCompilerSettings pSettings)
Description copied from interface: JavaCompiler
Compiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class". Note: As these are resource path you always have to use "/" The result of the compilation run including detailed error information is returned as CompilationResult. If you need to get notified already during the compilation process you can register a CompilationProblemHandler. Note: Not all compilers might support this notification mechanism.

Returns:
always a CompilationResult

createDefaultSettings

public JavaCompilerSettings createDefaultSettings()
Description copied from interface: JavaCompiler
factory method to create the underlying default settings


Drools :: Compiler 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.