org.drools.semantics.java
Class Expr

java.lang.Object
  |
  +--org.drools.semantics.java.Interp
        |
        +--org.drools.semantics.java.Expr
Direct Known Subclasses:
ExprCondition, ExprExtractor

public class Expr
extends Interp

Base class for expression-based Java semantic components.

Version:
$Id: Expr.java,v 1.8 2003/11/28 06:43:01 bob Exp $
Author:
bob mcwhirter
See Also:
ExprCondition, ExprExtractor

Constructor Summary
protected Expr(java.lang.String expr, Declaration[] availDecls)
          Construct.
 
Method Summary
protected  Declaration[] analyze(java.lang.String expr, Declaration[] available)
           
 java.lang.String getExpression()
          Retrieve the expression.
 Declaration[] getRequiredTupleMembers()
          Retrieve the Declarations required for evaluating the expression.
 
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
 

Constructor Detail

Expr

protected Expr(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

getExpression

public java.lang.String getExpression()
Retrieve the expression.

Returns:
The expression.

analyze

protected Declaration[] analyze(java.lang.String expr,
                                Declaration[] available)
                         throws java.lang.Exception
java.lang.Exception

getRequiredTupleMembers

public Declaration[] getRequiredTupleMembers()
Retrieve the Declarations required for evaluating the expression.

Returns:
The required declarations.