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

public Class BeanPropertyIntrospector

extends Object
Class Inheritance
Imports
java.lang.reflect.*, java.util.*, com.fasterxml.jackson.jr.ob.JSON, com.fasterxml.jackson.jr.ob.impl.POJODefinition.Prop, .POJODefinition.PropBuilder

Helper class that jackson-jr uses by default to introspect POJO properties (represented as POJODefinition) to build general POJO readers (deserializers) and writers (serializers).

Note that most of the usage is via ValueReaderLocator and ValueWriterLocator

Since
2.11

Field Summary

Modifier and TypeField and Description
private static final BeanPropertyIntrospector
protected static final POJODefinition.Prop[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
_introspect(Class<?> currType, Map<String, POJODefinition.PropBuilder> props, int features, boolean isRecord)

private POJODefinition
_introspectDefinition(Class<?> beanType, boolean forSerialization, int features, boolean isRecord)

private static POJODefinition.PropBuilder
private static String
decap(String name)

public static BeanPropertyIntrospector
protected static boolean
isGroovyMetaClass(Class<?> clazz)

Helper method to detect Groovy's problematic metadata accessor type.

public POJODefinition
public POJODefinition
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final BeanPropertyIntrospector INSTANCE
NO_PROPSback to summary
protected static final POJODefinition.Prop[] NO_PROPS

Constructor Detail

BeanPropertyIntrospectorback to summary
public BeanPropertyIntrospector()

Method Detail

_introspectback to summary
private static void _introspect(Class<?> currType, Map<String, POJODefinition.PropBuilder> props, int features, boolean isRecord)
_introspectDefinitionback to summary
private POJODefinition _introspectDefinition(Class<?> beanType, boolean forSerialization, int features, boolean isRecord)
_propFromback to summary
private static POJODefinition.PropBuilder _propFrom(Map<String, POJODefinition.PropBuilder> props, String name)
decapback to summary
private static String decap(String name)
instanceback to summary
public static BeanPropertyIntrospector instance()
isGroovyMetaClassback to summary
protected static boolean isGroovyMetaClass(Class<?> clazz)

Helper method to detect Groovy's problematic metadata accessor type.

Note

Groovy MetaClass have cyclic reference, and hence the class containing it should not be serialized without either removing that reference, or skipping over such references.

pojoDefinitionForDeserializationback to summary
public POJODefinition pojoDefinitionForDeserialization(JSONReader r, Class<?> pojoType)
pojoDefinitionForSerializationback to summary
public POJODefinition pojoDefinitionForSerialization(JSONWriter w, Class<?> pojoType)