Package manifold.ext
Class TypeVarToTypeMap
- java.lang.Object
-
- manifold.ext.TypeVarToTypeMap
-
public class TypeVarToTypeMap extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTypeVarToTypeMap.ITypeVarMatcher<E>
-
Field Summary
Fields Modifier and Type Field Description static TypeVarToTypeMapEMPTY_MAP
-
Constructor Summary
Constructors Constructor Description TypeVarToTypeMap()TypeVarToTypeMap(TypeVarToTypeMap from)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(TypeVariable tvType)Set<Map.Entry<TypeVariable,manifold.rt.api.util.Pair<Type,Boolean>>>entrySet()Typeget(TypeVariable tvType)<E> TypegetByMatcher(E tv, TypeVarToTypeMap.ITypeVarMatcher<E> matcher)TypegetByString(String tv)manifold.rt.api.util.Pair<Type,Boolean>getPair(TypeVariable tvType)booleanisEmpty()booleanisInferredForCovariance(TypeVariable tv)booleanisReparsing()booleanisStructural()Set<TypeVariable>keySet()Typeput(TypeVariable tvType, Type type)Typeput(TypeVariable tvType, Type type, boolean bReverse)voidputAll(TypeVarToTypeMap from)voidputAllAndInferred(TypeVarToTypeMap from)Typeremove(TypeVariable tvType)voidsetInferredForCovariance(TypeVariable tv)voidsetReparsing(boolean bReparsing)voidsetStructural(boolean bStructural)intsize()Collection<manifold.rt.api.util.Pair<Type,Boolean>>values()
-
-
-
Field Detail
-
EMPTY_MAP
public static final TypeVarToTypeMap EMPTY_MAP
-
-
Constructor Detail
-
TypeVarToTypeMap
public TypeVarToTypeMap()
-
TypeVarToTypeMap
public TypeVarToTypeMap(TypeVarToTypeMap from)
-
-
Method Detail
-
get
public Type get(TypeVariable tvType)
-
getPair
public manifold.rt.api.util.Pair<Type,Boolean> getPair(TypeVariable tvType)
-
getByMatcher
public <E> Type getByMatcher(E tv, TypeVarToTypeMap.ITypeVarMatcher<E> matcher)
-
containsKey
public boolean containsKey(TypeVariable tvType)
-
put
public Type put(TypeVariable tvType, Type type)
-
put
public Type put(TypeVariable tvType, Type type, boolean bReverse)
-
putAll
public void putAll(TypeVarToTypeMap from)
-
putAllAndInferred
public void putAllAndInferred(TypeVarToTypeMap from)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
keySet
public Set<TypeVariable> keySet()
-
entrySet
public Set<Map.Entry<TypeVariable,manifold.rt.api.util.Pair<Type,Boolean>>> entrySet()
-
remove
public Type remove(TypeVariable tvType)
-
values
public Collection<manifold.rt.api.util.Pair<Type,Boolean>> values()
-
isStructural
public boolean isStructural()
-
setStructural
public void setStructural(boolean bStructural)
-
isInferredForCovariance
public boolean isInferredForCovariance(TypeVariable tv)
-
setInferredForCovariance
public void setInferredForCovariance(TypeVariable tv)
-
isReparsing
public boolean isReparsing()
-
setReparsing
public void setReparsing(boolean bReparsing)
-
-