public class ExpressionReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
STRICT_PARSING |
| Modifier | Constructor and Description |
|---|---|
protected |
ExpressionReader(String str) |
protected |
ExpressionReader(String str,
Collection<String> variables) |
protected |
ExpressionReader(String str,
Collection<String> variables,
Set<Operator> operators) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
endOfLine() |
Set<BooleanOperator> |
getBooleanOperators() |
String |
getInputString() |
int |
getPosition() |
protected boolean |
hasBooleanOperator() |
boolean |
isStrictParsing() |
static FilterExpression |
parse(String str) |
protected BooleanOperator |
readBooleanOperator() |
protected FilterExpression |
readFilterExpression() |
FilterExpressionList |
readNestedExpression() |
protected Operator |
readOperator() |
protected String |
readQuotedString(char ch) |
FilterExpression |
readSimpleFilter() |
protected String |
readValue() |
protected String |
readVariable() |
void |
setBooleanOperators(Set<BooleanOperator> booleanOps) |
void |
setStrictParsing(boolean strictParsing) |
protected void |
skipWhiteSpace() |
boolean |
startsWith(String str) |
protected ExpressionReader(String str)
protected ExpressionReader(String str, Collection<String> variables)
protected ExpressionReader(String str, Collection<String> variables, Set<Operator> operators)
public boolean isStrictParsing()
public void setStrictParsing(boolean strictParsing)
strictParsing - the strictParsing to setpublic void setBooleanOperators(Set<BooleanOperator> booleanOps)
public Set<BooleanOperator> getBooleanOperators()
protected FilterExpression readFilterExpression() throws FilterException
FilterExceptionpublic boolean endOfLine()
public FilterExpressionList readNestedExpression() throws FilterException
FilterExceptionpublic boolean startsWith(String str)
public FilterExpression readSimpleFilter() throws FilterException
FilterExceptionprotected boolean hasBooleanOperator()
protected BooleanOperator readBooleanOperator() throws FilterException
FilterExceptionpublic int getPosition()
public String getInputString()
protected void skipWhiteSpace()
protected String readVariable() throws FilterException
FilterExceptionprotected Operator readOperator() throws SyntaxException
SyntaxExceptionprotected String readValue() throws FilterException
FilterExceptionprotected String readQuotedString(char ch)
public static final FilterExpression parse(String str) throws FilterException
FilterExceptionCopyright © 2013 jwall.org. All Rights Reserved.