java.lang.Object
tools.jackson.databind.introspect.PotentialCreator
Information about a single Creator (constructor or factory method),
kept during property introspection.
- Since:
- 2.18
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignPropertyDefs(List<? extends BeanPropertyDefinition> propertyDefs) creator()Same ascreatorMode()except that ifnullwas to be returned, will instead returnJsonCreator.Mode.DEFAULT/explicitName(int ix) booleanbooleanhasNameFor(int ix) booleanhasNameOrInjectForAllParams(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.booleanoverrideMode(JsonCreator.Mode mode) Method that can be called to change thecreatorModethis Creator has: typically used to "mark" Creator asJsonCreator.Mode.DELEGATINGorJsonCreator.Mode.PROPERTIESwhen further information is gathered).param(int ix) inttoString()
-
Constructor Details
-
PotentialCreator
-
-
Method Details
-
overrideMode
Method that can be called to change thecreatorModethis Creator has: typically used to "mark" Creator asJsonCreator.Mode.DELEGATINGorJsonCreator.Mode.PROPERTIESwhen further information is gathered).- Parameters:
mode- Mode to setcreatorModeto- 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
- Returns:
- Mode declared for this Creator by annotation, if any;
nullif not annotated
-
creatorModeOrDefault
Same ascreatorMode()except that ifnullwas 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
-