Package: groovy.transform.options

## [Java] Enum Visibility

- groovy.transform.options.Visibility

-     public enum Visibility
      extends Enum

  Indicates the visibility of a node.

  Since:
    2.5.0

- - ### Enum Constants Summary

    Enum constants classes
    Enum constant | Description
    --- | ---
    `PACKAGE_PRIVATE` | Package-private visibility.
    `PRIVATE` | Private visibility.
    `PROTECTED` | Protected visibility.
    `PUBLIC` | Public visibility.
    `UNDEFINED` | Marker indicating that no explicit visibility was requested.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public int` | `getModifier()` Returns the JVM modifier flag for this visibility.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Enum` | `compareTo, compareTo, describeConstable, equals, getClass, getDeclaringClass, hashCode, name, notify, notifyAll, ordinal, toString, valueOf, wait, wait, wait`

- - ### Enum Constant Detail

    - #### Visibility PACKAGE_PRIVATE

      Package-private visibility.

    - #### Visibility PRIVATE

      Private visibility.

    - #### Visibility PROTECTED

      Protected visibility.

    - #### Visibility PUBLIC

      Public visibility.

    - #### Visibility UNDEFINED

      Marker indicating that no explicit visibility was requested.

  - ### Method Detail

    - #### public int getModifier()

      Returns the JVM modifier flag for this visibility.

      throws:
        UnsupportedOperationException if this value is UNDEFINED
      Returns:
        the modifier flag