public static class Scope.Substitutor
extends java.lang.Object
| Constructor and Description |
|---|
Substitutor() |
| Modifier and Type | Method and Description |
|---|---|
ReferenceBinding[] |
substitute(Substitution substitution,
ReferenceBinding[] originalTypes)
Returns an array of types, where original types got substituted given a substitution.
|
TypeBinding |
substitute(Substitution substitution,
TypeBinding originalType)
Returns a type, where original type was substituted using the receiver
parameterized type.
|
TypeBinding[] |
substitute(Substitution substitution,
TypeBinding[] originalTypes)
Returns an array of types, where original types got substituted given a substitution.
|
public ReferenceBinding[] substitute(Substitution substitution, ReferenceBinding[] originalTypes)
public TypeBinding substitute(Substitution substitution, TypeBinding originalType)
Substitution.isRawSubstitution()),
all parameterized types are converted to raw types.
Cf. 4.8: "The type of a constructor (8.8), instance method (8.4, 9.4),
or non-static field (8.3) M of a raw type C that is not inherited from its
superclasses or superinterfaces is the raw type that corresponds to the erasure
of its type in the generic declaration corresponding to C."public TypeBinding[] substitute(Substitution substitution, TypeBinding[] originalTypes)