public final class ObjectPathExpressionParser extends Object
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 int |
indexOfCloseBracket(String path,
int leftBracketIndex)
Return the index of the close bracket that matches the bracket at the start of the path.
|
static boolean |
isPath(String propertyName)
Determine if a property name is a path or a plain property reference.
|
static <T> T |
parsePathExpression(Object root,
String path,
ObjectPathExpressionParser.PathEntry pathEntry)
Parse a path expression.
|
public static int indexOfCloseBracket(String path, int leftBracketIndex)
path
- The string to scan.leftBracketIndex
- The index of the left bracket.public static boolean isPath(String propertyName)
This method is used to eliminate parsing and object creation overhead when resolving an object property reference with a non-complex property path.
propertyName
- property namepublic static <T> T parsePathExpression(Object root, String path, ObjectPathExpressionParser.PathEntry pathEntry)
root
- The root object.path
- The path expression.pathEntry
- The path entry adaptor to use for processing parse node transition.ObjectPropertyUtils.getPropertyValue(Object, String)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.