Annotation Interface TypeMigration


@Retention(SOURCE) @Target(TYPE) public @interface TypeMigration
Indicates that a Refaster rule or group of Refaster rules is intended to migrate away from the indicated type.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The type migrated away from.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The signatures of public methods and constructors that are not (yet) migrated by the annotated Refaster rule(s).
  • Element Details

    • of

      Class<?> of
      The type migrated away from.
      Returns:
      The type generally used in the BeforeTemplate methods of annotated Refaster rule(s).
    • unmigratedMethods

      String[] unmigratedMethods
      The signatures of public methods and constructors that are not (yet) migrated by the annotated Refaster rule(s).
      Returns:
      A possibly empty enumeration of method and constructor signatures, formatted according to Signatures.prettyMethodSignature(com.sun.tools.javac.code.Symbol.ClassSymbol, com.sun.tools.javac.code.Symbol.MethodSymbol).
      Default:
      {}