Annotation Interface Flag


@Retention(RUNTIME) @Target({TYPE,PARAMETER}) public @interface Flag
Declares one or more flag names for a parameter or type. Flags are optional markers (e.g. -silent, --force). If free is true, the flag can be present without an explicit value and will toggle to true.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • free

      boolean free
      Default:
      false