protected static class AnnotatedTypeReplacer.Visitor extends AnnotatedTypeCopier
All types NOT in the replacement map are duplicated as per AnnotatedTypeCopier.visit
copyAnnotations, visitingExecutableTypeParam
Constructor and Description |
---|
Visitor(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings) |
Modifier and Type | Method and Description |
---|---|
AnnotatedTypeMirror |
visit(AnnotatedTypeMirror type)
A Convenience method equivalent to
v.visit(t, null) . |
AnnotatedTypeMirror |
visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable original,
IdentityHashMap<AnnotatedTypeMirror,AnnotatedTypeMirror> originalToCopy)
Visits a type variable.
|
makeCopy, makeOrReturnCopy, maybeCopyPrimaryAnnotations, visit, visitArray, visitDeclared, visitExecutable, visitIntersection, visitNoType, visitNull, visitPrimitive, visitUnion, visitWildcard
public Visitor(Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> mappings)
public AnnotatedTypeMirror visit(AnnotatedTypeMirror type)
AnnotatedTypeVisitor
v.visit(t, null)
.visit
in interface AnnotatedTypeVisitor<AnnotatedTypeMirror,IdentityHashMap<AnnotatedTypeMirror,AnnotatedTypeMirror>>
visit
in class AnnotatedTypeCopier
type
- the type to visitpublic 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