public class TypeVariableSubstitutorAdapter<Q> extends TypeVariableSubstitutor
TypeVariableSubstitutor.Visitor
Constructor and Description |
---|
TypeVariableSubstitutorAdapter(TypeVariableSubstitutor<Q> underlying,
TypeMirrorConverter<Q> converter) |
Modifier and Type | Method and Description |
---|---|
protected AnnotatedTypeMirror |
substituteTypeVariable(AnnotatedTypeMirror argument,
AnnotatedTypeMirror.AnnotatedTypeVariable use)
Given the types of a type parameter declaration, the argument to that type parameter declaration,
and a given use of that declaration, return a substitute for the use with the correct annotations.
|
protected QualifiedTypeMirror<Q> |
superSubstituteTypeVariable(QualifiedTypeMirror<Q> argument,
QualifiedTypeMirror.QualifiedTypeVariable<Q> use) |
substitute
public TypeVariableSubstitutorAdapter(TypeVariableSubstitutor<Q> underlying, TypeMirrorConverter<Q> converter)
protected AnnotatedTypeMirror substituteTypeVariable(AnnotatedTypeMirror argument, AnnotatedTypeMirror.AnnotatedTypeVariable use)
TypeVariableSubstitutor
substituteTypeVariable
in class TypeVariableSubstitutor
argument
- the argument to declaration (this will be a value in typeParamToArg)use
- the use that is being replacedprotected QualifiedTypeMirror<Q> superSubstituteTypeVariable(QualifiedTypeMirror<Q> argument, QualifiedTypeMirror.QualifiedTypeVariable<Q> use)