| Modifier and Type | Field and Description |
|---|---|
| protected final AccessorNamingStrategy | _accessorNaming
Handler used for name-mangling of getter, mutator (setter/with) methods |
| protected final AnnotationIntrospector | |
| protected LinkedList | |
| protected LinkedList | |
| protected LinkedList | |
| protected LinkedList | |
| protected final AnnotatedClass | _classDef
Low-level introspected class information (methods, fields etc) |
| protected boolean | _collected
State flag we keep to indicate whether actual property information has been collected or not. |
| protected final MapperConfig | _config
Configuration settings |
| protected List | |
| protected Map | _fieldRenameMappings
A set of "field renamings" that have been discovered, indicating intended renaming of other accessors: key is the implicit original name and value intended name to use instead. |
| protected JsonFormat. | _formatOverrides
Lazily accessed information about POJO format overrides |
| protected final boolean | _forSerialization
True if introspection is done for serialization (giving precedence for serialization annotations), or not (false, deserialization) |
| protected HashSet | _ignoredPropertyNames
Lazily collected list of properties that can be implicitly ignored during serialization; only updated when collecting information for deserialization purposes |
| protected LinkedHashMap | _injectables
Lazily collected list of members that were annotated to indicate that they represent mutators for deserializer value injection. |
| protected final boolean | |
| protected LinkedList | _jsonKeyAccessors
Accessors (field or "getter" method annotated with
|
| protected LinkedList | _jsonValueAccessors
Accessors (field or "getter" method) annotated with
|
| protected PotentialCreators | |
| protected LinkedHashMap | _properties
Set of logical property information collected so far. |
| protected final JavaType | _type
Type of POJO for which properties are being collected. |
| protected final boolean | |
| protected final VisibilityChecker |
| Access | Constructor and Description |
|---|---|
| protected | POJOPropertiesCollector(MapperConfig<?> config, boolean forSerialization, JavaType type, AnnotatedClass classDef, AccessorNamingStrategy accessorNaming)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | _addCreatorParams(Map<String, POJOPropertyBuilder> props, PotentialCreator ctor, List<POJOPropertyBuilder> creatorProps)
|
| protected void | |
| private void | _addCreatorsWithAnnotatedNames(PotentialCreators collector, List<PotentialCreator> ctors, PotentialCreator primaryCtor)
|
| private void | _addExplicitlyAnnotatedCreators(PotentialCreators collector, List<PotentialCreator> ctors, Map<String, POJOPropertyBuilder> props, boolean skipPropsBased)
|
| protected void | _addFields(Map<String, POJOPropertyBuilder> props)
Method for collecting basic information on all fields found |
| protected void | _addGetterMethod(Map<String, POJOPropertyBuilder> props, AnnotatedMethod m, AnnotationIntrospector ai)
|
| private boolean | _addImplicitConstructor(PotentialCreators collector, List<PotentialCreator> ctors, Map<String, POJOPropertyBuilder> props)
|
| protected void | |
| protected void | _addMethods(Map<String, POJOPropertyBuilder> props)
Method for collecting basic information on all accessor methods found |
| protected void | _addSetterMethod(Map<String, POJOPropertyBuilder> props, AnnotatedMethod m, AnnotationIntrospector ai)
|
| private boolean | |
| private String | |
| private List | |
| protected void | _collectIgnorals(String name)
Helper method called to add explicitly ignored properties to a list of known ignored properties; this helps in proper reporting of errors. |
| protected void | |
| private List | |
| private PropertyNamingStrategy | |
| private boolean | |
| private boolean | _isExplicitlyAnnotatedCreatorPropsBased(PotentialCreator ctor, Map<String, POJOPropertyBuilder> props, ConstructorDetector ctorDetector)
|
| protected POJOPropertyBuilder | |
| protected POJOPropertyBuilder | |
| private PropertyName | |
| private void | |
| private void | |
| private void | |
| protected void | _removeUnwantedAccessors(Map<String, POJOPropertyBuilder> props)
Method called to further get rid of unwanted individual accessors, based on read/write settings and rules for "pulling in" accessors (or not). |
| protected void | _removeUnwantedProperties(Map<String, POJOPropertyBuilder> props)
Method called to get rid of candidate properties that are marked as ignored. |
| protected void | |
| protected void | |
| protected void | |
| protected boolean | |
| protected boolean | Returns: True if seeming conflict was resolved and there only remains single accessorMethod that will be given a |
| protected void | |
| protected void | |
| public AnnotationIntrospector | |
| public AnnotatedMember | getAnyGetter()
Deprecated
Since 2.12 use separate
getAnyGetterMethod() and
getAnyGetterField().
Alias for |
| public AnnotatedMember | |
| public AnnotatedMember | |
| public AnnotatedMember | |
| public AnnotatedMethod | |
| public AnnotatedClass | |
| public MapperConfig | |
| public JsonFormat. | |
| public Set | getIgnoredPropertyNames()
Accessor for set of properties that are explicitly marked to be ignored via per-property markers (but NOT class annotations). |
| public Map | |
| public AnnotatedMember | |
| public AnnotatedMember | |
| public ObjectIdInfo | getObjectIdInfo()
Accessor to find out whether type specified requires inclusion of Object Identifier. |
| public PotentialCreators | |
| public List | |
| protected Map | |
| public JavaType | |
| public boolean | |
| protected void |
| _accessorNaming | back to summary |
|---|---|
| protected final AccessorNamingStrategy _accessorNaming Handler used for name-mangling of getter, mutator (setter/with) methods
| |
| _annotationIntrospector | back to summary |
|---|---|
| protected final AnnotationIntrospector _annotationIntrospector | |
| _anyGetterField | back to summary |
|---|---|
protected LinkedList<AnnotatedMember> _anyGetterField
| |
| _anyGetters | back to summary |
|---|---|
| protected LinkedList<AnnotatedMember> _anyGetters | |
| _anySetterField | back to summary |
|---|---|
| protected LinkedList<AnnotatedMember> _anySetterField | |
| _anySetters | back to summary |
|---|---|
| protected LinkedList<AnnotatedMethod> _anySetters | |
| _classDef | back to summary |
|---|---|
| protected final AnnotatedClass _classDef Low-level introspected class information (methods, fields etc) | |
| _collected | back to summary |
|---|---|
| protected boolean _collected State flag we keep to indicate whether actual property information has been collected or not. | |
| _config | back to summary |
|---|---|
| protected final MapperConfig<?> _config Configuration settings | |
| _creatorProperties | back to summary |
|---|---|
| protected List<POJOPropertyBuilder> _creatorProperties | |
| _fieldRenameMappings | back to summary |
|---|---|
| protected Map<PropertyName, PropertyName> _fieldRenameMappings A set of "field renamings" that have been discovered, indicating intended renaming of other accessors: key is the implicit original name and value intended name to use instead. Note that these renamings are applied earlier than "regular" (explicit) renamings and affect implicit name: their effect may be changed by further renaming based on explicit indicators. The main use case is to effectively relink accessors based on fields discovered, and used to sort of correct otherwise missing linkage between fields and other accessors.
| |
| _formatOverrides | back to summary |
|---|---|
| protected JsonFormat. Lazily accessed information about POJO format overrides
| |
| _forSerialization | back to summary |
|---|---|
| protected final boolean _forSerialization True if introspection is done for serialization (giving precedence for serialization annotations), or not (false, deserialization) | |
| _ignoredPropertyNames | back to summary |
|---|---|
| protected HashSet<String> _ignoredPropertyNames Lazily collected list of properties that can be implicitly ignored during serialization; only updated when collecting information for deserialization purposes | |
| _injectables | back to summary |
|---|---|
| protected LinkedHashMap<Object, AnnotatedMember> _injectables Lazily collected list of members that were annotated to indicate that they represent mutators for deserializer value injection. | |
| _isRecordType | back to summary |
|---|---|
protected final boolean _isRecordType
| |
| _jsonKeyAccessors | back to summary |
|---|---|
| protected LinkedList<AnnotatedMember> _jsonKeyAccessors Accessors (field or "getter" method annotated with
| |
| _jsonValueAccessors | back to summary |
|---|---|
| protected LinkedList<AnnotatedMember> _jsonValueAccessors Accessors (field or "getter" method) annotated with
| |
| _potentialCreators | back to summary |
|---|---|
protected PotentialCreators _potentialCreators
| |
| _properties | back to summary |
|---|---|
| protected LinkedHashMap<String, POJOPropertyBuilder> _properties Set of logical property information collected so far. Since 2.6, this has been constructed (more) lazily, to defer throwing of exceptions for potential conflicts in cases where this may not be an actual problem. | |
| _type | back to summary |
|---|---|
| protected final JavaType _type Type of POJO for which properties are being collected. | |
| _useAnnotations | back to summary |
|---|---|
protected final boolean _useAnnotations
| |
| _visibilityChecker | back to summary |
|---|---|
| protected final VisibilityChecker<?> _visibilityChecker | |
| POJOPropertiesCollector | back to summary |
|---|---|
protected POJOPropertiesCollector(MapperConfig<?> config, boolean forSerialization, JavaType type, AnnotatedClass classDef, AccessorNamingStrategy accessorNaming)
| |
| _addCreatorParams | back to summary |
|---|---|
| private void _addCreatorParams(Map<String, POJOPropertyBuilder> props, PotentialCreator ctor, List<POJOPropertyBuilder> creatorProps) | |
| _addCreators | back to summary |
|---|---|
| protected void _addCreators(Map<String, POJOPropertyBuilder> props) | |
| _addCreatorsWithAnnotatedNames | back to summary |
|---|---|
| private void _addCreatorsWithAnnotatedNames(PotentialCreators collector, List<PotentialCreator> ctors, PotentialCreator primaryCtor) | |
| _addExplicitlyAnnotatedCreators | back to summary |
|---|---|
| private void _addExplicitlyAnnotatedCreators(PotentialCreators collector, List<PotentialCreator> ctors, Map<String, POJOPropertyBuilder> props, boolean skipPropsBased) | |
| _addFields | back to summary |
|---|---|
| protected void _addFields(Map<String, POJOPropertyBuilder> props) Method for collecting basic information on all fields found | |
| _addGetterMethod | back to summary |
|---|---|
| protected void _addGetterMethod(Map<String, POJOPropertyBuilder> props, AnnotatedMethod m, AnnotationIntrospector ai) | |
| _addImplicitConstructor | back to summary |
|---|---|
| private boolean _addImplicitConstructor(PotentialCreators collector, List<PotentialCreator> ctors, Map<String, POJOPropertyBuilder> props) | |
| _addInjectables | back to summary |
|---|---|
| protected void _addInjectables(Map<String, POJOPropertyBuilder> props) | |
| _addMethods | back to summary |
|---|---|
| protected void _addMethods(Map<String, POJOPropertyBuilder> props) Method for collecting basic information on all accessor methods found | |
| _addSetterMethod | back to summary |
|---|---|
| protected void _addSetterMethod(Map<String, POJOPropertyBuilder> props, AnnotatedMethod m, AnnotationIntrospector ai) | |
| _anyIndexed | back to summary |
|---|---|
| private boolean _anyIndexed(Collection<POJOPropertyBuilder> props) | |
| _checkRenameByField | back to summary |
|---|---|
| private String _checkRenameByField(String implName) | |
| _collectCreators | back to summary |
|---|---|
| private List | |
| _collectIgnorals | back to summary |
|---|---|
| protected void _collectIgnorals(String name) Helper method called to add explicitly ignored properties to a list of known ignored properties; this helps in proper reporting of errors. | |
| _doAddInjectable | back to summary |
|---|---|
| protected void _doAddInjectable(JacksonInject. | |
| _findCreatorsWithAnnotatedNames | back to summary |
|---|---|
| private List | |
| _findNamingStrategy | back to summary |
|---|---|
| private PropertyNamingStrategy _findNamingStrategy() | |
| _isDelegatingConstructor | back to summary |
|---|---|
| private boolean _isDelegatingConstructor(PotentialCreator ctor) | |
| _isExplicitlyAnnotatedCreatorPropsBased | back to summary |
|---|---|
| private boolean _isExplicitlyAnnotatedCreatorPropsBased(PotentialCreator ctor, Map<String, POJOPropertyBuilder> props, ConstructorDetector ctorDetector) | |
| _property | back to summary |
|---|---|
| protected POJOPropertyBuilder _property(Map<String, POJOPropertyBuilder> props, PropertyName name) | |
| _property | back to summary |
|---|---|
| protected POJOPropertyBuilder _property(Map<String, POJOPropertyBuilder> props, String implName) | |
| _propNameFromSimple | back to summary |
|---|---|
| private PropertyName _propNameFromSimple(String simpleName) | |
| _removeDisabledCreators | back to summary |
|---|---|
| private void _removeDisabledCreators(List<PotentialCreator> ctors) | |
| _removeNonFactoryStaticMethods | back to summary |
|---|---|
| private void _removeNonFactoryStaticMethods(List<PotentialCreator> ctors, PotentialCreator primaryCreator) | |
| _removeNonVisibleCreators | back to summary |
|---|---|
| private void _removeNonVisibleCreators(List<PotentialCreator> ctors) | |
| _removeUnwantedAccessors | back to summary |
|---|---|
| protected void _removeUnwantedAccessors(Map<String, POJOPropertyBuilder> props) Method called to further get rid of unwanted individual accessors, based on read/write settings and rules for "pulling in" accessors (or not). | |
| _removeUnwantedProperties | back to summary |
|---|---|
| protected void _removeUnwantedProperties(Map<String, POJOPropertyBuilder> props) Method called to get rid of candidate properties that are marked as ignored. | |
| _renameProperties | back to summary |
|---|---|
| protected void _renameProperties(Map<String, POJOPropertyBuilder> props) | |
| _renameUsing | back to summary |
|---|---|
| protected void _renameUsing(Map<String, POJOPropertyBuilder> propMap, PropertyNamingStrategy naming) | |
| _renameWithWrappers | back to summary |
|---|---|
| protected void _renameWithWrappers(Map<String, POJOPropertyBuilder> props) | |
| _replaceCreatorProperty | back to summary |
|---|---|
| protected boolean _replaceCreatorProperty(List<POJOPropertyBuilder> creatorProperties, POJOPropertyBuilder prop) | |
| _resolveFieldVsGetter | back to summary |
|---|---|
| protected boolean _resolveFieldVsGetter(List<AnnotatedMember> accessors) Method that will be given a Note method will directly modify given
| |
| _sortProperties | back to summary |
|---|---|
| protected void _sortProperties(Map<String, POJOPropertyBuilder> props) | |
| collectAll | back to summary |
|---|---|
| protected void collectAll() Internal method that will collect actual property information.
| |
| getAnnotationIntrospector | back to summary |
|---|---|
| public AnnotationIntrospector getAnnotationIntrospector() | |
| getAnyGetter | back to summary |
|---|---|
| public AnnotatedMember getAnyGetter()
Deprecated Since 2.12 use separate Alias for
| |
| getAnyGetterField | back to summary |
|---|---|
public AnnotatedMember getAnyGetterField()
| |
| getAnyGetterMethod | back to summary |
|---|---|
public AnnotatedMember getAnyGetterMethod()
| |
| getAnySetterField | back to summary |
|---|---|
| public AnnotatedMember getAnySetterField() | |
| getAnySetterMethod | back to summary |
|---|---|
| public AnnotatedMethod getAnySetterMethod() | |
| getClassDef | back to summary |
|---|---|
| public AnnotatedClass getClassDef() | |
| getConfig | back to summary |
|---|---|
| public MapperConfig | |
| getFormatOverrides | back to summary |
|---|---|
public JsonFormat.
| |
| getIgnoredPropertyNames | back to summary |
|---|---|
| public Set Accessor for set of properties that are explicitly marked to be ignored via per-property markers (but NOT class annotations). | |
| getInjectables | back to summary |
|---|---|
| public Map | |
| getJsonKeyAccessor | back to summary |
|---|---|
public AnnotatedMember getJsonKeyAccessor()
| |
| getJsonValueAccessor | back to summary |
|---|---|
public AnnotatedMember getJsonValueAccessor()
| |
| getObjectIdInfo | back to summary |
|---|---|
| public ObjectIdInfo getObjectIdInfo() Accessor to find out whether type specified requires inclusion of Object Identifier. | |
| getPotentialCreators | back to summary |
|---|---|
| public PotentialCreators getPotentialCreators() | |
| getProperties | back to summary |
|---|---|
| public List | |
| getPropertyMap | back to summary |
|---|---|
| protected Map | |
| getType | back to summary |
|---|---|
| public JavaType getType() | |
| isRecordType | back to summary |
|---|---|
public boolean isRecordType()
| |
| reportProblem | back to summary |
|---|---|
| protected void reportProblem(String msg, Object... args) | |