org.drools.semantics.java
Class AbstractSemanticCompiler

java.lang.Object
  extended by org.drools.semantics.java.AbstractSemanticCompiler
Direct Known Subclasses:
JavaSemanticFunctionsCompiler, JavaSemanticRuleCompiler

public abstract class AbstractSemanticCompiler
extends java.lang.Object

This is the real Java semantic compiler engine. It uses JCI to compile the generated source.


Field Summary
protected  JavaCompiler compiler
           
 
Constructor Summary
AbstractSemanticCompiler()
           
 
Method Summary
 void compile(java.lang.String[] fileNames, ResourceReader src, ResourceStore dst, java.lang.ClassLoader classLoader)
           
 void compile(java.lang.String fileName, ResourceReader src, ResourceStore dst, java.lang.ClassLoader classLoader)
           
protected  void write(java.lang.StringBuffer buffer, java.lang.String className, java.lang.String fileName, ResourceReader src)
           
protected  void writeFile(ResourceReader src, java.lang.String name, char[] text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compiler

protected JavaCompiler compiler
Constructor Detail

AbstractSemanticCompiler

public AbstractSemanticCompiler()
Method Detail

write

protected void write(java.lang.StringBuffer buffer,
                     java.lang.String className,
                     java.lang.String fileName,
                     ResourceReader src)
              throws java.io.IOException
Throws:
java.io.IOException

writeFile

protected void writeFile(ResourceReader src,
                         java.lang.String name,
                         char[] text)
                  throws java.io.IOException
Throws:
java.io.IOException

compile

public void compile(java.lang.String fileName,
                    ResourceReader src,
                    ResourceStore dst,
                    java.lang.ClassLoader classLoader)

compile

public void compile(java.lang.String[] fileNames,
                    ResourceReader src,
                    ResourceStore dst,
                    java.lang.ClassLoader classLoader)