APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.tools.javac.code

public Class Flags

extends Object
Class Inheritance
Imports
java.lang.annotation.Retention, .RetentionPolicy, java.util.Collections, .EnumSet, .Map, .Set, java.util.concurrent.ConcurrentHashMap, java.util.stream.Collectors, javax.lang.model.element.Modifier, com.sun.tools.javac.util.Assert

Access flags and other modifiers for Java classes and members.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
public static enum
public static @interface
public static @interface
public static @interface

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
AccessFlags

Modifier masks.

public static final int
ACYCLIC

Flag for class symbols to indicate it has been checked and found acyclic.

public static final long
ACYCLIC_ANN

Flag for annotation type symbols to indicate it has been checked and found acyclic.

public static final int
ANNOTATION

Flag that marks attribute interfaces, added in classfile v49.0.

public static final long
public static final int
ANONCONSTR

Flag for synthesized default constructors of anonymous classes.

public static final long
ANONCONSTR_BASED

Flag for synthesized default constructors of anonymous classes that have an enclosing expression.

public static final long
AUTOMATIC_MODULE

Flag to indicate the given ModuleSymbol is an automatic module.

public static final long
AUXILIARY

Flag that marks class as auxiliary, ie a non-public class following the public class in a source file, that could block implicit compilation.

public static final long
BAD_OVERRIDE

Flag that indicates that an override error has been detected by Check.

public static final int
BLOCK

Flag is set for compiler-generated anonymous method symbols that `own' an initializer block.

public static final long
BODY_ONLY_FINALIZE

Flag that marks finalize block as body-only, should not be copied into catch clauses.

public static final long
BRIDGE

Flag that marks bridge methods.

public static final long
CLASH

Flag that marks non-override equivalent methods with the same signature, or a conflicting match binding (BindingSymbol).

public static final int
CLASS_SEEN

Flag is set for class symbols if a class file was found for this class.

public static final int
ClassFlags

Modifier masks.

public static final long
COMPACT_RECORD_CONSTRUCTOR

Flag to mark a record constructor as a compact one

public static final int
COMPOUND

Flag is set for compiler-generated compound classes representing multiple variable bounds

public static final int
ConstructorFlags

Modifier masks.

public static final long
DEFAULT

Flag that marks either a default method or an interface containing default methods.

public static final int
DEPRECATED

Flag is set if symbol is deprecated.

public static final long
DEPRECATED_ANNOTATION

Flag to indicate the given symbol has a @Deprecated annotation.

public static final long
DEPRECATED_REMOVAL

Flag to indicate the given symbol has been deprecated and marked for removal.

public static final long
EFFECTIVELY_FINAL

Flag that marks an 'effectively final' local variable.

public static final int
ENUM

An enumeration type or an enumeration constant, added in classfile v49.0.

public static final int
EXISTS

Flag is set for package symbols if a package has a member or directory and therefore exists.

public static final long
public static final long
public static final long
public static final long
public static final long
FIELD_INIT_TYPE_ANNOTATIONS_QUEUED

Flag to indicate type annotations have been queued for field initializers.

public static final int
public static final int
FROM_SOURCE

Flag is set for ClassSymbols that are being compiled from source.

public static final int
GENERATED_MEMBER

Flag is set for compiler-generated record members, it could be applied to accessors and fields

public static final long
GENERATEDCONSTR

Flag that marks a generated default constructor.

public static final long
HAS_RESOURCE

Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources.

public static final int
HASINIT

Flag is set for a variable symbol if the variable's definition has an initializer part.

public static final long
HYPOTHETICAL

Flag that marks a hypothetical method that need not really be generated in the binary, but is present in the symbol table to simplify checking for erasure clashes - also used for 292 poly sig methods.

public static final int
IMPLICIT_CLASS

Class is an implicitly declared top level class.

public static final int
public static final int
InterfaceMethodFlags

Modifier masks.

public static final long
public static final int
InterfaceVarFlags

Modifier masks.

public static final long
LAMBDA_METHOD

Flag that marks a synthetic method body for a lambda expression

public static final int
LAMBDA_PARAMETER

A parameter of a lambda function.

public static final long
LOCAL_CAPTURE_FIELD

Flag that marks a synthetic local capture field in a local/anon class

public static final int
LocalClassFlags

Modifier masks.

public static final long
public static final int
LOCKED

Flag for class symbols is set and later re-set as a lock in Enter to detect cycles in the superclass/superinterface relations.

public static final int
MANDATED

Added in SE8, represents constructs implicitly declared in source.

public static final long
MATCH_BINDING

Flag to indicate the given variable is a match binding variable.

public static final long
MATCH_BINDING_TO_OUTER

A flag to indicate a match binding variable whose scope extends after the current statement.

public static final int
MemberClassFlags

Modifier masks.

public static final int
MemberStaticClassFlags

Modifier masks.

public static final int
MethodFlags

Modifier masks.

public static final long
private static final Map<Long, Set<Modifier>>
public static final long
MODULE

Flag to indicate class symbol is for module-info

public static final long
NAME_FILLED

Flag to indicate the given ParamSymbol has a user-friendly name filled.

public static final int
public static final long
NON_SEALED

Flag to indicate that the class/interface was declared with the non-sealed modifier.

public static final int
NOOUTERTHIS

Flag is set for nested classes that do not access instance members or `this' of an outer class and therefore don't need to be passed a this$n reference.

public static final long
NOT_IN_PROFILE

Flag that marks that a symbol is not available in the current profile

public static final long
PARAMETER

Flag that marks formal parameters.

public static final long
PREVIEW_API

Flag to indicate the API element in question is for a preview API.

public static final long
PREVIEW_REFLECTIVE

Flag to indicate the API element in question is for a preview API.

public static final int
public static final long
PROPRIETARY

Flag that marks an internal proprietary class.

public static final int
public static final int
public static final long
public static final long
RECORD

Flag to indicate that a class is a record.

public static final int
RecordMethodFlags

Modifier masks.

public static final long
RECOVERABLE

Flags an erroneous TypeSymbol as viable for recovery.

public static final long
REQUIRES_IDENTITY

Flag to indicate parameters that require identity.

public static final long
RESTRICTED

Flag to indicate restricted method declaration.

public static final long
SEALED

Flag to indicate sealed class/interface declaration.

public static final long
SIGNATURE_POLYMORPHIC

Flag that indicates a signature polymorphic method (292).

public static final int
SOURCE_SEEN

Flag is set for class symbols if a source file was found for this class.

public static final int
public static final int
public static final int
StaticLocalFlags

Modifier masks.

public static final int
public static final int
SUPER_OWNER_ATTRIBUTED

Flag to indicate the superclasses of this ClassSymbol has been attributed.

public static final int
public static final int
public static final long
SYSTEM_MODULE

Flag to indicate the given ModuleSymbol is a system module.

public static final long
THROWS

Flag that indicates that an inference variable is used in a 'throws' clause.

public static final int
public static final long
TYPE_TRANSLATED

Flag to control recursion in TransTypes

public static final int
UNATTRIBUTED

Flag for class symbols is set and later re-set to indicate that a class has been entered but has not yet been attributed.

public static final long
UNINITIALIZED_FIELD

Flag to mark a record field that was not initialized in the compact constructor

public static final long
UNION

Flag that marks a multi-catch parameter.

public static final long
VALUE_BASED

Flag to indicate the given ClassSymbol is a value based.

public static final int
VAR_VARIABLE

Variable with implicit/inferred type.

public static final long
VARARGS

Flag that marks varargs methods.

public static final int
VarFlags

Modifier masks.

public static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EnumSet<FlagsEnum>
asFlagSet(long flags)

public static Set<Modifier>
asModifierSet(long flags)

public static boolean
public static boolean
isEnum(Symbol symbol)

public static boolean
isStatic(Symbol symbol)

public static String
toSource(long flags)

Describe modifier flags as they might appear in source code, i.e., separated by spaces and in the order suggested by JLS 8.1.1.

public static String
toString(long flags)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ABSTRACTback to summary
public static final int ABSTRACT
Annotations
@Use:CLASS, METHOD
ACC_BRIDGEback to summary
public static final int ACC_BRIDGE
Annotations
@Use:METHOD
@NoToStringValue
ACC_MODULEback to summary
public static final int ACC_MODULE
Annotations
@Use:CLASS
@NoToStringValue
ACC_SUPERback to summary
public static final int ACC_SUPER
Annotations
@Use:CLASS
@NoToStringValue
ACC_VARARGSback to summary
public static final int ACC_VARARGS
Annotations
@Use:METHOD
@NoToStringValue
AccessFlagsback to summary
public static final int AccessFlags

Modifier masks.

Annotations
@NotFlag
ACYCLICback to summary
public static final int ACYCLIC

Flag for class symbols to indicate it has been checked and found acyclic.

Annotations
@Use:CLASS, METHOD, TYPE_VAR
ACYCLIC_ANNback to summary
public static final long ACYCLIC_ANN

Flag for annotation type symbols to indicate it has been checked and found acyclic.

Annotations
@Use:CLASS
ANNOTATIONback to summary
public static final int ANNOTATION

Flag that marks attribute interfaces, added in classfile v49.0.

Annotations
@Use:CLASS
AnnotationTypeElementMaskback to summary
public static final long AnnotationTypeElementMask
Annotations
@NotFlag
ANONCONSTRback to summary
public static final int ANONCONSTR

Flag for synthesized default constructors of anonymous classes.

Annotations
@Use:METHOD
ANONCONSTR_BASEDback to summary
public static final long ANONCONSTR_BASED

Flag for synthesized default constructors of anonymous classes that have an enclosing expression.

Annotations
@Use:METHOD
AUTOMATIC_MODULEback to summary
public static final long AUTOMATIC_MODULE

Flag to indicate the given ModuleSymbol is an automatic module.

Annotations
@Use:MODULE
AUXILIARYback to summary
public static final long AUXILIARY

Flag that marks class as auxiliary, ie a non-public class following the public class in a source file, that could block implicit compilation.

Annotations
@Use:CLASS
BAD_OVERRIDEback to summary
public static final long BAD_OVERRIDE

Flag that indicates that an override error has been detected by Check.

Annotations
@Use:METHOD
BLOCKback to summary
public static final int BLOCK

Flag is set for compiler-generated anonymous method symbols that `own' an initializer block.

Annotations
@Use:METHOD
BODY_ONLY_FINALIZEback to summary
public static final long BODY_ONLY_FINALIZE

Flag that marks finalize block as body-only, should not be copied into catch clauses. Used to implement try-with-resources.

Annotations
@Use:BLOCK
BRIDGEback to summary
public static final long BRIDGE

Flag that marks bridge methods.

Annotations
@Use:METHOD
CLASHback to summary
public static final long CLASH

Flag that marks non-override equivalent methods with the same signature, or a conflicting match binding (BindingSymbol).

Annotations
@Use:METHOD, VARIABLE
CLASS_SEENback to summary
public static final int CLASS_SEEN

Flag is set for class symbols if a class file was found for this class.

Annotations
@Use:CLASS
ClassFlagsback to summary
public static final int ClassFlags

Modifier masks.

Annotations
@NotFlag
COMPACT_RECORD_CONSTRUCTORback to summary
public static final long COMPACT_RECORD_CONSTRUCTOR

Flag to mark a record constructor as a compact one

Annotations
@Use:METHOD
COMPOUNDback to summary
public static final int COMPOUND

Flag is set for compiler-generated compound classes representing multiple variable bounds

Annotations
@Use:CLASS
ConstructorFlagsback to summary
public static final int ConstructorFlags

Modifier masks.

Annotations
@NotFlag
DEFAULTback to summary
public static final long DEFAULT

Flag that marks either a default method or an interface containing default methods.

Annotations
@Use:CLASS, METHOD
DEPRECATEDback to summary
public static final int DEPRECATED

Flag is set if symbol is deprecated. See also DEPRECATED_REMOVAL.

Annotations
@Use:CLASS, METHOD, MODULE, PACKAGE, TYPE_VAR, VARIABLE
DEPRECATED_ANNOTATIONback to summary
public static final long DEPRECATED_ANNOTATION

Flag to indicate the given symbol has a @Deprecated annotation.

Annotations
@Use:CLASS, METHOD, MODULE, PACKAGE, TYPE_VAR, VARIABLE
DEPRECATED_REMOVALback to summary
public static final long DEPRECATED_REMOVAL

Flag to indicate the given symbol has been deprecated and marked for removal.

Annotations
@Use:CLASS, METHOD, MODULE, PACKAGE, TYPE_VAR, VARIABLE
EFFECTIVELY_FINALback to summary
public static final long EFFECTIVELY_FINAL

Flag that marks an 'effectively final' local variable.

Annotations
@Use:VARIABLE
ENUMback to summary
public static final int ENUM

An enumeration type or an enumeration constant, added in classfile v49.0.

Annotations
@Use:CLASS, VARIABLE
EXISTSback to summary
public static final int EXISTS

Flag is set for package symbols if a package has a member or directory and therefore exists.

Annotations
@Use:CLASS, PACKAGE
ExtendedClassFlagsback to summary
public static final long ExtendedClassFlags
Annotations
@NotFlag
ExtendedMemberClassFlagsback to summary
public static final long ExtendedMemberClassFlags
Annotations
@NotFlag
ExtendedMemberStaticClassFlagsback to summary
public static final long ExtendedMemberStaticClassFlags
Annotations
@NotFlag
ExtendedStandardFlagsback to summary
public static final long ExtendedStandardFlags
Annotations
@NotFlag
FIELD_INIT_TYPE_ANNOTATIONS_QUEUEDback to summary
public static final long FIELD_INIT_TYPE_ANNOTATIONS_QUEUED

Flag to indicate type annotations have been queued for field initializers.

Annotations
@Use:VARIABLE
FINALback to summary
public static final int FINAL
Annotations
@Use:CLASS, METHOD, VARIABLE
FROM_SOURCEback to summary
public static final int FROM_SOURCE

Flag is set for ClassSymbols that are being compiled from source.

Annotations
@Use:CLASS
GENERATED_MEMBERback to summary
public static final int GENERATED_MEMBER

Flag is set for compiler-generated record members, it could be applied to accessors and fields

Annotations
@Use:METHOD, VARIABLE
GENERATEDCONSTRback to summary
public static final long GENERATEDCONSTR

Flag that marks a generated default constructor.

Annotations
@Use:METHOD
HAS_RESOURCEback to summary
public static final long HAS_RESOURCE

Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources.

Annotations
@Use:PACKAGE
HASINITback to summary
public static final int HASINIT

Flag is set for a variable symbol if the variable's definition has an initializer part.

Annotations
@Use:VARIABLE
HYPOTHETICALback to summary
public static final long HYPOTHETICAL

Flag that marks a hypothetical method that need not really be generated in the binary, but is present in the symbol table to simplify checking for erasure clashes - also used for 292 poly sig methods.

Annotations
@Use:METHOD
IMPLICIT_CLASSback to summary
public static final int IMPLICIT_CLASS

Class is an implicitly declared top level class.

Annotations
@Use:CLASS
INTERFACEback to summary
public static final int INTERFACE
Annotations
@Use:CLASS
InterfaceMethodFlagsback to summary
public static final int InterfaceMethodFlags

Modifier masks.

Annotations
@NotFlag
InterfaceMethodMaskback to summary
public static final long InterfaceMethodMask
Annotations
@NotFlag
InterfaceVarFlagsback to summary
public static final int InterfaceVarFlags

Modifier masks.

Annotations
@NotFlag
LAMBDA_METHODback to summary
public static final long LAMBDA_METHOD

Flag that marks a synthetic method body for a lambda expression

Annotations
@Use:METHOD
LAMBDA_PARAMETERback to summary
public static final int LAMBDA_PARAMETER

A parameter of a lambda function.

Annotations
@Use:VARIABLE
LOCAL_CAPTURE_FIELDback to summary
public static final long LOCAL_CAPTURE_FIELD

Flag that marks a synthetic local capture field in a local/anon class

Annotations
@Use:VARIABLE
LocalClassFlagsback to summary
public static final int LocalClassFlags

Modifier masks.

Annotations
@NotFlag
LocalVarFlagsback to summary
public static final long LocalVarFlags
Annotations
@NotFlag
LOCKEDback to summary
public static final int LOCKED

Flag for class symbols is set and later re-set as a lock in Enter to detect cycles in the superclass/superinterface relations. Similarly for constructor call cycle detection in Attr.

Annotations
@Use:CLASS, METHOD
MANDATEDback to summary
public static final int MANDATED

Added in SE8, represents constructs implicitly declared in source.

Annotations
@Use:MODULE, VARIABLE
MATCH_BINDINGback to summary
public static final long MATCH_BINDING

Flag to indicate the given variable is a match binding variable.

Annotations
@Use:VARIABLE
MATCH_BINDING_TO_OUTERback to summary
public static final long MATCH_BINDING_TO_OUTER

A flag to indicate a match binding variable whose scope extends after the current statement.

Annotations
@Use:VARIABLE
MemberClassFlagsback to summary
public static final int MemberClassFlags

Modifier masks.

Annotations
@NotFlag
MemberStaticClassFlagsback to summary
public static final int MemberStaticClassFlags

Modifier masks.

Annotations
@NotFlag
MethodFlagsback to summary
public static final int MethodFlags

Modifier masks.

Annotations
@NotFlag
ModifierFlagsback to summary
public static final long ModifierFlags
Annotations
@NotFlag
modifierSetsback to summary
private static final Map<Long, Set<Modifier>> modifierSets
MODULEback to summary
public static final long MODULE

Flag to indicate class symbol is for module-info

Annotations
@Use:CLASS
NAME_FILLEDback to summary
public static final long NAME_FILLED

Flag to indicate the given ParamSymbol has a user-friendly name filled.

Annotations
@Use:VARIABLE
NATIVEback to summary
public static final int NATIVE
Annotations
@Use:METHOD
NON_SEALEDback to summary
public static final long NON_SEALED

Flag to indicate that the class/interface was declared with the non-sealed modifier.

Annotations
@Use:CLASS
@CustomToStringValue:non-sealed
NOOUTERTHISback to summary
public static final int NOOUTERTHIS

Flag is set for nested classes that do not access instance members or `this' of an outer class and therefore don't need to be passed a this$n reference. This value is currently set only for anonymous classes in superclass constructor calls.

Todo

use this value for optimizing away this$n parameters in other cases.

Annotations
@Use:CLASS, VARIABLE
NOT_IN_PROFILEback to summary
public static final long NOT_IN_PROFILE

Flag that marks that a symbol is not available in the current profile

Annotations
@Use:CLASS
PARAMETERback to summary
public static final long PARAMETER

Flag that marks formal parameters.

Annotations
@Use:VARIABLE
PREVIEW_APIback to summary
public static final long PREVIEW_API

Flag to indicate the API element in question is for a preview API.

Annotations
@Use:CLASS, METHOD, MODULE, PACKAGE, TYPE_VAR, VARIABLE
PREVIEW_REFLECTIVEback to summary
public static final long PREVIEW_REFLECTIVE

Flag to indicate the API element in question is for a preview API.

Annotations
@Use:CLASS, METHOD, MODULE, PACKAGE, TYPE_VAR, VARIABLE
PRIVATEback to summary
public static final int PRIVATE
Annotations
@Use:CLASS, METHOD, VARIABLE
PROPRIETARYback to summary
public static final long PROPRIETARY

Flag that marks an internal proprietary class.

Annotations
@Use:CLASS
PROTECTEDback to summary
public static final int PROTECTED
Annotations
@Use:CLASS, METHOD, VARIABLE
PUBLICback to summary
public static final int PUBLIC
Annotations
@Use:CLASS, METHOD, VARIABLE
ReceiverParamFlagsback to summary
public static final long ReceiverParamFlags
Annotations
@NotFlag
RECORDback to summary
public static final long RECORD

Flag to indicate that a class is a record. The flag is also used to mark fields that are part of the state vector of a record and to mark the canonical constructor

Annotations
@Use:CLASS, VARIABLE, METHOD
RecordMethodFlagsback to summary
public static final int RecordMethodFlags

Modifier masks.

Annotations
@NotFlag
RECOVERABLEback to summary
public static final long RECOVERABLE

Flags an erroneous TypeSymbol as viable for recovery. TypeSymbols only.

Annotations
@Use:CLASS, TYPE_VAR
REQUIRES_IDENTITYback to summary
public static final long REQUIRES_IDENTITY

Flag to indicate parameters that require identity.

Annotations
@Use:VARIABLE
RESTRICTEDback to summary
public static final long RESTRICTED

Flag to indicate restricted method declaration.

Annotations
@Use:METHOD
SEALEDback to summary
public static final long SEALED

Flag to indicate sealed class/interface declaration.

Annotations
@Use:CLASS
SIGNATURE_POLYMORPHICback to summary
public static final long SIGNATURE_POLYMORPHIC

Flag that indicates a signature polymorphic method (292).

Annotations
@Use:METHOD
SOURCE_SEENback to summary
public static final int SOURCE_SEEN

Flag is set for class symbols if a source file was found for this class.

Annotations
@Use:CLASS
StandardFlagsback to summary
public static final int StandardFlags
Annotations
@NotFlag
STATICback to summary
public static final int STATIC
Annotations
@Use:BLOCK, CLASS, METHOD, VARIABLE
StaticLocalFlagsback to summary
public static final int StaticLocalFlags

Modifier masks.

Annotations
@NotFlag
STRICTFPback to summary
public static final int STRICTFP
Annotations
@Use:CLASS, METHOD
SUPER_OWNER_ATTRIBUTEDback to summary
public static final int SUPER_OWNER_ATTRIBUTED

Flag to indicate the superclasses of this ClassSymbol has been attributed.

Annotations
@Use:CLASS
SYNCHRONIZEDback to summary
public static final int SYNCHRONIZED
Annotations
@Use:METHOD
SYNTHETICback to summary
public static final int SYNTHETIC
Annotations
@Use:CLASS, METHOD, VARIABLE
SYSTEM_MODULEback to summary
public static final long SYSTEM_MODULE

Flag to indicate the given ModuleSymbol is a system module.

Annotations
@Use:MODULE
THROWSback to summary
public static final long THROWS

Flag that indicates that an inference variable is used in a 'throws' clause.

Annotations
@Use:TYPE_VAR
TRANSIENTback to summary
public static final int TRANSIENT
Annotations
@Use:VARIABLE
TYPE_TRANSLATEDback to summary
public static final long TYPE_TRANSLATED

Flag to control recursion in TransTypes

Annotations
@Use:CLASS
UNATTRIBUTEDback to summary
public static final int UNATTRIBUTED

Flag for class symbols is set and later re-set to indicate that a class has been entered but has not yet been attributed.

Annotations
@Use:CLASS
UNINITIALIZED_FIELDback to summary
public static final long UNINITIALIZED_FIELD

Flag to mark a record field that was not initialized in the compact constructor

Annotations
@Use:VARIABLE
UNIONback to summary
public static final long UNION

Flag that marks a multi-catch parameter.

Annotations
@Use:VARIABLE
VALUE_BASEDback to summary
public static final long VALUE_BASED

Flag to indicate the given ClassSymbol is a value based.

Annotations
@Use:CLASS
VAR_VARIABLEback to summary
public static final int VAR_VARIABLE

Variable with implicit/inferred type.

Annotations
@Use:VARIABLE
VARARGSback to summary
public static final long VARARGS

Flag that marks varargs methods.

Annotations
@Use:METHOD, VARIABLE
VarFlagsback to summary
public static final int VarFlags

Modifier masks.

Annotations
@NotFlag
VOLATILEback to summary
public static final int VOLATILE
Annotations
@Use:VARIABLE

Constructor Detail

Flagsback to summary
private Flags()

Method Detail

asFlagSetback to summary
public static EnumSet<FlagsEnum> asFlagSet(long flags)
asModifierSetback to summary
public static Set<Modifier> asModifierSet(long flags)
isConstantback to summary
public static boolean isConstant(Symbol.VarSymbol symbol)
isEnumback to summary
public static boolean isEnum(Symbol symbol)
isStaticback to summary
public static boolean isStatic(Symbol symbol)
toSourceback to summary
public static String toSource(long flags)

Describe modifier flags as they might appear in source code, i.e., separated by spaces and in the order suggested by JLS 8.1.1.

toStringback to summary
public static String toString(long flags)
com.sun.tools.javac.code back to summary

public @Interface Flags.CustomToStringValue

extends Annotation
Annotations
@Retention:RUNTIME

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()
com.sun.tools.javac.code back to summary

public final Enum Flags.FlagTarget

extends Enum<Flags.FlagTarget>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Flags.FlagTarget
BLOCK

This flag can appear the JCBlock.

public static final Flags.FlagTarget
CLASS

This flag can appear on ClassSymbols.

public static final Flags.FlagTarget
METHOD

This flag can appear on MethodSymbols.

public static final Flags.FlagTarget
MODULE

This flag can appear on ModuleSymbols.

public static final Flags.FlagTarget
PACKAGE

This flag can appear on PackageSymbols.

public static final Flags.FlagTarget
TYPE_VAR

This flag can appear on TypeVarSymbols.

public static final Flags.FlagTarget
VARIABLE

This flag can appear on VarSymbols, includes including ParamSymbol, and BindingSymbol.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Flags.FlagTarget
public static Flags.FlagTarget[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BLOCKback to summary
public static final Flags.FlagTarget BLOCK

This flag can appear the JCBlock.

CLASSback to summary
public static final Flags.FlagTarget CLASS

This flag can appear on ClassSymbols.

METHODback to summary
public static final Flags.FlagTarget METHOD

This flag can appear on MethodSymbols.

MODULEback to summary
public static final Flags.FlagTarget MODULE

This flag can appear on ModuleSymbols.

PACKAGEback to summary
public static final Flags.FlagTarget PACKAGE

This flag can appear on PackageSymbols.

TYPE_VARback to summary
public static final Flags.FlagTarget TYPE_VAR

This flag can appear on TypeVarSymbols.

VARIABLEback to summary
public static final Flags.FlagTarget VARIABLE

This flag can appear on VarSymbols, includes including ParamSymbol, and BindingSymbol.

Constructor Detail

FlagTargetback to summary
private FlagTarget()

Method Detail

valueOfback to summary
public static Flags.FlagTarget valueOf(String name)
valuesback to summary
public static Flags.FlagTarget[] values()
com.sun.tools.javac.code back to summary

public @Interface Flags.NotFlag

extends Annotation
Annotations
@Retention:RUNTIME

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
com.sun.tools.javac.code back to summary

public @Interface Flags.NoToStringValue

extends Annotation
Annotations
@Retention:RUNTIME

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
com.sun.tools.javac.code back to summary

public @Interface Flags.Use

extends Annotation
Annotations
@Retention:RUNTIME

Method Summary

Modifier and TypeMethod and Description
public Flags.FlagTarget[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Flags.FlagTarget[] value()