Class PotentialCreator
java.lang.Object
com.fasterxml.jackson.databind.introspect.PotentialCreator
Information about a single Creator (constructor or factory method),
kept during property introspection.
- Since:
- 2.18
-
Constructor Summary
ConstructorsConstructorDescriptionPotentialCreator
(AnnotatedWithParams cr, com.fasterxml.jackson.annotation.JsonCreator.Mode cm) -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignPropertyDefs
(List<? extends BeanPropertyDefinition> propertyDefs) creator()
com.fasterxml.jackson.annotation.JsonCreator.Mode
com.fasterxml.jackson.annotation.JsonCreator.Mode
Same ascreatorMode()
except that ifnull
was to be returned, will instead returnJsonCreator.Mode.DEFAULT
/explicitName
(int ix) boolean
boolean
hasNameFor
(int ix) boolean
hasNameOrInjectForAllParams
(MapperConfig<?> config) implicitName
(int ix) implicitNameSimple
(int ix) introspectParamNames
(MapperConfig<?> config) introspectParamNames
(MapperConfig<?> config, PropertyName[] implicits) Variant used when implicit names are known; such as case for JDK Record types.boolean
overrideMode
(com.fasterxml.jackson.annotation.JsonCreator.Mode mode) Method that can be called to change thecreatorMode
this Creator has: typically used to "mark" Creator asJsonCreator.Mode.DELEGATING
orJsonCreator.Mode.PROPERTIES
when further information is gathered).param
(int ix) int
toString()
-
Constructor Details
-
PotentialCreator
public PotentialCreator(AnnotatedWithParams cr, com.fasterxml.jackson.annotation.JsonCreator.Mode cm)
-
-
Method Details
-
overrideMode
Method that can be called to change thecreatorMode
this Creator has: typically used to "mark" Creator asJsonCreator.Mode.DELEGATING
orJsonCreator.Mode.PROPERTIES
when further information is gathered).- Parameters:
mode
- Mode to setcreatorMode
to- Returns:
- This creator instance
-
assignPropertyDefs
-
introspectParamNames
-
introspectParamNames
Variant used when implicit names are known; such as case for JDK Record types. -
isAnnotated
public boolean isAnnotated() -
creator
-
creatorMode
public com.fasterxml.jackson.annotation.JsonCreator.Mode creatorMode()- Returns:
- Mode declared for this Creator by annotation, if any;
null
if not annotated
-
creatorModeOrDefault
public com.fasterxml.jackson.annotation.JsonCreator.Mode creatorModeOrDefault()Same ascreatorMode()
except that ifnull
was to be returned, will instead returnJsonCreator.Mode.DEFAULT
/ -
paramCount
public int paramCount() -
param
-
hasExplicitNames
public boolean hasExplicitNames() -
hasNameFor
public boolean hasNameFor(int ix) -
hasNameOrInjectForAllParams
-
explicitName
-
implicitName
-
implicitNameSimple
-
propertyDefs
-
toString
-