Package io.codemodder

Annotation Interface CodemodParameter


@Retention(RUNTIME) @Qualifier @Target(PARAMETER) public @interface CodemodParameter
Describes a codemod parameter.
  • Element Details

    • question

      String question
      The question to ask the user when they are prompted for this parameter.
    • name

      String name
      The name of the parameter.
    • label

      String label
      A description of the parameter.
    • defaultValue

      String defaultValue
      The default value if the user didn't specify one.
    • validationPattern

      String validationPattern
      A regex pattern that describes the valid values for this parameter.
    • type

      The type of the parameter. This is used to determine how to parse the value from the user.
      Default:
      STRING