< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/Modifier.java

Print this page

 60      * @since 1.8
 61      */
 62      DEFAULT,
 63     /** The modifier {@code static} */          STATIC,
 64 
 65     /**
 66      * The modifier {@code sealed}
 67      * @since 17
 68      */
 69     SEALED,
 70 
 71     /**
 72      * The modifier {@code non-sealed}
 73      * @since 17
 74      */
 75     NON_SEALED {
 76         public String toString() {
 77             return "non-sealed";
 78         }
 79     },







 80     /** The modifier {@code final} */           FINAL,
 81     /** The modifier {@code transient} */       TRANSIENT,
 82     /** The modifier {@code volatile} */        VOLATILE,
 83     /** The modifier {@code synchronized} */    SYNCHRONIZED,
 84     /** The modifier {@code native} */          NATIVE,
 85     /** The modifier {@code strictfp} */        STRICTFP;
 86 
 87     /**
 88      * Returns this modifier's name as defined in <cite>The
 89      * Java Language Specification</cite>.
 90      * The modifier name is the {@linkplain #name() name of the enum
 91      * constant} in lowercase and with any underscores ("{@code _}")
 92      * replaced with hyphens ("{@code -}").
 93      * @return the modifier's name
 94      */
 95     @Override
 96     public String toString() {
 97         return name().toLowerCase(java.util.Locale.US);
 98     }
 99 }

 60      * @since 1.8
 61      */
 62      DEFAULT,
 63     /** The modifier {@code static} */          STATIC,
 64 
 65     /**
 66      * The modifier {@code sealed}
 67      * @since 17
 68      */
 69     SEALED,
 70 
 71     /**
 72      * The modifier {@code non-sealed}
 73      * @since 17
 74      */
 75     NON_SEALED {
 76         public String toString() {
 77             return "non-sealed";
 78         }
 79     },
 80 
 81     /**
 82      * The modifier {@code value}
 83      * @since 18
 84      */
 85     VALUE,
 86 
 87     /** The modifier {@code final} */           FINAL,
 88     /** The modifier {@code transient} */       TRANSIENT,
 89     /** The modifier {@code volatile} */        VOLATILE,
 90     /** The modifier {@code synchronized} */    SYNCHRONIZED,
 91     /** The modifier {@code native} */          NATIVE,
 92     /** The modifier {@code strictfp} */        STRICTFP;
 93 
 94     /**
 95      * Returns this modifier's name as defined in <cite>The
 96      * Java Language Specification</cite>.
 97      * The modifier name is the {@linkplain #name() name of the enum
 98      * constant} in lowercase and with any underscores ("{@code _}")
 99      * replaced with hyphens ("{@code -}").
100      * @return the modifier's name
101      */
102     @Override
103     public String toString() {
104         return name().toLowerCase(java.util.Locale.US);
105     }
106 }
< prev index next >