public class InferenceSubstitution extends Scope.Substitutor implements Substitution
Substitution.NullSubstitution| Constructor and Description |
|---|
InferenceSubstitution(InferenceContext18 context) |
InferenceSubstitution(LookupEnvironment environment,
InferenceVariable[] variables,
InvocationSite site) |
| Modifier and Type | Method and Description |
|---|---|
InferenceSubstitution |
addContext(InferenceContext18 otherContext)
Answer a substitution that is able to substitute into inference variables of several inference contexts (outer & inner)
|
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
|
protected boolean |
isSameParameter(TypeBinding p1,
TypeBinding originalType) |
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 InferenceSubstitution addContext(InferenceContext18 otherContext)
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 boolean isSameParameter(TypeBinding p1, TypeBinding originalType)
protected 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