Class AnnotatedTypeCopierWithReplacement


  • public class AnnotatedTypeCopierWithReplacement
    extends java.lang.Object
    Duplicates annotated types and replaces components according to a replacement map.
    • Constructor Detail

      • AnnotatedTypeCopierWithReplacement

        public AnnotatedTypeCopierWithReplacement()
    • Method Detail

      • replace

        public static AnnotatedTypeMirror replace​(AnnotatedTypeMirror type,
                                                  java.util.IdentityHashMap<? extends AnnotatedTypeMirror,​? extends AnnotatedTypeMirror> replacementMap)
        Return a copy of type after making the specified replacements.
        Parameters:
        type - the type that will be copied with replaced components
        replacementMap - a mapping of referenceToReplace => referenceOfReplacement
        Returns:
        a duplicate of type in which every reference that was a key in replacementMap has been replaced by its corresponding value