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 ElementsModifier and TypeOptional ElementDescriptionReturns 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 valueReturns the default visibility to apply when no more specific member is set. Defaults toVisibility.UNDEFINED.- Returns:
- the default visibility
- Default:
- UNDEFINED
-
id
String idReturns the identifier used to match other annotations that reference these options. Defaults toUndefined.STRING, meaning no identifier.- Returns:
- the visibility options identifier
- Default:
- "<DummyUndefinedMarkerString-DoNotUse>"
-
type
Visibility typeReturns the visibility to apply to generated types. Defaults toVisibility.UNDEFINED.- Returns:
- the type visibility
- Default:
- UNDEFINED
-
method
Visibility methodReturns the visibility to apply to generated methods. Defaults toVisibility.UNDEFINED.- Returns:
- the method visibility
- Default:
- UNDEFINED
-
constructor
Visibility constructorReturns the visibility to apply to generated constructors. Defaults toVisibility.UNDEFINED.- Returns:
- the constructor visibility
- Default:
- UNDEFINED
-