public class InferenceResult extends java.util.LinkedHashMap<javax.lang.model.type.TypeVariable,InferredValue>
Target type variable ⇒ inferred type or target
)Constructor and Description |
---|
InferenceResult() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<javax.lang.model.type.TypeVariable> |
getRemainingTargets(java.util.Set<javax.lang.model.type.TypeVariable> allTargets,
boolean inferredTypesOnly) |
boolean |
isComplete(java.util.Set<javax.lang.model.type.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(javax.lang.model.type.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.
|
java.util.Map<javax.lang.model.type.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
public java.util.Set<javax.lang.model.type.TypeVariable> getRemainingTargets(java.util.Set<javax.lang.model.type.TypeVariable> allTargets, boolean inferredTypesOnly)
public boolean isComplete(java.util.Set<javax.lang.model.type.TypeVariable> targets)
public void resolveChainedTargets()
public java.util.Map<javax.lang.model.type.TypeVariable,AnnotatedTypeMirror> toAtmMap()
public void mergeSubordinate(InferenceResult subordinate)
subordinate
- a result which we wish to merge into this resultprotected InferredValue.InferredType mergeTarget(javax.lang.model.type.TypeVariable target, InferenceResult subordinate)