< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Flags.java

Print this page




 307      * Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources.
 308      */
 309     public static final long HAS_RESOURCE = 1L<<56;
 310 
 311     /**
 312      * Flag for synthesized default constructors of anonymous classes that have an enclosing expression.
 313      */
 314     public static final long ANONCONSTR_BASED = 1L<<57;
 315 
 316     /**
 317      * Flag that marks finalize block as body-only, should not be copied into catch clauses.
 318      * Used to implement try-with-resources.
 319      */
 320     public static final long BODY_ONLY_FINALIZE = 1L<<17; //blocks only
 321 
 322     /**
 323      * Flag to indicate the given ParamSymbol has a user-friendly name filled.
 324      */
 325     public static final long NAME_FILLED = 1L<<58; //ParamSymbols only
 326 










 327     /** Modifier masks.
 328      */
 329     public static final int
 330         AccessFlags           = PUBLIC | PROTECTED | PRIVATE,
 331         LocalClassFlags       = FINAL | ABSTRACT | STRICTFP | ENUM | SYNTHETIC,
 332         MemberClassFlags      = LocalClassFlags | INTERFACE | AccessFlags,
 333         ClassFlags            = LocalClassFlags | INTERFACE | PUBLIC | ANNOTATION,
 334         InterfaceVarFlags     = FINAL | STATIC | PUBLIC,
 335         VarFlags              = AccessFlags | FINAL | STATIC |
 336                                 VOLATILE | TRANSIENT | ENUM,
 337         ConstructorFlags      = AccessFlags,
 338         InterfaceMethodFlags  = ABSTRACT | PUBLIC,
 339         MethodFlags           = AccessFlags | ABSTRACT | STATIC | NATIVE |
 340                                 SYNCHRONIZED | FINAL | STRICTFP;
 341     public static final long
 342         ExtendedStandardFlags       = (long)StandardFlags | DEFAULT,
 343         ModifierFlags               = ((long)StandardFlags & ~INTERFACE) | DEFAULT,
 344         InterfaceMethodMask         = ABSTRACT | PRIVATE | STATIC | PUBLIC | STRICTFP | DEFAULT,
 345         AnnotationTypeElementMask   = ABSTRACT | PUBLIC,
 346         LocalVarFlags               = FINAL | PARAMETER,


 424         HYPOTHETICAL(Flags.HYPOTHETICAL),
 425         PROPRIETARY(Flags.PROPRIETARY),
 426         UNION(Flags.UNION),
 427         EFFECTIVELY_FINAL(Flags.EFFECTIVELY_FINAL),
 428         CLASH(Flags.CLASH),
 429         AUXILIARY(Flags.AUXILIARY),
 430         NOT_IN_PROFILE(Flags.NOT_IN_PROFILE),
 431         BAD_OVERRIDE(Flags.BAD_OVERRIDE),
 432         SIGNATURE_POLYMORPHIC(Flags.SIGNATURE_POLYMORPHIC),
 433         THROWS(Flags.THROWS),
 434         LAMBDA_METHOD(Flags.LAMBDA_METHOD),
 435         TYPE_TRANSLATED(Flags.TYPE_TRANSLATED),
 436         MODULE(Flags.MODULE),
 437         AUTOMATIC_MODULE(Flags.AUTOMATIC_MODULE),
 438         SYSTEM_MODULE(Flags.SYSTEM_MODULE),
 439         DEPRECATED_ANNOTATION(Flags.DEPRECATED_ANNOTATION),
 440         DEPRECATED_REMOVAL(Flags.DEPRECATED_REMOVAL),
 441         HAS_RESOURCE(Flags.HAS_RESOURCE),
 442         POTENTIALLY_AMBIGUOUS(Flags.POTENTIALLY_AMBIGUOUS),
 443         ANONCONSTR_BASED(Flags.ANONCONSTR_BASED),
 444         NAME_FILLED(Flags.NAME_FILLED);


 445 
 446         Flag(long flag) {
 447             this.value = flag;
 448             this.lowercaseName = StringUtils.toLowerCase(name());
 449         }
 450 
 451         @Override
 452         public String toString() {
 453             return lowercaseName;
 454         }
 455 
 456         final long value;
 457         final String lowercaseName;
 458     }
 459 
 460 }


 307      * Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources.
 308      */
 309     public static final long HAS_RESOURCE = 1L<<56;
 310 
 311     /**
 312      * Flag for synthesized default constructors of anonymous classes that have an enclosing expression.
 313      */
 314     public static final long ANONCONSTR_BASED = 1L<<57;
 315 
 316     /**
 317      * Flag that marks finalize block as body-only, should not be copied into catch clauses.
 318      * Used to implement try-with-resources.
 319      */
 320     public static final long BODY_ONLY_FINALIZE = 1L<<17; //blocks only
 321 
 322     /**
 323      * Flag to indicate the given ParamSymbol has a user-friendly name filled.
 324      */
 325     public static final long NAME_FILLED = 1L<<58; //ParamSymbols only
 326 
 327     /**
 328      * Flag to indicate the given variable is a match binding variable.
 329      */
 330     public static final long MATCH_BINDING = 1L<<59;
 331 
 332     /**
 333      * A flag to indicate a match binding variable whose scope extends after the current statement.
 334      */
 335     public static final long MATCH_BINDING_TO_OUTER = 1L<<60;
 336 
 337     /** Modifier masks.
 338      */
 339     public static final int
 340         AccessFlags           = PUBLIC | PROTECTED | PRIVATE,
 341         LocalClassFlags       = FINAL | ABSTRACT | STRICTFP | ENUM | SYNTHETIC,
 342         MemberClassFlags      = LocalClassFlags | INTERFACE | AccessFlags,
 343         ClassFlags            = LocalClassFlags | INTERFACE | PUBLIC | ANNOTATION,
 344         InterfaceVarFlags     = FINAL | STATIC | PUBLIC,
 345         VarFlags              = AccessFlags | FINAL | STATIC |
 346                                 VOLATILE | TRANSIENT | ENUM,
 347         ConstructorFlags      = AccessFlags,
 348         InterfaceMethodFlags  = ABSTRACT | PUBLIC,
 349         MethodFlags           = AccessFlags | ABSTRACT | STATIC | NATIVE |
 350                                 SYNCHRONIZED | FINAL | STRICTFP;
 351     public static final long
 352         ExtendedStandardFlags       = (long)StandardFlags | DEFAULT,
 353         ModifierFlags               = ((long)StandardFlags & ~INTERFACE) | DEFAULT,
 354         InterfaceMethodMask         = ABSTRACT | PRIVATE | STATIC | PUBLIC | STRICTFP | DEFAULT,
 355         AnnotationTypeElementMask   = ABSTRACT | PUBLIC,
 356         LocalVarFlags               = FINAL | PARAMETER,


 434         HYPOTHETICAL(Flags.HYPOTHETICAL),
 435         PROPRIETARY(Flags.PROPRIETARY),
 436         UNION(Flags.UNION),
 437         EFFECTIVELY_FINAL(Flags.EFFECTIVELY_FINAL),
 438         CLASH(Flags.CLASH),
 439         AUXILIARY(Flags.AUXILIARY),
 440         NOT_IN_PROFILE(Flags.NOT_IN_PROFILE),
 441         BAD_OVERRIDE(Flags.BAD_OVERRIDE),
 442         SIGNATURE_POLYMORPHIC(Flags.SIGNATURE_POLYMORPHIC),
 443         THROWS(Flags.THROWS),
 444         LAMBDA_METHOD(Flags.LAMBDA_METHOD),
 445         TYPE_TRANSLATED(Flags.TYPE_TRANSLATED),
 446         MODULE(Flags.MODULE),
 447         AUTOMATIC_MODULE(Flags.AUTOMATIC_MODULE),
 448         SYSTEM_MODULE(Flags.SYSTEM_MODULE),
 449         DEPRECATED_ANNOTATION(Flags.DEPRECATED_ANNOTATION),
 450         DEPRECATED_REMOVAL(Flags.DEPRECATED_REMOVAL),
 451         HAS_RESOURCE(Flags.HAS_RESOURCE),
 452         POTENTIALLY_AMBIGUOUS(Flags.POTENTIALLY_AMBIGUOUS),
 453         ANONCONSTR_BASED(Flags.ANONCONSTR_BASED),
 454         NAME_FILLED(Flags.NAME_FILLED),
 455         MATCH_BINDING(Flags.MATCH_BINDING),
 456         MATCH_BINDING_TO_OUTER(Flags.MATCH_BINDING_TO_OUTER);
 457 
 458         Flag(long flag) {
 459             this.value = flag;
 460             this.lowercaseName = StringUtils.toLowerCase(name());
 461         }
 462 
 463         @Override
 464         public String toString() {
 465             return lowercaseName;
 466         }
 467 
 468         final long value;
 469         final String lowercaseName;
 470     }
 471 
 472 }
< prev index next >