Package org.springframework.data.spel
Class ExpressionDependencies.ExpressionDependency
java.lang.Object
org.springframework.data.spel.ExpressionDependencies.ExpressionDependency
- Enclosing class:
- ExpressionDependencies
Value object to describe a dependency to a method or property/field that is referenced from a SpEL expression.
- Since:
- 2.4
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Create a newExpressionDependencies.ExpressionDependency
for a method.forPropertyOrField
(String fieldOrPropertyName) Create a newExpressionDependencies.ExpressionDependency
for a property or field.int
hashCode()
boolean
isMethod()
boolean
isNested()
boolean
boolean
nest
(int level) Associate a nestinglevel
with theExpressionDependencies.ExpressionDependency
.toString()
-
Method Details
-
forMethod
Create a newExpressionDependencies.ExpressionDependency
for a method.- Parameters:
methodName
- the method name.- Returns:
- a method dependency on
methodName
.
-
forPropertyOrField
public static ExpressionDependencies.ExpressionDependency forPropertyOrField(String fieldOrPropertyName) Create a newExpressionDependencies.ExpressionDependency
for a property or field.- Parameters:
fieldOrPropertyName
- the property/field name.- Returns:
- a method dependency on
fieldOrPropertyName
.
-
nest
Associate a nestinglevel
with theExpressionDependencies.ExpressionDependency
. Returns- Parameters:
level
-- Returns:
-
isNested
public boolean isNested() -
isTopLevel
public boolean isTopLevel() -
isMethod
public boolean isMethod() -
isPropertyOrField
public boolean isPropertyOrField() -
getSymbol
-
equals
-
hashCode
public int hashCode() -
toString
-