langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Flags.java
changeset 41637 7b24b4c32ee6
parent 41154 ed8625a2f0f1
child 42407 f3702cff2933
equal deleted inserted replaced
41636:086a3c7a6b56 41637:7b24b4c32ee6
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   111 
   111 
   112     /*****************************************
   112     /*****************************************
   113      * Internal compiler flags (no bits in the lower 16).
   113      * Internal compiler flags (no bits in the lower 16).
   114      *****************************************/
   114      *****************************************/
   115 
   115 
   116     /** Flag is set if symbol is deprecated.
   116     /** Flag is set if symbol is deprecated.  See also DEPRECATED_REMOVAL.
   117      */
   117      */
   118     public static final int DEPRECATED   = 1<<17;
   118     public static final int DEPRECATED   = 1<<17;
   119 
   119 
   120     /** Flag is set for a variable symbol if the variable's definition
   120     /** Flag is set for a variable symbol if the variable's definition
   121      *  has an initializer part.
   121      *  has an initializer part.
   290 
   290 
   291     /**
   291     /**
   292      * Flag to indicate the given ModuleSymbol is a system module.
   292      * Flag to indicate the given ModuleSymbol is a system module.
   293      */
   293      */
   294     public static final long SYSTEM_MODULE = 1L<<53;
   294     public static final long SYSTEM_MODULE = 1L<<53;
       
   295 
       
   296     /**
       
   297      * Flag to indicate the given symbol has been deprecated and marked for removal.
       
   298      */
       
   299     public static final long DEPRECATED_REMOVAL = 1L<<54;
   295 
   300 
   296     /** Modifier masks.
   301     /** Modifier masks.
   297      */
   302      */
   298     public static final int
   303     public static final int
   299         AccessFlags           = PUBLIC | PROTECTED | PRIVATE,
   304         AccessFlags           = PUBLIC | PROTECTED | PRIVATE,
   400         BAD_OVERRIDE(Flags.BAD_OVERRIDE),
   405         BAD_OVERRIDE(Flags.BAD_OVERRIDE),
   401         SIGNATURE_POLYMORPHIC(Flags.SIGNATURE_POLYMORPHIC),
   406         SIGNATURE_POLYMORPHIC(Flags.SIGNATURE_POLYMORPHIC),
   402         THROWS(Flags.THROWS),
   407         THROWS(Flags.THROWS),
   403         LAMBDA_METHOD(Flags.LAMBDA_METHOD),
   408         LAMBDA_METHOD(Flags.LAMBDA_METHOD),
   404         TYPE_TRANSLATED(Flags.TYPE_TRANSLATED),
   409         TYPE_TRANSLATED(Flags.TYPE_TRANSLATED),
   405         MODULE(Flags.MODULE);
   410         MODULE(Flags.MODULE),
       
   411         DEPRECATED_REMOVAL(Flags.DEPRECATED_REMOVAL);
   406 
   412 
   407         Flag(long flag) {
   413         Flag(long flag) {
   408             this.value = flag;
   414             this.value = flag;
   409             this.lowercaseName = StringUtils.toLowerCase(name());
   415             this.lowercaseName = StringUtils.toLowerCase(name());
   410         }
   416         }