Package org.stringtemplate.v4.misc
Class TypeRegistry<V>
- java.lang.Object
-
- org.stringtemplate.v4.misc.TypeRegistry<V>
-
-
Constructor Summary
Constructors Constructor Description TypeRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<Class<?>,V>>entrySet()Vget(Object key)protected voidhandleAlteration(Class<?> clazz)booleanisEmpty()Set<Class<?>>keySet()Vput(Class<?> key, V value)voidputAll(Map<? extends Class<?>,? extends V> m)Vremove(Object key)intsize()Collection<V>values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<Class<?>,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<Class<?>,V>
-
get
public V get(Object key)
- Specified by:
getin interfaceMap<Class<?>,V>- Throws:
AmbiguousMatchException- if the registry contains more than value mapped to a maximally-specific type from whichkeyis derived.
-
handleAlteration
protected void handleAlteration(Class<?> clazz)
-
-