org.drools.semantics.groovy
Class Interp

java.lang.Object
  extended byorg.drools.semantics.groovy.Interp
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Eval, Exec

public class Interp
extends Object
implements Serializable

Base class for Groovy based semantic components.

Version:
$Id: Interp.java,v 1.13 2004/11/29 12:35:52 simon Exp $
Author:
James Strachan , Christiaan ten Klooster
See Also:
Eval, Exec, Serialized Form

Constructor Summary
protected Interp(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)
          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

Interp

protected Interp(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)
Configure a ScriptContext using a Tuple for variable bindings.

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


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