org.drools.semantics.groovy
Class GroovyCondition

java.lang.Object
  extended by org.drools.semantics.java.JavaCondition
      extended by 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

Field Summary
protected  java.lang.String semanticType
           
protected  java.lang.String thrownException
           
 
Fields inherited from class org.drools.semantics.java.JavaCondition
conditionInvoker, expression, name, requiredDeclarations, rule
 
Constructor Summary
protected GroovyCondition(java.lang.String name, java.lang.String expression, Declaration[] requiredDeclarations, Rule rule)
          Construct.
 
Method Summary
 SemanticRuleCompiler getSemanticRuleCompiler()
           
 java.lang.String getSemanticType()
           
 java.lang.String getThrownException()
           
 boolean isExceptionThrown()
           
 
Methods inherited from class org.drools.semantics.java.JavaCondition
equals, getName, getRequiredTupleMembers, getText, hashCode, isAllowed, setInvoker, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

semanticType

protected final java.lang.String semanticType
See Also:
Constant Field Values

thrownException

protected final java.lang.String thrownException
Constructor Detail

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
Method Detail

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