Modifier and Type | Class and Description |
---|---|
protected static class |
StringParser.StringOrPath |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOSE_DELIM |
static java.lang.String |
ESCAPE |
static java.lang.String |
OPEN_DELIM |
Modifier | Constructor and Description |
---|---|
|
StringParser() |
protected |
StringParser(java.lang.Class<? extends AbstractExpression> exprType)
This constructor specifies what type of expression should be created.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPart(java.util.List<StringParser.StringOrPath> parts,
StringParser.StringOrPath newPart) |
boolean |
getAllowsReferenceEscape() |
static StringParser |
newQueryParser()
Returns a parser that expects to parse sql queries for references
|
static StringParser |
newStandardParser_Localized()
Returns a parser who creates expressions that simply toString
sub-expressions, adjusting the values for the locale.
|
static StringParser |
newStandardParser_NonLocalized()
Returns a parser who creates an expression that is the toString of all of
the sub-expressions, but with no consideration of the locale.
|
Expression |
parse(java.lang.String expr,
ExpressionParseContext binder) |
protected StringParser.StringOrPath[] |
parseQueryWithBoundPaths(java.lang.String query)
Chops up a query, returning the string segments and path segments
separately
|
void |
setAllowsReferenceEscape(boolean value)
If true, allows item reference syntax, such as "{blah}" to be escaped with "\", to avoid expansion.
|
public static final java.lang.String ESCAPE
public static final java.lang.String OPEN_DELIM
public static final java.lang.String CLOSE_DELIM
public StringParser()
protected StringParser(java.lang.Class<? extends AbstractExpression> exprType)
public static StringParser newStandardParser_Localized()
public static StringParser newStandardParser_NonLocalized()
public static StringParser newQueryParser()
public void setAllowsReferenceEscape(boolean value)
public boolean getAllowsReferenceEscape()
public Expression parse(java.lang.String expr, ExpressionParseContext binder) throws java.lang.Exception
protected void addPart(java.util.List<StringParser.StringOrPath> parts, StringParser.StringOrPath newPart)
protected StringParser.StringOrPath[] parseQueryWithBoundPaths(java.lang.String query) throws java.lang.Exception
java.lang.Exception