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, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Map<String,TypedValue> variables
public VariableMapImpl(VariableMapImpl map)
public VariableMapImpl()
public VariableMap putValue(String name, Object value)
putValue
in interface VariableMap
public VariableMap putValueTyped(String name, TypedValue value)
putValueTyped
in interface VariableMap
public <T> T getValue(String name, Class<T> type)
getValue
in interface VariableMap
public <T extends TypedValue> T getValueTyped(String name)
getValueTyped
in interface VariableMap
public 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)
VariableContext
resolve
in interface VariableContext
variableName
- the name of the variable to resolve.public boolean containsVariable(String variableName)
VariableContext
containsVariable
in interface VariableContext
variableName
- the name of the variable to checkpublic VariableContext asVariableContext()
VariableMap
asVariableContext
in interface VariableMap
Copyright © 2021. All rights reserved.