public class VariableMapImpl extends Object implements VariableMap, Serializable, VariableContext
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,TypedValue> |
variables |
| Constructor and Description |
|---|
VariableMapImpl() |
VariableMapImpl(Map<String,Object> map) |
VariableMapImpl(VariableMapImpl map) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asValueMap() |
VariableContext |
asVariableContext()
Interprets the variable map as variable context
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
boolean |
containsVariable(String variableName)
Checks whether a variable with the given name is resolve through this context.
|
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object obj) |
Object |
get(Object key) |
<T> T |
getValue(String name,
Class<T> type) |
<T extends TypedValue> |
getValueTyped(String name) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> m) |
VariableMap |
putValue(String name,
Object value) |
VariableMap |
putValueTyped(String name,
TypedValue value) |
Object |
remove(Object key) |
TypedValue |
resolve(String variableName)
Resolve a value in this context.
|
int |
size() |
String |
toString() |
Collection<Object> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Map<String,TypedValue> variables
public VariableMapImpl(VariableMapImpl map)
public VariableMapImpl()
public VariableMap putValue(String name, Object value)
putValue in interface VariableMappublic VariableMap putValueTyped(String name, TypedValue value)
putValueTyped in interface VariableMappublic <T> T getValue(String name, Class<T> type)
getValue in interface VariableMappublic <T extends TypedValue> T getValueTyped(String name)
getValueTyped in interface VariableMappublic boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public boolean equals(Object obj)
public int hashCode()
public TypedValue resolve(String variableName)
VariableContextresolve in interface VariableContextvariableName - the name of the variable to resolve.public boolean containsVariable(String variableName)
VariableContextcontainsVariable in interface VariableContextvariableName - the name of the variable to checkpublic VariableContext asVariableContext()
VariableMapasVariableContext in interface VariableMapCopyright © 2021. All rights reserved.