org.drools.semantics.groovy
Class GroovyInterp

java.lang.Object
  extended byorg.drools.semantics.groovy.GroovyInterp
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GroovyBlockConsequence, GroovyCondition

public class GroovyInterp
extends java.lang.Object
implements java.io.Serializable

Base class for Groovy based semantic components.

See Also:
Serialized Form
 

Constructor Summary
protected GroovyInterp(java.lang.String text, Rule rule)
          Construct.
 
Method Summary
protected  groovy.lang.Script getCode()
           
protected  Rule getRule()
           
 java.lang.String getText()
          Retrieve the text to evaluate.
protected  groovy.lang.Binding setUpDictionary(Tuple tuple, java.util.Iterator declIter)
          Configure a ScriptContext using a Tuple for variable bindings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyInterp

protected GroovyInterp(java.lang.String text,
                       Rule rule)
Construct.

Method Detail

getText

public java.lang.String getText()
Retrieve the text to evaluate.

Returns:
The text to evaluate.

getCode

protected groovy.lang.Script getCode()

getRule

protected Rule getRule()

setUpDictionary

protected groovy.lang.Binding setUpDictionary(Tuple tuple,
                                              java.util.Iterator declIter)
Configure a ScriptContext using a Tuple for variable bindings.

Parameters:
tuple - Tuple containing variable bindings.
Returns:
The dictionary