public final class BeanProperty extends Object
Modifier and Type | Field and Description |
---|---|
protected Method |
_getMethod |
protected SerializedString |
_name |
protected Method |
_setMethod |
protected int |
_typeId
Pre-resolved type id for reading/writing values, if statically known.
|
protected ValueReader |
_valueReader
For non-trivial non-bean types
|
Modifier | Constructor and Description |
---|---|
protected |
BeanProperty(BeanProperty src,
ValueReader vr) |
|
BeanProperty(String name,
int typeId,
Method getMethod,
Method setMethod) |
|
BeanProperty(String name,
Method getMethod,
Method setMethod) |
Modifier and Type | Method and Description |
---|---|
protected String |
_bean() |
Type |
genericSetterType() |
SerializedString |
getName() |
SerializedString |
getNameIfHasSetter() |
ValueReader |
getReader() |
int |
getTypeId() |
Object |
getValueFor(Object bean) |
void |
overridTypeId(int id) |
Class<?> |
rawSetterType() |
Object |
setValueFor(Object bean,
Object value) |
BeanProperty |
withReader(ValueReader vr) |
protected final SerializedString _name
protected int _typeId
Note: yes, access is without either volatile or synchronized. But it is an atomic type; so in the very worst case, modification just won't stick. It will never result in invalid value being accessible.
protected final ValueReader _valueReader
protected final Method _getMethod
protected final Method _setMethod
protected BeanProperty(BeanProperty src, ValueReader vr)
public BeanProperty withReader(ValueReader vr)
public void overridTypeId(int id)
public Type genericSetterType()
public Class<?> rawSetterType()
public ValueReader getReader()
public int getTypeId()
public SerializedString getName()
public SerializedString getNameIfHasSetter()
public Object getValueFor(Object bean) throws IOException
IOException
public Object setValueFor(Object bean, Object value) throws IOException
IOException
protected String _bean()
Copyright © 2014 FasterXML. All Rights Reserved.