Top Description Inners Constructors Methods
com.fasterxml.jackson.databind.jdk14

public Class JDK14Util

extends Object
Class Inheritance
Imports
java.lang.reflect.Method, java.util.Collections, .List, com.fasterxml.jackson.annotation.JsonCreator, .JsonCreator.Mode, com.fasterxml.jackson.databind.AnnotationIntrospector, .BeanDescription, .DeserializationContext, .PropertyName, com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedClass, .AnnotatedConstructor, .PotentialCreator, com.fasterxml.jackson.databind.util.ClassUtil, .NativeImageUtil

Helper class to support some of JDK 14 (and later) features without Jackson itself being run on (or even built with) Java 14. In particular allows better support of java.lang.Record types (see JEP 359).
Since
2.12

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static PotentialCreator
public static AnnotatedConstructor
public static AnnotatedConstructor
findRecordConstructor(AnnotatedClass recordClass, AnnotationIntrospector intr, MapperConfig<?> config, List<String> names)
Deprecated

public static String[]
getRecordFieldNames(Class<?> recordType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JDK14Utilback to summary
public JDK14Util()

Method Detail

findCanonicalRecordConstructorback to summary
public static PotentialCreator findCanonicalRecordConstructor(MapperConfig<?> config, AnnotatedClass recordClass, List<PotentialCreator> constructors)
Since
2.18
findRecordConstructorback to summary
public static AnnotatedConstructor findRecordConstructor(DeserializationContext ctxt, BeanDescription beanDesc, List<String> names)

Deprecated

Annotations
@Deprecated
findRecordConstructorback to summary
public static AnnotatedConstructor findRecordConstructor(AnnotatedClass recordClass, AnnotationIntrospector intr, MapperConfig<?> config, List<String> names)

Deprecated

Annotations
@Deprecated
getRecordFieldNamesback to summary
public static String[] getRecordFieldNames(Class<?> recordType)
com.fasterxml.jackson.databind.jdk14 back to summary

pack-priv Class JDK14Util.CreatorLocator

extends Object
Class Inheritance
  • java.lang.Object
  • com.fasterxml.jackson.databind.jdk14.JDK14Util.CreatorLocator
Annotations
@Deprecated

Deprecated

Field Summary

Modifier and TypeField and Description
protected final MapperConfig<?>
protected final List<AnnotatedConstructor>
protected final AnnotationIntrospector
protected final AnnotatedConstructor
protected final AnnotatedClass
protected final JDK14Util.RawTypeName[]
_recordFields

References Deprecated JDK14Util.RawTypeName is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor Summary

AccessConstructor and Description
pack-priv
CreatorLocator(MapperConfig<?> config, AnnotatedClass recordClass)

Method Summary

Modifier and TypeMethod and Description
public AnnotatedConstructor
locate(List<String> names)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_configback to summary
protected final MapperConfig<?> _config
_constructorsback to summary
protected final List<AnnotatedConstructor> _constructors
_intrback to summary
protected final AnnotationIntrospector _intr
_primaryConstructorback to summary
protected final AnnotatedConstructor _primaryConstructor
_recordClassback to summary
protected final AnnotatedClass _recordClass
_recordFieldsback to summary
protected final JDK14Util.RawTypeName[] _recordFields

References Deprecated

JDK14Util.RawTypeName is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

CreatorLocatorback to summary
pack-priv CreatorLocator(MapperConfig<?> config, AnnotatedClass recordClass)

Method Detail

locateback to summary
public AnnotatedConstructor locate(List<String> names)
com.fasterxml.jackson.databind.jdk14 back to summary

pack-priv Class JDK14Util.RawTypeName

extends Object
Class Inheritance
Annotations
@Deprecated

Deprecated

Field Summary

Modifier and TypeField and Description
public final String
public final Class<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
public final String name
rawTypeback to summary
public final Class<?> rawType

Constructor Detail

RawTypeNameback to summary
public RawTypeName(Class<?> rt, String n)
com.fasterxml.jackson.databind.jdk14 back to summary

pack-priv Class JDK14Util.RecordAccessor

extends Object
Class Inheritance
  • java.lang.Object
  • com.fasterxml.jackson.databind.jdk14.JDK14Util.RecordAccessor

Field Summary

Modifier and TypeField and Description
private static final JDK14Util.RecordAccessor
private static final RuntimeException
private final Method
private final Method
private final Method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String[]
getRecordFieldNames(Class<?> recordType)

public JDK14Util.RawTypeName[]
getRecordFields(Class<?> recordType)
References Deprecated JDK14Util.RawTypeName is deprecated or references (maybe indirectly) at least one deprecated element.

public static JDK14Util.RecordAccessor
protected Object[]
recordComponents(Class<?> recordType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final JDK14Util.RecordAccessor INSTANCE
PROBLEMback to summary
private static final RuntimeException PROBLEM
RECORD_COMPONENT_GET_NAMEback to summary
private final Method RECORD_COMPONENT_GET_NAME
RECORD_COMPONENT_GET_TYPEback to summary
private final Method RECORD_COMPONENT_GET_TYPE
RECORD_GET_RECORD_COMPONENTSback to summary
private final Method RECORD_GET_RECORD_COMPONENTS

Constructor Detail

RecordAccessorback to summary
private RecordAccessor() throws RuntimeException

Method Detail

getRecordFieldNamesback to summary
public String[] getRecordFieldNames(Class<?> recordType) throws IllegalArgumentException
getRecordFieldsback to summary
public JDK14Util.RawTypeName[] getRecordFields(Class<?> recordType) throws IllegalArgumentException

References Deprecated

JDK14Util.RawTypeName is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

instanceback to summary
public static JDK14Util.RecordAccessor instance()
recordComponentsback to summary
protected Object[] recordComponents(Class<?> recordType) throws IllegalArgumentException