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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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
Declaration
s required for
evaluating the expression.
- Returns:
- The required declarations.
Copyright © 2001-2002 The Werken Company. All Rights Reserved.