Package: groovy.transform

## [Java] Annotation Type Sealed

- groovy.transform.Sealed

-     @Documented
      @Retention(RetentionPolicy.RUNTIME)
      @Target({ElementType.TYPE})
      @Incubating
      @GroovyASTTransformationClass({
              "org.codehaus.groovy.transform.SealedASTTransformation",
              "org.codehaus.groovy.transform.SealedCompletionASTTransformation"})
      public @interface Sealed

  Class annotation used to assist in the creation of sealed classes.

  Since:
    4.0.0

- - ### Element Summary

    Optional Element Summary
    Type | Name and Description
    --- | ---
    `Class[]` | `permittedSubclasses` List of the permitted subclasses.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Element Detail

    - #### public Class[] permittedSubclasses

      List of the permitted subclasses.

      Default:
        {}