public class InferenceResult extends LinkedHashMap<TypeVariable,InferredValue>
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)
Returns the set of targets that still don't have an inferred argument.
|
boolean |
isComplete(Set<TypeVariable> targets)
Returns true if we have inferred a concrete type for all 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)
targets
- type variables to checkpublic 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)