Class AnnotatedTypeCopierWithReplacement

java.lang.Object
org.checkerframework.framework.type.AnnotatedTypeCopierWithReplacement

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

    • AnnotatedTypeCopierWithReplacement

      public AnnotatedTypeCopierWithReplacement()
  • Method Details

    • replace

      public static AnnotatedTypeMirror replace(AnnotatedTypeMirror type, 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