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:
ConfigurableExtractor, Extractor, SemanticComponent

public class ExprExtractor
extends Eval
implements ConfigurableExtractor

Python expression semantics Extractor.

Version:
$Id: ExprExtractor.java,v 1.2 2002/08/28 01:18:29 bob Exp $
Author:
bob mcwhirter

Constructor Summary
ExprExtractor()
          Construct, partially.
ExprExtractor(java.lang.String expr)
          Construct.
 
Method Summary
 java.lang.Object extractFact(Tuple tuple)
          Extract a new fact from the incoming Tuple
 java.lang.String toString()
          Produce a debug string.
 
Methods inherited from class org.drools.semantics.python.Eval
configure, evaluate, evaluate, evaluate, getExpression, getRequiredTupleMembers, setExpression
 
Methods inherited from class org.drools.semantics.python.Interp
getCode, getNode, getText, setText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.smf.ConfigurableExtractor
configure
 
Methods inherited from interface org.drools.spi.Extractor
getRequiredTupleMembers
 

Constructor Detail

ExprExtractor

public ExprExtractor(java.lang.String expr)
Construct.
Parameters:
expr - The expression.

ExprExtractor

public ExprExtractor()
Construct, partially.
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.

toString

public java.lang.String toString()
Produce a debug string.
Overrides:
toString in class java.lang.Object
Returns:
The debug string.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.