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.6 2002/08/19 04:30:49 bob Exp $
Author:
bob mcwhirter
See Also:
ExprCondition, ExprExtractor

Constructor Summary
protected Expr()
          Construct.
protected Expr(java.lang.String expr, Declaration[] availDecls)
          Construct.
 
Method Summary
 void configure(java.lang.String expr, Declaration[] decls)
          Configure/parse the expression.
 java.lang.String getExpression()
          Retrieve the expression.
 Declaration[] getRequiredTupleMembers()
          Retrieve the Declarations required for evaluating the expression.
protected  void setExpression(java.lang.String expr)
          Set the expression.
 
Methods inherited from class org.drools.semantics.java.Interp
evaluate, evaluate, getText, setText, setUpNameSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expr

protected Expr()
Construct.

Expr

protected Expr(java.lang.String expr,
               Declaration[] availDecls)
        throws ConfigurationException
Construct.
Parameters:
expr - The expression.
availDecls - The available declarations.
Throws:
ConfigurationException - If an error occurs while attempting to perform configuration.
Method Detail

getExpression

public java.lang.String getExpression()
Retrieve the expression.
Returns:
The expression.

setExpression

protected void setExpression(java.lang.String expr)
Set the expression.
Parameters:
expr - The expression.

configure

public void configure(java.lang.String expr,
                      Declaration[] decls)
               throws ConfigurationException
Configure/parse the expression.
Parameters:
expr - The expression.
decls - All available declarations.
Throws:
ConfigurationException - If an error occurs while attempting to configure/parse the expression.

getRequiredTupleMembers

public Declaration[] getRequiredTupleMembers()
Retrieve the Declarations required for evaluating the expression.
Returns:
The required declarations.


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