org.drools.semantics.groovy
Class GroovyBlockConsequence

java.lang.Object
  extended by org.drools.semantics.java.JavaBlockConsequence
      extended by org.drools.semantics.groovy.GroovyBlockConsequence
All Implemented Interfaces:
java.io.Serializable, SemanticComponent, SemanticConsequence, SemanticInvokeable, SemanticRule, Consequence, RuleComponent

public class GroovyBlockConsequence
extends JavaBlockConsequence
implements java.io.Serializable, Consequence, SemanticConsequence

Java block semantics Consequence.

See Also:
Serialized Form

Field Summary
protected  java.lang.String thrownException
           
 
Constructor Summary
GroovyBlockConsequence(java.lang.String name, java.lang.String block, 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.JavaBlockConsequence
getName, getText, getTupleMembers, invoke, setInvoker, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.spi.Consequence
invoke
 
Methods inherited from interface org.drools.smf.SemanticConsequence
getText
 
Methods inherited from interface org.drools.smf.SemanticInvokeable
setInvoker
 
Methods inherited from interface org.drools.smf.SemanticComponent
getName
 

Field Detail

thrownException

protected final java.lang.String thrownException
Constructor Detail

GroovyBlockConsequence

public GroovyBlockConsequence(java.lang.String name,
                              java.lang.String block,
                              Rule rule)
                       throws java.lang.Exception
Construct.

Parameters:
block - The statement block.
rule - The rule.
Throws:
java.lang.Exception
Method Detail

getSemanticType

public java.lang.String getSemanticType()
Specified by:
getSemanticType in interface SemanticComponent
Overrides:
getSemanticType in class JavaBlockConsequence

isExceptionThrown

public boolean isExceptionThrown()
Specified by:
isExceptionThrown in interface SemanticInvokeable
Overrides:
isExceptionThrown in class JavaBlockConsequence

getThrownException

public java.lang.String getThrownException()
Specified by:
getThrownException in interface SemanticInvokeable
Overrides:
getThrownException in class JavaBlockConsequence

getSemanticRuleCompiler

public SemanticRuleCompiler getSemanticRuleCompiler()
Specified by:
getSemanticRuleCompiler in interface SemanticRule
Overrides:
getSemanticRuleCompiler in class JavaBlockConsequence