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 |
NATIVE
Declared native; implemented in a language other than Java.
|
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 |
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 |
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 VOLATILE
public static final int BRIDGE
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 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)
Built on June 18 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.