public class Access extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ABSTRACT
Declared abstract; must not be instantiated.
|
static int |
ANNOTATION
Declared as an annotation type.
|
static int |
BRIDGE
A bridge method, generated by the compiler.
|
static int |
ENUM
For classes, declared as an enum type.
|
static int |
FINAL
Declared final.
|
static int |
INTERFACE
Is an interface, not a class.
|
static int |
MANDATED
Mandated method parameter.
|
static int |
MODULE
For classes, declared as an module.
|
static int |
NATIVE
Declared native; implemented in a language other than Java.
|
static int |
OPEN
Open module in the Module attribute.
|
static int |
PRIVATE
Declared private, usable only within the defining class.
|
static int |
PROTECTED
Declared protected, may be accessed within subclasses.
|
static int |
PUBLIC
Declared public, may be accessed from outside its package.
|
static int |
STATIC
Declared static.
|
static int |
STATIC_PHASE
Static requires in the Module attribute.
|
static int |
STRICT
Declared strictfp; floating point mode is FP-strict.
|
static int |
SUPER
Treat superclass methods specially when invoked by the
invokespecial instruction.
|
static int |
SYNCHRONIZED
Declared synchronized; invocation is wrapped in a monitor lock.
|
static int |
SYNTHETIC
Declared synthetic, not present in the source file.
|
static int |
TRANSIENT
Declared transient; not written or read by a persistent object
manager
|
static int |
TRANSITIVE
Transitive requires in the Module attribute.
|
static int |
VARARGS
Declared with a variable number of arguments.
|
static int |
VOLATILE
Declared volatile; cannot be cached.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isPackagePrivate(int access) |
static boolean |
isPrivate(int access) |
static boolean |
isProtected(int access) |
static boolean |
isPublic(int access) |
static boolean |
isStatic(int access) |
static String |
toString(int access)
Return a text representation for a given set of access 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 SUPER
public static final int OPEN
public static final int TRANSITIVE
public static final int VOLATILE
public static final int BRIDGE
public static final int STATIC_PHASE
public static final int TRANSIENT
public static final int VARARGS
public static final int NATIVE
public static final int INTERFACE
public static final int ABSTRACT
public static final int STRICT
public static final int SYNTHETIC
public static final int ANNOTATION
public static final int ENUM
public static final int MANDATED
public static final int MODULE
public static String toString(int access)
"public static final"
,"package private"
, or"protected transient"
.access
- the mask of flags denoting access permission.public static boolean isStatic(int access)
public static final boolean isPublic(int access)
public static final boolean isProtected(int access)
public static final boolean isPackagePrivate(int access)
public static final boolean isPrivate(int access)