| Modifier and Type | Field and Description |
|---|---|
| protected final Map | _aliasMapping
Mapping of aliased names to primary names (direct linkage unfortunately impractical due to implementation limits). |
| protected final boolean | |
| protected final BeanConstructors | |
| protected final Set | |
| protected final boolean | |
| protected PropertyNameMatcher | |
| protected final Map | |
| protected BeanPropertyReader[] | |
| protected final Object[] | _recordNullValues
Array that contains default null values for POJO/Record properties;
needed for primitive types for which |
| Access | Constructor and Description |
|---|---|
| protected | BeanReader(Class<?> type, Map<String, BeanPropertyReader> propsByName, BeanConstructors constructors, Set<String> ignorableNames, Map<String, String> aliasMapping, boolean caseInsensitive)
Constructors used for deserialization use case |
| Modifier and Type | Method and Description |
|---|---|
| private final Map | |
| private final Object | |
| private final Object | |
| protected Object | |
| protected JacksonException | |
| public static BeanReader | |
| public BeanPropertyReader | |
| protected void | |
| protected void | initPropertyMatcher(TokenStreamFactory streamFactory)
Initialization method called after construction and resolution of all property readers: separate since caller needs to handle resolution of cyclic dependencies. |
| private Object | |
| public Map | |
| public Object | read(JSONReader r, JsonParser p)
Implements abstract tools. Method used for deserialization; will read an instance of the bean type using given parser. |
| public Object | readNext(JSONReader r, JsonParser p)
Overrides tools. Method called to deserialize value of type supported by this reader, using given parser. |
| private Object |
| _aliasMapping | back to summary |
|---|---|
| protected final Map<String, String> _aliasMapping Mapping of aliased names to primary names (direct linkage unfortunately impractical due to implementation limits). | |
| _caseInsensitive | back to summary |
|---|---|
| protected final boolean _caseInsensitive | |
| _constructors | back to summary |
|---|---|
| protected final BeanConstructors _constructors | |
| _ignorableNames | back to summary |
|---|---|
| protected final Set<String> _ignorableNames | |
| _isRecordType | back to summary |
|---|---|
| protected final boolean _isRecordType | |
| _propNameMatcher | back to summary |
|---|---|
| protected PropertyNameMatcher _propNameMatcher | |
| _propsByName | back to summary |
|---|---|
| protected final Map<String, BeanPropertyReader> _propsByName | |
| _propValueReaders | back to summary |
|---|---|
| protected BeanPropertyReader[] _propValueReaders | |
| _recordNullValues | back to summary |
|---|---|
| protected final Object[] _recordNullValues Array that contains default null values for POJO/Record properties;
needed for primitive types for which | |
| BeanReader | back to summary |
|---|---|
| protected BeanReader(Class<?> type, Map<String, BeanPropertyReader> propsByName, BeanConstructors constructors, Set<String> ignorableNames, Map<String, String> aliasMapping, boolean caseInsensitive) Constructors used for deserialization use case | |
| _mixInAliases | back to summary |
|---|---|
| private final Map | |
| _readBean | back to summary |
|---|---|
| private final Object _readBean(JSONReader r, JsonParser p, final Object bean) throws JacksonException | |
| _readWithUnknown | back to summary |
|---|---|
| private final Object _readWithUnknown(JSONReader r, JsonParser p, final Object bean, String propName) throws JacksonException | |
| _reportFailureToCreate | back to summary |
|---|---|
| protected Object _reportFailureToCreate(JsonParser p, Exception e) throws JacksonException | |
| _reportProblem | back to summary |
|---|---|
| protected JacksonException _reportProblem(JsonParser p) | |
| construct | back to summary |
|---|---|
public static BeanReader construct(Class<?> type, Map<String, BeanPropertyReader> props, BeanConstructors constructors, Set<String> ignorableProps, Map<String, String> aliasMapping, boolean caseInsensitive)
| |
| findProperty | back to summary |
|---|---|
| public BeanPropertyReader findProperty(String name) | |
| handleUnknown | back to summary |
|---|---|
| protected void handleUnknown(JSONReader reader, JsonParser parser, String fieldName) throws JacksonException | |
| initPropertyMatcher | back to summary |
|---|---|
| protected void initPropertyMatcher(TokenStreamFactory streamFactory) Initialization method called after construction and resolution of all property readers: separate since caller needs to handle resolution of cyclic dependencies. | |
| nullValue | back to summary |
|---|---|
| private Object nullValue(Class<?> aClass) | |
| propertiesByName | back to summary |
|---|---|
| public Map | |
| read | back to summary |
|---|---|
| public Object read(JSONReader r, JsonParser p) throws JacksonException Implements abstract tools. Method used for deserialization; will read an instance of the bean type using given parser.
| |
| readNext | back to summary |
|---|---|
| public Object readNext(JSONReader r, JsonParser p) throws JacksonException Overrides tools. Doc from tools. Method called to deserialize value of type supported by this reader, using given parser. Parser is not yet positioned to the (first) token of the value to read and needs to be advanced.
Default implementation simply calls `p.nextToken()` first, then calls
{#link
| |
| readRecord | back to summary |
|---|---|
| private Object readRecord(JSONReader r, JsonParser p) throws JacksonException | |