protected class TypeVariableSubstitutor.Visitor extends AnnotatedTypeCopier
TypeVariableSubstitutor
.copyAnnotations, visitingExecutableTypeParam
Constructor and Description |
---|
Visitor(Map<TypeVariable,AnnotatedTypeMirror> typeParamToArg,
boolean copyArgument)
Creates the Visitor.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends AnnotatedTypeMirror> |
makeCopy(T original) |
AnnotatedTypeMirror |
visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable original,
IdentityHashMap<AnnotatedTypeMirror,AnnotatedTypeMirror> originalToCopy)
Visits a type variable.
|
makeOrReturnCopy, maybeCopyPrimaryAnnotations, visit, visit, visitArray, visitDeclared, visitExecutable, visitIntersection, visitNoType, visitNull, visitPrimitive, visitUnion, visitWildcard
public Visitor(Map<TypeVariable,AnnotatedTypeMirror> typeParamToArg, boolean copyArgument)
typeParamToArg
- mapping from TypeVariable to the AnnotatedTypeMirror that will replace
itcopyArgument
- whether or not a copy of type argument should be substitutedprotected <T extends AnnotatedTypeMirror> T makeCopy(T original)
makeCopy
in class AnnotatedTypeCopier
public AnnotatedTypeMirror visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable original, IdentityHashMap<AnnotatedTypeMirror,AnnotatedTypeMirror> originalToCopy)
AnnotatedTypeVisitor
visitTypeVariable
in interface AnnotatedTypeVisitor<AnnotatedTypeMirror,IdentityHashMap<AnnotatedTypeMirror,AnnotatedTypeMirror>>
visitTypeVariable
in class AnnotatedTypeCopier
original
- the type to visitoriginalToCopy
- a visitor-specified parameter