public class Flags extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
Flags.Flag |
Modifier and Type | Field and Description |
---|---|
static int |
ABSTRACT |
static int |
ACC_BRIDGE |
static int |
ACC_SUPER |
static int |
ACC_VARARGS |
static int |
AccessFlags
Modifier masks.
|
static int |
ACYCLIC
Flag for class symbols to indicate it has been checked and found
acyclic.
|
static long |
ACYCLIC_ANN
Flag for annotation type symbols to indicate it has been
checked and found acyclic.
|
static int |
ANNOTATION
Flag that marks attribute interfaces, added in classfile v49.0.
|
static long |
AnnotationTypeElementMask |
static int |
ANONCONSTR
Flag for synthesized default constructors of anonymous classes.
|
static 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.
|
static long |
BAD_OVERRIDE
Flag that indicates that an override error has been detected by Check.
|
static int |
BLOCK
Flag is set for compiler-generated anonymous method symbols
that `own' an initializer block.
|
static long |
BRIDGE
Flag that marks bridge methods.
|
static long |
CLASH
Flag that marks non-override equivalent methods with the same signature.
|
static int |
CLASS_SEEN
Flag is set for class symbols if a class file was found for this class.
|
static int |
ClassFlags
Modifier masks.
|
static int |
COMPOUND
Flag is set for compiler-generated compound classes
representing multiple variable bounds
|
static int |
ConstructorFlags
Modifier masks.
|
static long |
DEFAULT
Flag that marks either a default method or an interface containing default methods.
|
static int |
DEPRECATED
Flag is set if symbol is deprecated.
|
static long |
EFFECTIVELY_FINAL
Flag that marks an 'effectively final' local variable.
|
static int |
ENUM
An enumeration type or an enumeration constant, added in
classfile v49.0.
|
static int |
EXISTS
Flag is set for package symbols if a package has a member or
directory and therefore exists.
|
static long |
ExtendedStandardFlags |
static int |
FINAL |
static long |
GENERATEDCONSTR
Flag that marks a generated default constructor.
|
static int |
HASINIT
Flag is set for a variable symbol if the variable's definition
has an initializer part.
|
static 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.
|
static int |
INTERFACE |
static int |
InterfaceMethodFlags
Modifier masks.
|
static long |
InterfaceMethodMask |
static int |
InterfaceVarFlags
Modifier masks.
|
static int |
IPROXY
Flag is set for compiler-generated abstract methods that implement
an interface method (Miranda methods).
|
static long |
LAMBDA_METHOD
Flag that marks a synthetic method body for a lambda expression
|
static int |
LocalClassFlags
Modifier masks.
|
static long |
LocalVarFlags |
static 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.
|
static int |
MANDATED
Added in SE8, represents constructs implicitly declared in source.
|
static int |
MemberClassFlags
Modifier masks.
|
static int |
MethodFlags
Modifier masks.
|
static long |
ModifierFlags |
static int |
NATIVE |
static 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.
|
static long |
NOT_IN_PROFILE
Flag that marks that a symbol is not available in the current profile
|
static long |
OVERRIDE_BRIDGE
Flag that marks a special kind of bridge method (the ones that
come from restricted supertype bounds).
|
static long |
PARAMETER
Flag that marks formal parameters.
|
static long |
POTENTIALLY_AMBIGUOUS
Flag that marks potentially ambiguous overloads
|
static int |
PRIVATE |
static long |
PROPRIETARY
Flag that marks an internal proprietary class.
|
static int |
PROTECTED |
static int |
PUBLIC |
static long |
SIGNATURE_POLYMORPHIC
Flag that indicates a signature polymorphic method (292).
|
static int |
SOURCE_SEEN
Flag is set for class symbols if a source file was found for this
class.
|
static int |
StandardFlags |
static int |
STATIC |
static int |
STRICTFP |
static int |
SYNCHRONIZED |
static int |
SYNTHETIC |
static long |
THROWS
Flag that indicates that an inference variable is used in a 'throws' clause.
|
static int |
TRANSIENT |
static 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.
|
static long |
UNION
Flag that marks a multi-catch parameter.
|
static long |
VARARGS
Flag that marks varargs methods.
|
static int |
VarFlags
Modifier masks.
|
static int |
VOLATILE |
Modifier and Type | Method and Description |
---|---|
static EnumSet<Flags.Flag> |
asFlagSet(long flags) |
static Set<Modifier> |
asModifierSet(long flags) |
static boolean |
isConstant(Symbol.VarSymbol symbol) |
static boolean |
isEnum(Symbol symbol) |
static boolean |
isStatic(Symbol symbol) |
static String |
toString(long flags) |
public static final int PUBLIC
public static final int PRIVATE
public static final int PROTECTED
public static final int STATIC
public static final int FINAL
public static final int SYNCHRONIZED
public static final int VOLATILE
public static final int TRANSIENT
public static final int NATIVE
public static final int INTERFACE
public static final int ABSTRACT
public static final int STRICTFP
public static final int SYNTHETIC
public static final int ANNOTATION
public static final int ENUM
public static final int MANDATED
public static final int StandardFlags
public static final int ACC_SUPER
public static final int ACC_BRIDGE
public static final int ACC_VARARGS
public static final int DEPRECATED
public static final int HASINIT
public static final int BLOCK
public static final int IPROXY
public static final int NOOUTERTHIS
public static final int EXISTS
public static final int COMPOUND
public static final int CLASS_SEEN
public static final int SOURCE_SEEN
public static final int LOCKED
public static final int UNATTRIBUTED
public static final int ANONCONSTR
public static final int ACYCLIC
public static final long BRIDGE
public static final long PARAMETER
public static final long VARARGS
public static final long ACYCLIC_ANN
public static final long GENERATEDCONSTR
public static final long HYPOTHETICAL
public static final long PROPRIETARY
public static final long UNION
public static final long OVERRIDE_BRIDGE
public static final long EFFECTIVELY_FINAL
public static final long CLASH
public static final long DEFAULT
public static final long AUXILIARY
public static final long NOT_IN_PROFILE
public static final long BAD_OVERRIDE
public static final long SIGNATURE_POLYMORPHIC
public static final long THROWS
public static final long POTENTIALLY_AMBIGUOUS
public static final long LAMBDA_METHOD
public static final int AccessFlags
public static final int LocalClassFlags
public static final int MemberClassFlags
public static final int ClassFlags
public static final int InterfaceVarFlags
public static final int VarFlags
public static final int ConstructorFlags
public static final int InterfaceMethodFlags
public static final int MethodFlags
public static final long ExtendedStandardFlags
public static final long ModifierFlags
public static final long InterfaceMethodMask
public static final long AnnotationTypeElementMask
public static final long LocalVarFlags
public static String toString(long flags)
public static EnumSet<Flags.Flag> asFlagSet(long flags)
public static boolean isStatic(Symbol symbol)
public static boolean isEnum(Symbol symbol)
public static boolean isConstant(Symbol.VarSymbol symbol)
Copyright © 2017 earcam. All rights reserved.