public class InferenceSubstitution extends Scope.Substitutor implements Substitution
| Constructor and Description |
|---|
InferenceSubstitution(InferenceContext18 context) |
InferenceSubstitution(LookupEnvironment environment,
InferenceVariable[] variables,
InvocationSite site) |
| Modifier and Type | Method and Description |
|---|---|
LookupEnvironment |
environment()
Returns the lookup environment
|
protected TypeBinding |
getP(int i)
Get the type corresponding to the ith inference variable.
|
boolean |
isRawSubstitution()
Returns true for raw substitution
|
TypeBinding |
substitute(Substitution substitution,
TypeBinding originalType)
Override method
Scope.Substitutor.substitute(Substitution, TypeBinding),
to add substitution of types other than type variables. |
TypeBinding |
substitute(TypeVariableBinding typeVariable)
Returns the type substitute for a given type variable, or itself
if no substitution got performed.
|
substitute, substitutepublic InferenceSubstitution(LookupEnvironment environment, InferenceVariable[] variables, InvocationSite site)
public InferenceSubstitution(InferenceContext18 context)
public TypeBinding substitute(Substitution substitution, TypeBinding originalType)
Scope.Substitutor.substitute(Substitution, TypeBinding),
to add substitution of types other than type variables.substitute in class Scope.Substitutorprotected TypeBinding getP(int i)
public TypeBinding substitute(TypeVariableBinding typeVariable)
Substitutionsubstitute in interface Substitutionpublic LookupEnvironment environment()
Substitutionenvironment in interface Substitutionpublic boolean isRawSubstitution()
SubstitutionisRawSubstitution in interface Substitution