public class CreatorCollector extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
CreatorCollector.Vanilla |
Modifier and Type | Field and Description |
---|---|
protected BeanDescription |
_beanDesc |
protected boolean |
_canFixAccess |
protected AnnotatedWithParams[] |
_creators
Set of creators we have collected so far
|
protected CreatorProperty[] |
_delegateArgs |
protected int |
_explicitCreators
Bitmask of creators that were explicitly marked as creators; false for auto-detected
(ones included base on naming and/or visibility, not annotation)
|
protected boolean |
_hasNonDefaultCreator |
protected AnnotatedParameter |
_incompleteParameter |
protected CreatorProperty[] |
_propertyBasedArgs |
protected static int |
C_BOOLEAN |
protected static int |
C_DEFAULT |
protected static int |
C_DELEGATE |
protected static int |
C_DOUBLE |
protected static int |
C_INT |
protected static int |
C_LONG |
protected static int |
C_PROPS |
protected static int |
C_STRING |
protected static String[] |
TYPE_DESCS |
Constructor and Description |
---|
CreatorCollector(BeanDescription beanDesc,
boolean canFixAccess) |
Modifier and Type | Method and Description |
---|---|
void |
addBooleanCreator(AnnotatedWithParams creator)
Deprecated.
|
void |
addBooleanCreator(AnnotatedWithParams creator,
boolean explicit) |
void |
addDelegatingCreator(AnnotatedWithParams creator,
boolean explicit,
CreatorProperty[] injectables) |
void |
addDelegatingCreator(AnnotatedWithParams creator,
CreatorProperty[] injectables)
Deprecated.
|
void |
addDoubleCreator(AnnotatedWithParams creator)
Deprecated.
|
void |
addDoubleCreator(AnnotatedWithParams creator,
boolean explicit) |
void |
addIncompeteParameter(AnnotatedParameter parameter) |
void |
addIntCreator(AnnotatedWithParams creator)
Deprecated.
|
void |
addIntCreator(AnnotatedWithParams creator,
boolean explicit) |
void |
addLongCreator(AnnotatedWithParams creator)
Deprecated.
|
void |
addLongCreator(AnnotatedWithParams creator,
boolean explicit) |
void |
addPropertyCreator(AnnotatedWithParams creator,
boolean explicit,
CreatorProperty[] properties) |
void |
addPropertyCreator(AnnotatedWithParams creator,
CreatorProperty[] properties)
Deprecated.
|
void |
addStringCreator(AnnotatedWithParams creator)
Deprecated.
|
void |
addStringCreator(AnnotatedWithParams creator,
boolean explicit) |
ValueInstantiator |
constructValueInstantiator(DeserializationConfig config) |
boolean |
hasDefaultCreator() |
void |
setDefaultCreator(AnnotatedWithParams creator)
Method called to indicate the default creator: no-arguments
constructor or factory method that is called to instantiate
a value before populating it with data.
|
protected AnnotatedWithParams |
verifyNonDup(AnnotatedWithParams newOne,
int typeIndex)
Deprecated.
|
protected void |
verifyNonDup(AnnotatedWithParams newOne,
int typeIndex,
boolean explicit) |
protected static final int C_DEFAULT
protected static final int C_STRING
protected static final int C_INT
protected static final int C_LONG
protected static final int C_DOUBLE
protected static final int C_BOOLEAN
protected static final int C_DELEGATE
protected static final int C_PROPS
protected static final String[] TYPE_DESCS
protected final BeanDescription _beanDesc
protected final boolean _canFixAccess
protected final AnnotatedWithParams[] _creators
protected int _explicitCreators
protected boolean _hasNonDefaultCreator
protected CreatorProperty[] _delegateArgs
protected CreatorProperty[] _propertyBasedArgs
protected AnnotatedParameter _incompleteParameter
public CreatorCollector(BeanDescription beanDesc, boolean canFixAccess)
public ValueInstantiator constructValueInstantiator(DeserializationConfig config)
public void setDefaultCreator(AnnotatedWithParams creator)
creator
- Creator method; no-arguments constructor or static
factory method.public void addStringCreator(AnnotatedWithParams creator, boolean explicit)
public void addIntCreator(AnnotatedWithParams creator, boolean explicit)
public void addLongCreator(AnnotatedWithParams creator, boolean explicit)
public void addDoubleCreator(AnnotatedWithParams creator, boolean explicit)
public void addBooleanCreator(AnnotatedWithParams creator, boolean explicit)
public void addDelegatingCreator(AnnotatedWithParams creator, boolean explicit, CreatorProperty[] injectables)
public void addPropertyCreator(AnnotatedWithParams creator, boolean explicit, CreatorProperty[] properties)
public void addIncompeteParameter(AnnotatedParameter parameter)
@Deprecated public void addStringCreator(AnnotatedWithParams creator)
@Deprecated public void addIntCreator(AnnotatedWithParams creator)
@Deprecated public void addLongCreator(AnnotatedWithParams creator)
@Deprecated public void addDoubleCreator(AnnotatedWithParams creator)
@Deprecated public void addBooleanCreator(AnnotatedWithParams creator)
@Deprecated public void addDelegatingCreator(AnnotatedWithParams creator, CreatorProperty[] injectables)
@Deprecated public void addPropertyCreator(AnnotatedWithParams creator, CreatorProperty[] properties)
@Deprecated protected AnnotatedWithParams verifyNonDup(AnnotatedWithParams newOne, int typeIndex)
public boolean hasDefaultCreator()
protected void verifyNonDup(AnnotatedWithParams newOne, int typeIndex, boolean explicit)
Copyright © 2014-2015 FasterXML. All Rights Reserved.