public class AnnotatedTypeCopierWithReplacement extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AnnotatedTypeCopierWithReplacement.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 |
---|
AnnotatedTypeCopierWithReplacement() |
Modifier and Type | Method and Description |
---|---|
static AnnotatedTypeMirror |
replace(AnnotatedTypeMirror type,
Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> replacementMap)
Return a copy of type after making the specified replacements.
|
public static AnnotatedTypeMirror replace(AnnotatedTypeMirror type, Map<? extends AnnotatedTypeMirror,? extends AnnotatedTypeMirror> replacementMap)
type
- the type that will be copied with replaced componentsreplacementMap
- a mapping of referenceToReplace => referenceOfReplacement