Annotation Interface VisibilityOptions


@Documented @Retention(SOURCE) @Target({TYPE,CONSTRUCTOR,METHOD}) public @interface VisibilityOptions
Marker annotation used in the context of AST transformations to provide a custom visibility.
Since:
2.5.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the visibility to apply to generated constructors.
    Returns the identifier used to match other annotations that reference these options.
    Returns the visibility to apply to generated methods.
    Returns the visibility to apply to generated types.
    Returns the default visibility to apply when no more specific member is set.
  • Element Details

    • value

      Visibility value
      Returns the default visibility to apply when no more specific member is set. Defaults to Visibility.UNDEFINED.
      Returns:
      the default visibility
      Default:
      UNDEFINED
    • id

      String id
      Returns the identifier used to match other annotations that reference these options. Defaults to Undefined.STRING, meaning no identifier.
      Returns:
      the visibility options identifier
      Default:
      "<DummyUndefinedMarkerString-DoNotUse>"
    • type

      Returns the visibility to apply to generated types. Defaults to Visibility.UNDEFINED.
      Returns:
      the type visibility
      Default:
      UNDEFINED
    • method

      Visibility method
      Returns the visibility to apply to generated methods. Defaults to Visibility.UNDEFINED.
      Returns:
      the method visibility
      Default:
      UNDEFINED
    • constructor

      Visibility constructor
      Returns the visibility to apply to generated constructors. Defaults to Visibility.UNDEFINED.
      Returns:
      the constructor visibility
      Default:
      UNDEFINED