public class MapRecipe extends AbstractRecipe
Modifier and Type | Class and Description |
---|---|
static class |
MapRecipe.DummyDictionaryAsMap |
private static class |
MapRecipe.UpdateMap |
private static class |
MapRecipe.UpdateValue |
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Object[]> |
entries |
private java.util.EnumSet<Option> |
options |
private java.lang.Class |
typeClass |
private java.lang.String |
typeName |
Constructor and Description |
---|
MapRecipe() |
MapRecipe(java.lang.Class type) |
MapRecipe(java.util.Map<?,?> map) |
MapRecipe(MapRecipe mapRecipe) |
MapRecipe(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
allow(Option option) |
boolean |
canCreate(java.lang.reflect.Type type) |
void |
disallow(Option option) |
java.util.List<Recipe> |
getConstructorRecipes() |
private java.lang.Class |
getMap(java.lang.Class type) |
java.util.List<Recipe> |
getNestedRecipes() |
private java.lang.Class |
getType(java.lang.reflect.Type expectedType) |
protected java.lang.Object |
internalCreate(java.lang.reflect.Type expectedType,
boolean lazyRefAllowed) |
void |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map<?,?> map) |
create, create, create, getName, getPriority, setName, toString
private final java.util.List<java.lang.Object[]> entries
private java.lang.String typeName
private java.lang.Class typeClass
private final java.util.EnumSet<Option> options
public MapRecipe()
public MapRecipe(java.lang.String type)
public MapRecipe(java.lang.Class type)
public MapRecipe(java.util.Map<?,?> map)
public MapRecipe(MapRecipe mapRecipe)
public void allow(Option option)
public void disallow(Option option)
public java.util.List<Recipe> getNestedRecipes()
getNestedRecipes
in interface Recipe
getNestedRecipes
in class AbstractRecipe
public java.util.List<Recipe> getConstructorRecipes()
getConstructorRecipes
in interface Recipe
getConstructorRecipes
in class AbstractRecipe
public boolean canCreate(java.lang.reflect.Type type)
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
internalCreate
in class AbstractRecipe
ConstructionException
private java.lang.Class getType(java.lang.reflect.Type expectedType)
private java.lang.Class getMap(java.lang.Class type)
public void put(java.lang.Object key, java.lang.Object value)
public void putAll(java.util.Map<?,?> map)