Top Fields Constructors Methods
com.fasterxml.jackson.jr.ob.impl

public final Class BeanPropertyReader

extends Object
Class Inheritance
Imports
java.io.IOException, java.lang.reflect.Field, .InvocationTargetException, .Method, .Type, com.fasterxml.jackson.jr.ob.JSONObjectException, com.fasterxml.jackson.jr.ob.api.ValueReader

Since
2.8 (formerly part of `BeanDefinition`)

Field Summary

Modifier and TypeField and Description
private final Field
_field

Field to assign value to, if no setter method defined; null if none

private final int
_index

Index used for Records constructor parameters.

private final String
private final Method
_setter

Setter method to use, if any; null if none

private final ValueReader
_valueReader

For non-trivial non-bean types

Constructor Summary

AccessConstructor and Description
public
BeanPropertyReader(String name, Field f, Method setter, int propertyIndex)

public
BeanPropertyReader(String name, Field f, Method setter)
Deprecated

protected

Method Summary

Modifier and TypeMethod and Description
protected String
protected Class<?>
public Type
public int
public String
public ValueReader
public Class<?>
public void
setValueFor(Object bean, Object[] valueBuf)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public BeanPropertyReader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_fieldback to summary
private final Field _field

Field to assign value to, if no setter method defined; null if none

_indexback to summary
private final int _index

Index used for Records constructor parameters. It is not used for getter/setter methods.

Since
2.18
_nameback to summary
private final String _name
_setterback to summary
private final Method _setter

Setter method to use, if any; null if none

_valueReaderback to summary
private final ValueReader _valueReader

For non-trivial non-bean types

Constructor Detail

BeanPropertyReaderback to summary
public BeanPropertyReader(String name, Field f, Method setter, int propertyIndex)
Since
2.18
BeanPropertyReaderback to summary
public BeanPropertyReader(String name, Field f, Method setter)

Deprecated

Annotations
@Deprecated
BeanPropertyReaderback to summary
protected BeanPropertyReader(BeanPropertyReader src, ValueReader vr)

Method Detail

_beanback to summary
protected String _bean()
_rawTypeback to summary
protected Class<?> _rawType()
genericSetterTypeback to summary
public Type genericSetterType()
getIndexback to summary
public int getIndex()
Since
2.18
getNameback to summary
public String getName()
getReaderback to summary
public ValueReader getReader()
rawSetterTypeback to summary
public Class<?> rawSetterType()
setValueForback to summary
public void setValueFor(Object bean, Object[] valueBuf) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
withReaderback to summary
public BeanPropertyReader withReader(ValueReader vr)