public class ChainAccessiblePropertyOperator extends Object implements PropertyOperator
PropertyOperator that
adds support for nested bean chain operations to the original operator.| 限定符和类型 | 类和说明 |
|---|---|
static class |
ChainAccessiblePropertyOperator.DefaultSplitter
The default splitter implementation that
uses
String.split(java.lang.String, int) to split the input string
into multiple attributes by separator. |
| 限定符和类型 | 字段和说明 |
|---|---|
protected PropertyOperator |
propertyOperator
original operator
|
| 构造器和说明 |
|---|
ChainAccessiblePropertyOperator(PropertyOperator propertyOperator)
Create an
ChainAccessiblePropertyOperator comparator,
and use the default splitter to separate input chain operators based on the "." character. |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable MethodInvoker |
findGetter(Class<?> targetType,
String propertyName)
Get getter method.
|
@Nullable MethodInvoker |
findSetter(Class<?> targetType,
String propertyName)
Get setter method.
|
@Nullable Object |
readProperty(Class<?> targetType,
Object target,
String propertyName)
Get the specified property value.
|
void |
writeProperty(Class<?> targetType,
Object target,
String propertyName,
Object value)
Set the specified property value.
|
protected final PropertyOperator propertyOperator
public ChainAccessiblePropertyOperator(PropertyOperator propertyOperator)
ChainAccessiblePropertyOperator comparator,
and use the default splitter to separate input chain operators based on the "." character.propertyOperator - property operatorChainAccessiblePropertyOperator.DefaultSplitterpublic @Nullable Object readProperty(Class<?> targetType, Object target, String propertyName)
readProperty 在接口中 PropertyOperatortargetType - target typetarget - targetpropertyName - property namepublic @Nullable MethodInvoker findGetter(Class<?> targetType, String propertyName)
findGetter 在接口中 PropertyOperatortargetType - target typepropertyName - property namepublic void writeProperty(Class<?> targetType, Object target, String propertyName, Object value)
writeProperty 在接口中 PropertyOperatortargetType - target typetarget - targetpropertyName - property namevalue - property valuepublic @Nullable MethodInvoker findSetter(Class<?> targetType, String propertyName)
findSetter 在接口中 PropertyOperatortargetType - target typepropertyName - property nameCopyright © 2023. All rights reserved.