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, deserialize
aliases, getAnnotation, getConcreteClass, getDeclaringClass, getName, getRawClass, getType
protected 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()
BeanProperty
public String signature()
public int getModifiers()
getModifiers
in class BeanProperty
public void mutate(Object target, Object value)
mutate
in class PropertyMutator
Copyright © 2019. All rights reserved.