public class ExprResolver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
TOKENS |
| Constructor and Description |
|---|
ExprResolver()
Constructor of the class.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
parse(TokenStream stream)
Parses a tokenized logical expression.
|
TokenStream |
tokenize(java.lang.String input)
Tokenizes an input logical expression.
|
public TokenStream tokenize(java.lang.String input) throws java.text.ParseException
input - The input logical expression. Boolean operators include AND, OR, but NOT is not allowed.java.text.ParseException - Thrown in case that parsing of input expression has failed.public Expr parse(TokenStream stream) throws java.text.ParseException
stream - The input composed as a list of recognized tokens, possibly including logical operators (AND, OR).java.text.ParseException - Thrown in case that parsing of input expression has failed.