org.drools.semantics.java
Class JavaSemanticFunctionsCompiler

java.lang.Object
  extended by org.drools.semantics.java.AbstractSemanticCompiler
      extended by org.drools.semantics.java.JavaSemanticFunctionsCompiler
All Implemented Interfaces:
SemanticCompiler, SemanticFunctionsCompiler
Direct Known Subclasses:
GroovySemanticFunctionsCompiler

public class JavaSemanticFunctionsCompiler
extends AbstractSemanticCompiler
implements SemanticFunctionsCompiler


Field Summary
 
Fields inherited from class org.drools.semantics.java.AbstractSemanticCompiler
compiler
 
Constructor Summary
protected JavaSemanticFunctionsCompiler(java.lang.String semanticType, JavaCompiler compiler)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 void generate(Functions functions, java.util.Set imports, java.lang.String packageName, java.lang.String className, java.lang.String parentClass, ResourceReader src, java.util.Map files)
           
 java.lang.String getFileExtension()
           
static SemanticFunctionsCompiler getInstance()
           
 java.lang.String getSemanticType()
           
 int hashcode()
           
 
Methods inherited from class org.drools.semantics.java.AbstractSemanticCompiler
compile, compile, write, writeFile
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.smf.SemanticFunctionsCompiler
compile, compile
 

Constructor Detail

JavaSemanticFunctionsCompiler

protected JavaSemanticFunctionsCompiler(java.lang.String semanticType,
                                        JavaCompiler compiler)
Method Detail

getInstance

public static SemanticFunctionsCompiler getInstance()

generate

public void generate(Functions functions,
                     java.util.Set imports,
                     java.lang.String packageName,
                     java.lang.String className,
                     java.lang.String parentClass,
                     ResourceReader src,
                     java.util.Map files)
              throws java.io.IOException
Specified by:
generate in interface SemanticFunctionsCompiler
Throws:
java.io.IOException

getSemanticType

public java.lang.String getSemanticType()
Specified by:
getSemanticType in interface SemanticCompiler

getFileExtension

public java.lang.String getFileExtension()
Specified by:
getFileExtension in interface SemanticCompiler

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashcode

public int hashcode()