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, get, removeEldestEntry
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
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)