Package groovy.transform

# 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
  `Visibility`
  `constructor`
  Returns the visibility to apply to generated constructors.
  `String`
  `id`
  Returns the identifier used to match other annotations that reference these options.
  `Visibility`
  `method`
  Returns the visibility to apply to generated methods.
  `Visibility`
  `type`
  Returns the visibility to apply to generated types.
  `Visibility`
  `value`
  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

    Visibility 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