public class AnnotatedTypeReplacer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AnnotatedTypeReplacer.Visitor
AnnotatedTypeCopier maintains a mapping of typeVisited ⇒ copyOfTypeVisited
When a reference, typeVisited, is encountered again, it will use the recorded reference,
copyOfTypeVisited, instead of generating a new copy of typeVisited.
|
Constructor and Description |
---|
AnnotatedTypeReplacer() |
Modifier and Type | Method and Description |
---|---|
static AnnotatedTypeMirror |
replace(AnnotatedTypeMirror type,
java.util.Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> replacementMap)
Return a copy of type after making the specified replacements.
|
public static AnnotatedTypeMirror replace(AnnotatedTypeMirror type, java.util.Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> replacementMap)
type
- the type that will be copied with replaced componentsreplacementMap
- a mapping of referenceToReplace ⇒
referenceOfReplacement