JavaScript is disabled on your browser.
Package: groovy.transform

[Java] Enum SealedMode


  • public enum SealedMode
    extends Enum 

    Intended mode to use for sealed classes when using the @Sealed annotation (or sealed keyword).

    Since:
    4.0.0
    See Also:
    Sealed

    • Enum Constant Detail

      • SealedMode AUTO

        Produce native sealed classes when compiling for a suitable target bytecode (JDK17+) and automatically emulate the concept on earlier JDKs.

      • SealedMode EMULATE

        Indicate the sealed nature using annotations. This allows sealed hierarchies in earlier JDKs but for integration purposes won't be recognised by Java.

      • SealedMode NATIVE

        Produce Java-like code with sealed nature indicated by "native" bytecode information (JEP 360/397/409). Produces a compile-time error when used on earlier JDKs.

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /