org.drools.semantics.java
Class JavaExprAnalyzer
java.lang.Object
org.drools.semantics.java.JavaExprAnalyzer
public class JavaExprAnalyzer
- extends Object
Expression analyzer.
- Author:
- bob mcwhirter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaExprAnalyzer
public JavaExprAnalyzer()
- 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-2005 The Codehaus. All Rights Reserved.