org.drools.semantics.java
Class JavaSemanticRuleCompiler
java.lang.Object
org.drools.semantics.java.AbstractSemanticCompiler
org.drools.semantics.java.JavaSemanticRuleCompiler
- All Implemented Interfaces:
- SemanticCompiler, SemanticRuleCompiler
- Direct Known Subclasses:
- GroovySemanticRuleCompiler
public class JavaSemanticRuleCompiler
- extends AbstractSemanticCompiler
- implements SemanticRuleCompiler
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaSemanticRuleCompiler
protected JavaSemanticRuleCompiler(java.lang.String semanticType,
JavaCompiler compiler)
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()