public final class AccessFlags
extends java.lang.Object
ACC_SUPER isn't
used at all in translated code, and ACC_SYNCHRONIZED
is only used in a very limited way.| Modifier and Type | Field and Description |
|---|---|
static int |
ACC_ABSTRACT
abstract method / class
|
static int |
ACC_ANNOTATION
class is an annotation type
|
static int |
ACC_BRIDGE
bridge method (generated)
|
static int |
ACC_CONSTRUCTOR
method is a constructor
|
static int |
ACC_DECLARED_SYNCHRONIZED
method was declared
synchronized; has no effect on
execution (other than inspecting this flag, per se) |
static int |
ACC_ENUM
class is an enumerated type; field is an element of an enumerated
type
|
static int |
ACC_FINAL
final member / class
|
static int |
ACC_INTERFACE
"class" is in fact an public static final interface
|
static int |
ACC_NATIVE
native method
|
static int |
ACC_PRIVATE
private member
|
static int |
ACC_PROTECTED
protected member
|
static int |
ACC_PUBLIC
public member / class
|
static int |
ACC_STATIC
static member
|
static int |
ACC_STRICT
method with strict floating point (
strictfp)
behavior |
static int |
ACC_SUPER
class with new-style
invokespecial for superclass
method access |
static int |
ACC_SYNCHRONIZED
synchronized method; only valid in dex files for
native
methods |
static int |
ACC_SYNTHETIC
synthetic member
|
static int |
ACC_TRANSIENT
transient field
|
static int |
ACC_VARARGS
varargs method
|
static int |
ACC_VOLATILE
volatile field
|
static int |
CLASS_FLAGS
flags defined on classes
|
static int |
FIELD_FLAGS
flags defined on fields
|
static int |
INNER_CLASS_FLAGS
flags defined on inner classes
|
static int |
METHOD_FLAGS
flags defined on methods
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
classString(int flags)
Returns a human-oriented string representing the given access flags,
as defined on classes (not fields or methods).
|
static java.lang.String |
fieldString(int flags)
Returns a human-oriented string representing the given access flags,
as defined on fields (not classes or methods).
|
static java.lang.String |
innerClassString(int flags)
Returns a human-oriented string representing the given access flags,
as defined on inner classes.
|
static boolean |
isAbstract(int flags)
Returns whether the flag
ACC_ABSTRACT is on in the given
flags. |
static boolean |
isAnnotation(int flags)
Returns whether the flag
ACC_ANNOTATION is on in the given
flags. |
static boolean |
isConstructor(int flags)
Returns whether the flag
ACC_CONSTRUCTOR is on in
the given flags. |
static boolean |
isDeclaredSynchronized(int flags)
Returns whether the flag
ACC_DECLARED_SYNCHRONIZED is
on in the given flags. |
static boolean |
isEnum(int flags)
Returns whether the flag
ACC_ENUM is on in the given flags. |
static boolean |
isInterface(int flags)
Returns whether the flag
ACC_INTERFACE is on in
the given flags. |
static boolean |
isNative(int flags)
Returns whether the flag
ACC_NATIVE is on in the given
flags. |
static boolean |
isPrivate(int flags)
Returns whether the flag
ACC_PRIVATE is on in the given
flags. |
static boolean |
isProtected(int flags)
Returns whether the flag
ACC_PROTECTED is on in the given
flags. |
static boolean |
isPublic(int flags)
Returns whether the flag
ACC_PUBLIC is on in the given
flags. |
static boolean |
isStatic(int flags)
Returns whether the flag
ACC_STATIC is on in the given
flags. |
static boolean |
isSynchronized(int flags)
Returns whether the flag
ACC_SYNCHRONIZED is on in
the given flags. |
static java.lang.String |
methodString(int flags)
Returns a human-oriented string representing the given access flags,
as defined on methods (not classes or fields).
|
public static final int ACC_PUBLIC
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_STATIC
public static final int ACC_FINAL
public static final int ACC_SYNCHRONIZED
native
methodspublic static final int ACC_SUPER
invokespecial for superclass
method accesspublic static final int ACC_VOLATILE
public static final int ACC_BRIDGE
public static final int ACC_TRANSIENT
public static final int ACC_VARARGS
public static final int ACC_NATIVE
public static final int ACC_INTERFACE
public static final int ACC_ABSTRACT
public static final int ACC_STRICT
strictfp)
behaviorpublic static final int ACC_SYNTHETIC
public static final int ACC_ANNOTATION
public static final int ACC_ENUM
public static final int ACC_CONSTRUCTOR
public static final int ACC_DECLARED_SYNCHRONIZED
synchronized; has no effect on
execution (other than inspecting this flag, per se)public static final int CLASS_FLAGS
public static final int INNER_CLASS_FLAGS
public static final int FIELD_FLAGS
public static final int METHOD_FLAGS
public static java.lang.String classString(int flags)
flags - the flagsnon-null; human-oriented stringpublic static java.lang.String innerClassString(int flags)
flags - the flagsnon-null; human-oriented stringpublic static java.lang.String fieldString(int flags)
flags - the flagsnon-null; human-oriented stringpublic static java.lang.String methodString(int flags)
flags - the flagsnon-null; human-oriented stringpublic static boolean isPublic(int flags)
ACC_PUBLIC is on in the given
flags.flags - the flags to checkACC_PUBLIC flagpublic static boolean isProtected(int flags)
ACC_PROTECTED is on in the given
flags.flags - the flags to checkACC_PROTECTED flagpublic static boolean isPrivate(int flags)
ACC_PRIVATE is on in the given
flags.flags - the flags to checkACC_PRIVATE flagpublic static boolean isStatic(int flags)
ACC_STATIC is on in the given
flags.flags - the flags to checkACC_STATIC flagpublic static boolean isConstructor(int flags)
ACC_CONSTRUCTOR is on in
the given flags.flags - the flags to checkACC_CONSTRUCTOR flagpublic static boolean isInterface(int flags)
ACC_INTERFACE is on in
the given flags.flags - the flags to checkACC_INTERFACE flagpublic static boolean isSynchronized(int flags)
ACC_SYNCHRONIZED is on in
the given flags.flags - the flags to checkACC_SYNCHRONIZED flagpublic static boolean isAbstract(int flags)
ACC_ABSTRACT is on in the given
flags.flags - the flags to checkACC_ABSTRACT flagpublic static boolean isNative(int flags)
ACC_NATIVE is on in the given
flags.flags - the flags to checkACC_NATIVE flagpublic static boolean isAnnotation(int flags)
ACC_ANNOTATION is on in the given
flags.flags - the flags to checkACC_ANNOTATION flagpublic static boolean isDeclaredSynchronized(int flags)
ACC_DECLARED_SYNCHRONIZED is
on in the given flags.flags - the flags to checkACC_DECLARED_SYNCHRONIZED flagpublic static boolean isEnum(int flags)
ACC_ENUM is on in the given flags.flags - the flags to checkACC_ENUM flagCopyright © 2020. All Rights Reserved.