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,
int typeId,
Method getter,
Method setter) |
protected |
BeanProperty(BeanProperty src,
ValueReader vr) |
|
BeanProperty(String name) |
Modifier and Type | Method and Description |
---|---|
protected String |
_bean() |
void |
forceAccess() |
Type |
genericSetterType() |
SerializedString |
getName() |
SerializedString |
getNameIfHasSetter() |
ValueReader |
getReader() |
int |
getTypeId() |
Object |
getValueFor(Object bean) |
boolean |
hasGetter() |
boolean |
hasSetter() |
Class<?> |
rawGetterType() |
Class<?> |
rawSetterType() |
Object |
setValueFor(Object bean,
Object value) |
String |
toString() |
BeanProperty |
withGetter(Method getter) |
BeanProperty |
withReader(ValueReader vr) |
BeanProperty |
withSetter(Method setter) |
BeanProperty |
withTypeId(int typeId) |
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
public BeanProperty(String name)
protected BeanProperty(BeanProperty src, ValueReader vr)
protected BeanProperty(BeanProperty src, int typeId, Method getter, Method setter)
public BeanProperty withGetter(Method getter)
public BeanProperty withSetter(Method setter)
public BeanProperty withReader(ValueReader vr)
public BeanProperty withTypeId(int typeId)
public void forceAccess()
public boolean hasGetter()
public boolean hasSetter()
public Type genericSetterType()
public Class<?> rawSetterType()
public Class<?> rawGetterType()
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–2015 FasterXML. All rights reserved.