Top Description Fields Constructors Methods
tools.jackson.databind.deser.jackson

public Class TokenStreamLocationInstantiator

extends Base
Class Inheritance
Imports
tools.jackson.core.TokenStreamLocation, tools.jackson.core.io.ContentReference, tools.jackson.databind.DeserializationConfig, .DeserializationContext, .JavaType, .PropertyMetadata, .PropertyName, tools.jackson.databind.deser.CreatorProperty, .SettableBeanProperty, .ValueInstantiator

For TokenStreamLocation, we should be able to just implement ValueInstantiator (not that explicit one would be very hard but...)

Field Summary

Inherited from tools.jackson.databind.deser.ValueInstantiator.Base:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static final int
private static final long
public boolean
canCreateFromObjectWith()

Overrides tools.jackson.databind.deser.ValueInstantiator.canCreateFromObjectWith.

Method that can be called to check whether a property-based creator (argument-taking constructor or factory method) is available to instantiate values from JSON Object

public Object
createFromObjectWith(DeserializationContext ctxt, Object[] args)

Overrides tools.jackson.databind.deser.ValueInstantiator.createFromObjectWith.

Method called to create value instance from JSON Object when instantiation arguments are passed; this is done, for example when passing information specified with "Creator" annotations.

private static CreatorProperty
creatorProp(String name, JavaType type, int index, boolean req)

public SettableBeanProperty[]
getFromObjectArguments(DeserializationConfig config)

Overrides tools.jackson.databind.deser.ValueInstantiator.getFromObjectArguments.

Method called to determine types of instantiation arguments to use when creating instances with creator arguments (when canCreateFromObjectWith() returns true).

Inherited from tools.jackson.databind.deser.ValueInstantiator.Base:
createContextualgetValueClassgetValueTypeDesc

Constructor Detail

TokenStreamLocationInstantiatorback to summary
public TokenStreamLocationInstantiator()

Method Detail

_intback to summary
private static final int _int(Object o)
_longback to summary
private static final long _long(Object o)
canCreateFromObjectWithback to summary
public boolean canCreateFromObjectWith()

Overrides tools.jackson.databind.deser.ValueInstantiator.canCreateFromObjectWith.

Doc from tools.jackson.databind.deser.ValueInstantiator.canCreateFromObjectWith.

Method that can be called to check whether a property-based creator (argument-taking constructor or factory method) is available to instantiate values from JSON Object

Annotations
@Override
createFromObjectWithback to summary
public Object createFromObjectWith(DeserializationContext ctxt, Object[] args)

Overrides tools.jackson.databind.deser.ValueInstantiator.createFromObjectWith.

Doc from tools.jackson.databind.deser.ValueInstantiator.createFromObjectWith.

Method called to create value instance from JSON Object when instantiation arguments are passed; this is done, for example when passing information specified with "Creator" annotations.

This method is called if getFromObjectArguments returns a non-empty List of arguments.

Annotations
@Override
creatorPropback to summary
private static CreatorProperty creatorProp(String name, JavaType type, int index, boolean req)
getFromObjectArgumentsback to summary
public SettableBeanProperty[] getFromObjectArguments(DeserializationConfig config)

Overrides tools.jackson.databind.deser.ValueInstantiator.getFromObjectArguments.

Doc from tools.jackson.databind.deser.ValueInstantiator.getFromObjectArguments.

Method called to determine types of instantiation arguments to use when creating instances with creator arguments (when canCreateFromObjectWith() returns true). These arguments are bound from JSON, using specified property types to locate deserializers.

Note

all properties will be of type tools.jackson.databind.deser.CreatorProperty.

Annotations
@Override