public class InferenceResult extends LinkedHashMap<TypeVariable,InferredValue>
Target type variable ⇒ inferred type or target
)AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
InferenceResult() |
Modifier and Type | Method and Description |
---|---|
Set<TypeVariable> |
getRemainingTargets(Set<TypeVariable> allTargets,
boolean inferredTypesOnly) |
boolean |
isComplete(Set<TypeVariable> targets) |
void |
mergeSubordinate(InferenceResult subordinate)
Merges values in subordinate into this result, keeping the results form any type arguments
that were already contained by this InferenceResult.
|
protected InferredValue.InferredType |
mergeTarget(TypeVariable target,
InferenceResult subordinate)
Performs a merge for a specific target, we keep only results that lead to a concrete type.
|
void |
resolveChainedTargets()
If we had a set of inferred results, (e.g.
|
Map<TypeVariable,AnnotatedTypeMirror> |
toAtmMap() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public Set<TypeVariable> getRemainingTargets(Set<TypeVariable> allTargets, boolean inferredTypesOnly)
public boolean isComplete(Set<TypeVariable> targets)
public void resolveChainedTargets()
public Map<TypeVariable,AnnotatedTypeMirror> toAtmMap()
public void mergeSubordinate(InferenceResult subordinate)
subordinate
- a result which we wish to merge into this resultprotected InferredValue.InferredType mergeTarget(TypeVariable target, InferenceResult subordinate)