org.drools.semantics.groovy
Class GroovyCondition
java.lang.Object
org.drools.semantics.java.JavaCondition
org.drools.semantics.groovy.GroovyCondition
- All Implemented Interfaces:
- java.io.Serializable, SemanticComponent, SemanticCondition, SemanticInvokeable, SemanticRule, Condition, RuleComponent
public class GroovyCondition
- extends JavaCondition
Groovy expression semantics Condition.
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
GroovyCondition(java.lang.String name,
java.lang.String expression,
Declaration[] requiredDeclarations,
Rule rule)
Construct. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
semanticType
protected final java.lang.String semanticType
- See Also:
- Constant Field Values
thrownException
protected final java.lang.String thrownException
GroovyCondition
protected GroovyCondition(java.lang.String name,
java.lang.String expression,
Declaration[] requiredDeclarations,
Rule rule)
throws java.lang.Exception
- Construct.
- Parameters:
expression - The expression.rule - The rule.
- Throws:
javax.naming.ConfigurationException - If an error occurs while attempting to perform configuration.
java.lang.Exception
getSemanticType
public java.lang.String getSemanticType()
- Specified by:
getSemanticType in interface SemanticComponent- Overrides:
getSemanticType in class JavaCondition
isExceptionThrown
public boolean isExceptionThrown()
- Specified by:
isExceptionThrown in interface SemanticInvokeable- Overrides:
isExceptionThrown in class JavaCondition
getThrownException
public java.lang.String getThrownException()
- Specified by:
getThrownException in interface SemanticInvokeable- Overrides:
getThrownException in class JavaCondition
getSemanticRuleCompiler
public SemanticRuleCompiler getSemanticRuleCompiler()
- Specified by:
getSemanticRuleCompiler in interface SemanticRule- Overrides:
getSemanticRuleCompiler in class JavaCondition