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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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
Declaration
s required for
evaluating the expression.
- Returns:
- The required declarations.