This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Types. | |
| pack-priv Map | |
| pack-priv Map | |
| pack-priv Infer | |
| pack-priv List | inferencevars
list of inference vars in this context |
| pack-priv InferenceContext | |
| pack-priv Types | |
| pack-priv List | undetvars
list of inference vars as undet vars |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addFreeTypeListener(List<Type> types, Infer.
Add custom hook for performing post-inference action |
| pack-priv void | |
| pack-priv Type | asInstType(Type t)
Replace all free variables in a given type with corresponding instantiated types - if one or more free variable has not been fully instantiated, it will still be available in the resulting type. |
| pack-priv List | |
| public final Type | |
| public final Type | asUndetVar(Type t)
Replace all free variables in a given type with corresponding undet vars (used ahead of subtyping/compatibility checks to allow propagation of inference constraints). |
| pack-priv final List | |
| pack-priv final List | |
| pack-priv Type | |
| pack-priv void | |
| pack-priv void | |
| private List | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv final List | |
| pack-priv final List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv InferenceContext | |
| pack-priv void | |
| pack-priv void | |
| pack-priv List | restvars()
returns the list of uninstantiated variables (as type-variables) in this inference context |
| public void | |
| public List | |
| private void | |
| public void | |
| public void | |
| public void | |
| pack-priv List | |
| public String | |
| public List | |
| pack-priv Type |
| asTypeVarFun | back to summary |
|---|---|
| pack-priv Types. | |
| captureTypeCache | back to summary |
|---|---|
| pack-priv Map<JCTree, Type> captureTypeCache | |
| freeTypeListeners | back to summary |
|---|---|
| pack-priv Map<Infer. | |
| infer | back to summary |
|---|---|
| pack-priv Infer infer | |
| inferencevars | back to summary |
|---|---|
| pack-priv List<Type> inferencevars list of inference vars in this context | |
| parentIC | back to summary |
|---|---|
| pack-priv InferenceContext parentIC | |
| types | back to summary |
|---|---|
| pack-priv Types types | |
| undetvars | back to summary |
|---|---|
| pack-priv List<Type> undetvars list of inference vars as undet vars | |
| InferenceContext | back to summary |
|---|---|
| public InferenceContext(Infer infer, List<Type> inferencevars) | |
| InferenceContext | back to summary |
|---|---|
| public InferenceContext(Infer infer, List<Type> inferencevars, List<Type> undetvars) | |
| addFreeTypeListener | back to summary |
|---|---|
| pack-priv void addFreeTypeListener(List<Type> types, Infer. Add custom hook for performing post-inference action | |
| addVar | back to summary |
|---|---|
| pack-priv void addVar(Type. add a new inference var to this inference context | |
| asInstType | back to summary |
|---|---|
| pack-priv Type asInstType(Type t) Replace all free variables in a given type with corresponding instantiated types - if one or more free variable has not been fully instantiated, it will still be available in the resulting type. | |
| asInstTypes | back to summary |
|---|---|
| pack-priv List | |
| asTypeVar | back to summary |
|---|---|
| public final Type asTypeVar(Type t) Replace all undet vars in a given type with corresponding free variables | |
| asUndetVar | back to summary |
|---|---|
| public final Type asUndetVar(Type t) Replace all free variables in a given type with corresponding undet vars (used ahead of subtyping/compatibility checks to allow propagation of inference constraints). | |
| asUndetVars | back to summary |
|---|---|
| pack-priv final List | |
| boundedVars | back to summary |
|---|---|
| pack-priv final List Get list of bounded inference variables (where bound is other than declared bounds). | |
| cachedCapture | back to summary |
|---|---|
| pack-priv Type cachedCapture(JCTree tree, Type t, boolean readOnly) | |
| dupTo | back to summary |
|---|---|
| pack-priv void dupTo(final InferenceContext that) Copy variable in this inference context to the given context | |
| dupTo | back to summary |
|---|---|
| pack-priv void dupTo(final InferenceContext that, boolean clone) | |
| filterVars | back to summary |
|---|---|
| private List | |
| free | back to summary |
|---|---|
| pack-priv final boolean free(Type t) is this type free? | |
| free | back to summary |
|---|---|
| pack-priv final boolean free(List<Type> ts) | |
| freeVarsIn | back to summary |
|---|---|
| pack-priv final List Returns a list of free variables in a given type | |
| freeVarsIn | back to summary |
|---|---|
| pack-priv final List | |
| inferenceVars | back to summary |
|---|---|
| pack-priv List returns the list of free variables (as type-variables) in this inference context | |
| instTypes | back to summary |
|---|---|
| pack-priv List | |
| instvars | back to summary |
|---|---|
| pack-priv List returns the list of instantiated variables (as type-variables) in this inference context | |
| min | back to summary |
|---|---|
| pack-priv InferenceContext min(List<Type> roots, boolean shouldSolve, Warner warn) | |
| notifyChange | back to summary |
|---|---|
| pack-priv void notifyChange() Mark the inference context as complete and trigger evaluation of all deferred checks. | |
| notifyChange | back to summary |
|---|---|
| pack-priv void notifyChange(List<Type> inferredVars) | |
| restvars | back to summary |
|---|---|
| pack-priv List returns the list of uninstantiated variables (as type-variables) in this inference context | |
| rollback | back to summary |
|---|---|
| public void rollback(List<Type> saved_undet) Restore the state of this inference context to the previous known checkpoint. Consider that the number of saved undetermined variables can be different to the current amount. This is because new captured variables could have been added. | |
| save | back to summary |
|---|---|
| public List Save the state of this inference context | |
| solve | back to summary |
|---|---|
| private void solve(Infer. Solve with given graph strategy. | |
| solve | back to summary |
|---|---|
| public void solve(Warner warn) Solve all variables in this context. | |
| solve | back to summary |
|---|---|
| public void solve(final List<Type> vars, Warner warn) Solve all variables in the given list. | |
| solveAny | back to summary |
|---|---|
| public void solveAny(List<Type> varsToSolve, Warner warn) Solve at least one variable in given list. | |
| solveBasic | back to summary |
|---|---|
| pack-priv List | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| undetVars | back to summary |
|---|---|
| public List returns the list of undetermined variables in this inference context | |
| update | back to summary |
|---|---|
| pack-priv Type update(Type t) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Set | |
| pack-priv Set | |
| pack-priv Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv void | |
| public Void | visitArrayType(Type.
Overrides com. Implements com.
|
| public Void | visitClassType(Type.
Overrides com. Implements com.
|
| public Void | |
| public Void | visitTypeVar(Type.
Overrides com. Implements com.
|
| public Void | visitUndetVar(Type.
Overrides com. Implements com.
|
| public Void |
| equiv | back to summary |
|---|---|
| pack-priv Set<Type> equiv | |
| min | back to summary |
|---|---|
| pack-priv Set<Type> min | |
| minMap | back to summary |
|---|---|
| pack-priv Map<Type, Set<Type>> minMap | |
| ReachabilityVisitor | back to summary |
|---|---|
| pack-priv ReachabilityVisitor() | |
| isEquiv | back to summary |
|---|---|
| pack-priv boolean isEquiv(Type. | |
| scan | back to summary |
|---|---|
| pack-priv void scan(List<Type> roots) | |
| visitArrayType | back to summary |
|---|---|
| public Void visitArrayType(Type. Overrides com. Implements com.
| |
| visitClassType | back to summary |
|---|---|
| public Void visitClassType(Type. Overrides com. Implements com.
| |
| visitType | back to summary |
|---|---|
| public Void visitType(Type t, Void _unused) Implements com.
| |
| visitTypeVar | back to summary |
|---|---|
| public Void visitTypeVar(Type. Overrides com. Implements com.
| |
| visitUndetVar | back to summary |
|---|---|
| public Void visitUndetVar(Type. Overrides com. Implements com.
| |
| visitWildcardType | back to summary |
|---|---|
| public Void visitWildcardType(Type. Overrides com. Implements com.
| |