org.drools.semantics.groovy
Class GroovyInterp

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

public class GroovyInterp
extends Object
implements Serializable

Base class for Groovy based semantic components.

Author:
James Strachan , Christiaan ten Klooster
See Also:
Serialized Form

Constructor Summary
protected GroovyInterp(String text, Rule rule)
          Construct.
 
Method Summary
protected  groovy.lang.Script getCode()
           
protected  Rule getRule()
           
 String getText()
          Retrieve the text to evaluate.
protected  groovy.lang.Binding setUpDictionary(Tuple tuple, 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(String text,
                       Rule rule)
Construct.

Method Detail

getText

public 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,
                                              Iterator declIter)
Configure a ScriptContext using a Tuple for variable bindings.

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


Copyright © 2001-2005 The Codehaus. All Rights Reserved.