org.drools.semantics.python
Class ExprExtractor

java.lang.Object
  |
  +--org.drools.semantics.python.Interp
        |
        +--org.drools.semantics.python.Eval
              |
              +--org.drools.semantics.python.ExprExtractor
All Implemented Interfaces:
Extractor, SemanticComponent, java.io.Serializable

public class ExprExtractor
extends Eval
implements Extractor

Python expression semantics Extractor.

Version:
$Id: ExprExtractor.java,v 1.3 2003/11/29 02:50:50 bob Exp $
Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
ExprExtractor(java.lang.String expr, Declaration[] availDecls)
          Construct.
 
Method Summary
 java.lang.Object extractFact(Tuple tuple)
          Extract a new fact from the incoming Tuple
 
Methods inherited from class org.drools.semantics.python.Eval
analyze, evaluate, evaluate, evaluate, getRequiredTupleMembers
 
Methods inherited from class org.drools.semantics.python.Interp
getCode, getNode, getText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.spi.Extractor
getRequiredTupleMembers
 

Constructor Detail

ExprExtractor

public ExprExtractor(java.lang.String expr,
                     Declaration[] availDecls)
              throws java.lang.Exception
Construct.

Parameters:
expr - The expression.
Method Detail

extractFact

public java.lang.Object extractFact(Tuple tuple)
                             throws ExtractionException
Extract a new fact from the incoming Tuple

Specified by:
extractFact in interface Extractor
Parameters:
tuple - The source data tuple.
Returns:
The newly extract fact object.
Throws:
ExtractionException - if an error occurs during fact extraction activities.