public class PotentialCreator extends Object
Constructor and Description |
---|
PotentialCreator(AnnotatedWithParams cr,
com.fasterxml.jackson.annotation.JsonCreator.Mode cm) |
Modifier and Type | Method and Description |
---|---|
void |
assignPropertyDefs(List<? extends BeanPropertyDefinition> propertyDefs) |
AnnotatedWithParams |
creator() |
com.fasterxml.jackson.annotation.JsonCreator.Mode |
creatorMode() |
com.fasterxml.jackson.annotation.JsonCreator.Mode |
creatorModeOrDefault()
Same as
creatorMode() except that if null was to be
returned, will instead return JsonCreator.Mode.DEFAULT / |
PropertyName |
explicitName(int ix) |
boolean |
hasExplicitNames() |
boolean |
hasNameFor(int ix) |
boolean |
hasNameOrInjectForAllParams(MapperConfig<?> config) |
PropertyName |
implicitName(int ix) |
String |
implicitNameSimple(int ix) |
PotentialCreator |
introspectParamNames(MapperConfig<?> config) |
PotentialCreator |
introspectParamNames(MapperConfig<?> config,
PropertyName[] implicits)
Variant used when implicit names are known; such as case for JDK
Record types.
|
boolean |
isAnnotated() |
PotentialCreator |
overrideMode(com.fasterxml.jackson.annotation.JsonCreator.Mode mode)
Method that can be called to change the
creatorMode this
Creator has: typically used to "mark" Creator as JsonCreator.Mode.DELEGATING
or JsonCreator.Mode.PROPERTIES when further information is gathered). |
AnnotatedParameter |
param(int ix) |
int |
paramCount() |
BeanPropertyDefinition[] |
propertyDefs() |
String |
toString() |
public PotentialCreator(AnnotatedWithParams cr, com.fasterxml.jackson.annotation.JsonCreator.Mode cm)
public PotentialCreator overrideMode(com.fasterxml.jackson.annotation.JsonCreator.Mode mode)
creatorMode
this
Creator has: typically used to "mark" Creator as JsonCreator.Mode.DELEGATING
or JsonCreator.Mode.PROPERTIES
when further information is gathered).mode
- Mode to set creatorMode
topublic void assignPropertyDefs(List<? extends BeanPropertyDefinition> propertyDefs)
public PotentialCreator introspectParamNames(MapperConfig<?> config)
public PotentialCreator introspectParamNames(MapperConfig<?> config, PropertyName[] implicits)
public boolean isAnnotated()
public AnnotatedWithParams creator()
public com.fasterxml.jackson.annotation.JsonCreator.Mode creatorMode()
null
if not annotatedpublic com.fasterxml.jackson.annotation.JsonCreator.Mode creatorModeOrDefault()
creatorMode()
except that if null
was to be
returned, will instead return JsonCreator.Mode.DEFAULT
/public int paramCount()
public AnnotatedParameter param(int ix)
public boolean hasExplicitNames()
public boolean hasNameFor(int ix)
public boolean hasNameOrInjectForAllParams(MapperConfig<?> config)
public PropertyName explicitName(int ix)
public PropertyName implicitName(int ix)
public String implicitNameSimple(int ix)
public BeanPropertyDefinition[] propertyDefs()
Copyright © 2008–2024 FasterXML. All rights reserved.