org.drools.semantics.java
Class ExprExtractor

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

public class ExprExtractor
extends Expr
implements Extractor

Java expression semantics Extractor.

Version:
$Id: ExprExtractor.java,v 1.9 2003/11/28 06:43:01 bob Exp $
Author:
bob@werken.com
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.java.Expr
analyze, getExpression, getRequiredTupleMembers
 
Methods inherited from class org.drools.semantics.java.Interp
evaluate, evaluate, getText, setText, setUpNameSpace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.
availDecls - The available declarations.
Throws:
ConfigurationException - If an error occurs while attempting to perform configuration.
java.lang.Exception
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.