public class PathToSpEL extends Object
Constructor and Description |
---|
PathToSpEL() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.expression.Expression |
pathToExpression(String path)
Converts a patch path to an
Expression . |
static org.springframework.expression.Expression |
pathToParentExpression(String path)
Produces an expression targeting the parent of the object that the given path targets.
|
static org.springframework.expression.Expression |
spelToExpression(String spel)
Convenience method to convert a SpEL String to an
Expression . |
public static org.springframework.expression.Expression pathToExpression(String path)
Expression
.path
- the patch path to convert.Expression
public static org.springframework.expression.Expression spelToExpression(String spel)
Expression
.spel
- the SpEL expression as a StringExpression
public static org.springframework.expression.Expression pathToParentExpression(String path)
path
- the path to find a parent expression for.Expression
targeting the parent of the object specified by path.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.