org.drools.semantics.java
Class JavaSemanticRuleCompiler

java.lang.Object
  extended by org.drools.semantics.java.AbstractSemanticCompiler
      extended by org.drools.semantics.java.JavaSemanticRuleCompiler
All Implemented Interfaces:
SemanticCompiler, SemanticRuleCompiler
Direct Known Subclasses:
GroovySemanticRuleCompiler

public class JavaSemanticRuleCompiler
extends AbstractSemanticCompiler
implements SemanticRuleCompiler


Field Summary
 
Fields inherited from class org.drools.semantics.java.AbstractSemanticCompiler
compiler
 
Constructor Summary
protected JavaSemanticRuleCompiler(java.lang.String semanticType, JavaCompiler compiler)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 void generate(RuleComponent[] components, Declaration[] declarations, java.util.Set imports, java.util.Map applicationData, java.lang.String packageName, java.lang.String className, java.lang.String parentClass, java.lang.String knowledgeHelper, ResourceReader src, java.util.Map files)
           
 java.lang.String getFileExtension()
           
static SemanticRuleCompiler 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.SemanticRuleCompiler
compile, compile
 

Constructor Detail

JavaSemanticRuleCompiler

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

getInstance

public static SemanticRuleCompiler getInstance()

getSemanticType

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

getFileExtension

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

generate

public void generate(RuleComponent[] components,
                     Declaration[] declarations,
                     java.util.Set imports,
                     java.util.Map applicationData,
                     java.lang.String packageName,
                     java.lang.String className,
                     java.lang.String parentClass,
                     java.lang.String knowledgeHelper,
                     ResourceReader src,
                     java.util.Map files)
              throws java.io.IOException
Specified by:
generate in interface SemanticRuleCompiler
Throws:
java.io.IOException

equals

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

hashcode

public int hashcode()