org.drools.semantics.java
Class ExprAnalyzer
java.lang.Object
org.drools.semantics.java.ExprAnalyzer
- public class ExprAnalyzer
- extends Object
Expression analyzer.
- Version:
- $Id: ExprAnalyzer.java,v 1.10 2004/11/28 02:22:18 simon Exp $
- Author:
- bob mcwhirter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprAnalyzer
public ExprAnalyzer()
- Construct.
analyze
public List analyze(String expr,
List availDecls)
throws TokenStreamException,
RecognitionException,
MissingDeclarationException
- Analyze an expression.
- Parameters:
expr
- The expression to analyze.availDecls
- Total set of declarations available.
- Returns:
- The
Set
of declarations used by the expression.
- Throws:
TokenStreamException
- If an error occurs in the lexer.
RecognitionException
- If an error occurs in the parser.
MissingDeclarationException
- If the expression requires a
declaration not present in the available declarations.
Copyright © 2001-2004 The Codehaus. All Rights Reserved.