public static class BeanCreator.BeanCreatorProperty extends PropertyMutator
PropertyMutator.FieldMutator, PropertyMutator.MethodMutator| Modifier and Type | Field and Description |
|---|---|
protected Annotation[] |
annotations |
protected BeanCreator |
creator |
protected boolean |
doThrowMutateException |
protected int |
index |
concreteClass, declaringClass, modifiers, name, type| Modifier | Constructor and Description |
|---|---|
protected |
BeanCreatorProperty(String name,
Type type,
int index,
Annotation[] annotations,
Class<?> declaringClass,
Class<?> concreteClass,
BeanCreator creator) |
protected |
BeanCreatorProperty(String name,
Type type,
int index,
Annotation[] annotations,
Class<?> declaringClass,
Class<?> concreteClass,
BeanCreator creator,
boolean doThrowMutateException) |
| Modifier and Type | Method and Description |
|---|---|
Annotation[] |
getAnnotations() |
int |
getIndex() |
int |
getModifiers() |
void |
mutate(Object target,
Object value) |
int |
priority()
Used to give priority to implementations, for example by default a method would have a higher
priority than a field because it can do some logic.
|
String |
signature() |
compareTo, couldNotDeserialize, couldNotMutate, deserialize, deserializealiases, getAnnotation, getConcreteClass, getDeclaringClass, getName, getRawClass, getTypeprotected final int index
protected final Annotation[] annotations
protected final BeanCreator creator
protected final boolean doThrowMutateException
protected BeanCreatorProperty(String name, Type type, int index, Annotation[] annotations, Class<?> declaringClass, Class<?> concreteClass, BeanCreator creator)
protected BeanCreatorProperty(String name, Type type, int index, Annotation[] annotations, Class<?> declaringClass, Class<?> concreteClass, BeanCreator creator, boolean doThrowMutateException)
public int getIndex()
public Annotation[] getAnnotations()
public int priority()
BeanPropertypublic String signature()
public int getModifiers()
getModifiers in class BeanPropertypublic void mutate(Object target, Object value)
mutate in class PropertyMutatorCopyright © 2019. All rights reserved.