langtools/src/share/classes/com/sun/tools/javac/code/Flags.java
changeset 24792 24452ca131a3
parent 22163 3651128c74eb
child 24793 bb58a9f1ae10
equal deleted inserted replaced
24652:4a09f5d30be8 24792:24452ca131a3
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2014, 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
   294     public static final long
   294     public static final long
   295         ExtendedStandardFlags       = (long)StandardFlags | DEFAULT,
   295         ExtendedStandardFlags       = (long)StandardFlags | DEFAULT,
   296         ModifierFlags               = ((long)StandardFlags & ~INTERFACE) | DEFAULT,
   296         ModifierFlags               = ((long)StandardFlags & ~INTERFACE) | DEFAULT,
   297         InterfaceMethodMask         = ABSTRACT | STATIC | PUBLIC | STRICTFP | DEFAULT,
   297         InterfaceMethodMask         = ABSTRACT | STATIC | PUBLIC | STRICTFP | DEFAULT,
   298         AnnotationTypeElementMask   = ABSTRACT | PUBLIC,
   298         AnnotationTypeElementMask   = ABSTRACT | PUBLIC,
   299         LocalVarFlags               = FINAL | PARAMETER;
   299         LocalVarFlags               = FINAL | PARAMETER,
   300 
   300         BridgeMethodMask            = AccessFlags | FINAL | STRICTFP;
   301 
   301 
   302     public static Set<Modifier> asModifierSet(long flags) {
   302     public static Set<Modifier> asModifierSet(long flags) {
   303         Set<Modifier> modifiers = modifierSets.get(flags);
   303         Set<Modifier> modifiers = modifierSets.get(flags);
   304         if (modifiers == null) {
   304         if (modifiers == null) {
   305             modifiers = java.util.EnumSet.noneOf(Modifier.class);
   305             modifiers = java.util.EnumSet.noneOf(Modifier.class);