< prev index next >

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

Print this page

 46  *
 47  * @author Joseph D. Darcy
 48  * @author Scott Seligman
 49  * @author Peter von der Ah&eacute;
 50  * @since 1.6
 51  */
 52 
 53 public enum Modifier {
 54 
 55     // Note java.lang.reflect.Modifier includes INTERFACE, but that's a VMism.
 56 
 57     /** The modifier {@code public} */          PUBLIC,
 58     /** The modifier {@code protected} */       PROTECTED,
 59     /** The modifier {@code private} */         PRIVATE,
 60     /** The modifier {@code abstract} */        ABSTRACT,
 61     /**
 62      * The modifier {@code default}
 63      * @since 1.8
 64      */
 65      DEFAULT,






 66     /** The modifier {@code static} */          STATIC,
 67 
 68     /**
 69      * The modifier {@code sealed}
 70      * @since 17
 71      */
 72     SEALED,
 73 
 74     /**
 75      * The modifier {@code non-sealed}
 76      * @since 17
 77      */
 78     NON_SEALED {
 79         public String toString() {
 80             return "non-sealed";
 81         }
 82     },
 83     /** The modifier {@code final} */           FINAL,
 84     /** The modifier {@code transient} */       TRANSIENT,
 85     /** The modifier {@code volatile} */        VOLATILE,

 46  *
 47  * @author Joseph D. Darcy
 48  * @author Scott Seligman
 49  * @author Peter von der Ah&eacute;
 50  * @since 1.6
 51  */
 52 
 53 public enum Modifier {
 54 
 55     // Note java.lang.reflect.Modifier includes INTERFACE, but that's a VMism.
 56 
 57     /** The modifier {@code public} */          PUBLIC,
 58     /** The modifier {@code protected} */       PROTECTED,
 59     /** The modifier {@code private} */         PRIVATE,
 60     /** The modifier {@code abstract} */        ABSTRACT,
 61     /**
 62      * The modifier {@code default}
 63      * @since 1.8
 64      */
 65      DEFAULT,
 66     /**
 67      * The modifier {@code primitive}
 68      * @since 1.17
 69      */
 70     PRIMITIVE,
 71 
 72     /** The modifier {@code static} */          STATIC,
 73 
 74     /**
 75      * The modifier {@code sealed}
 76      * @since 17
 77      */
 78     SEALED,
 79 
 80     /**
 81      * The modifier {@code non-sealed}
 82      * @since 17
 83      */
 84     NON_SEALED {
 85         public String toString() {
 86             return "non-sealed";
 87         }
 88     },
 89     /** The modifier {@code final} */           FINAL,
 90     /** The modifier {@code transient} */       TRANSIENT,
 91     /** The modifier {@code volatile} */        VOLATILE,
< prev index next >