public class ObjectPathExpressionParser extends Object
NOTE: This is not full JSP EL, only the path reference portion without support for floating point literals. See this JSP Reference for the full BNF.
Value ::= ValuePrefix (ValueSuffix)*
ValuePrefix ::= Literal
| NonLiteralValuePrefix
NonLiteralValuePrefix ::= '(' Expression ')'
| Identifier
ValueSuffix ::= '.' Identifier
| '[' Expression ']'
Identifier ::= Java language identifier
Literal ::= BooleanLiteral
| IntegerLiteral
| FloatingPointLiteral
| StringLiteral
| NullLiteral
BooleanLiteral ::= 'true'
| 'false'
StringLiteral ::= '([^'\]|\'|\\)*'
| "([^"\]|\"|\\)*"
i.e., a string of any characters enclosed by
single or double quotes, where \ is used to
escape ', ",and \. It is possible to use single
quotes within double quotes, and vice versa,
without escaping.
IntegerLiteral ::= ['0'-'9']+
NullLiteral ::= 'null'
| Modifier and Type | Class and Description |
|---|---|
static interface |
ObjectPathExpressionParser.PathEntry
Path entry interface for use with
parsePathExpression(Object, String, PathEntry). |
| Modifier and Type | Method and Description |
|---|---|
static Object |
parsePathExpression(Object root,
String path,
ObjectPathExpressionParser.PathEntry pathEntry)
Parse a path expression.
|
public static Object parsePathExpression(Object root, String path, ObjectPathExpressionParser.PathEntry pathEntry)
T - Reference type representing the next parse node.S - The parse node type.root - The root object.path - The path expression.pathEntry - The path entry adaptor to use for processing parse node transition.ObjectPathExpressionParser#getPropertyValue(Object, String)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.