org.drools.semantics.python
Class Exec
java.lang.Object
|
+--org.drools.semantics.python.Interp
|
+--org.drools.semantics.python.Exec
- Direct Known Subclasses:
- BlockConsequence
- public class Exec
- extends Interp
Base class for Jython statement-based Python semantic components.
- Version:
- $Id: Exec.java,v 1.5 2003/03/25 19:47:32 tdiesler Exp $
- Author:
- bob mcwhirter, Christiaan ten Klooster
- See Also:
BlockConsequence
Constructor Summary |
protected |
Exec()
Construct. |
Method Summary |
void |
configure(java.lang.String text,
Declaration[] availDecls)
Configure. |
protected void |
execute()
Execute. |
protected void |
execute(org.python.core.PyDictionary locals)
Execute. |
void |
execute(Tuple tuple)
Execute. |
protected void |
setText(java.lang.String text)
Set the text to execute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exec
protected Exec()
- Construct.
execute
public void execute(Tuple tuple)
- Execute.
- Parameters:
tuple
- Tuple containing variable bindings.
execute
protected void execute(org.python.core.PyDictionary locals)
- Execute.
- Parameters:
locals
- The evaluation dictionary.
execute
protected void execute()
- Execute.
setText
protected void setText(java.lang.String text)
- Set the text to execute.
- Parameters:
text
- The text.
configure
public void configure(java.lang.String text,
Declaration[] availDecls)
throws ConfigurationException
- Configure.
- Parameters:
text
- Configuration text.availDecls
- Available declarations.- Throws:
ConfigurationException
- If an error occurs while
attempting to perform configuration.
Copyright © 2001-2003 The Werken Company. All Rights Reserved.