|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.rop.code.AccessFlags
public final class AccessFlags
Constants used as "access flags" in various places in classes, and
related utilities. Although, at the rop layer, flags are generally
ignored, this is the layer of communication, and as such, this
package is where these definitions belong. The flag definitions are
identical to Java access flags, but ACC_SUPER isn't
used at all in translated code, and ACC_SYNCHRONIZED
is only used in a very limited way.
| Field Summary | |
|---|---|
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 |
| Method Summary | |
|---|---|
static String |
classString(int flags)
Returns a human-oriented string representing the given access flags, as defined on classes (not fields or methods). |
static String |
fieldString(int flags)
Returns a human-oriented string representing the given access flags, as defined on fields (not classes or methods). |
static 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 |
isDeclaredSynchronized(int flags)
Returns whether the flag ACC_DECLARED_SYNCHRONIZED 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 String |
methodString(int flags)
Returns a human-oriented string representing the given access flags, as defined on methods (not classes or fields). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
methods
public static final int ACC_SUPER
invokespecial for superclass
method access
public 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)
behavior
public 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
| Method Detail |
|---|
public static String classString(int flags)
flags - the flags
non-null; human-oriented stringpublic static String innerClassString(int flags)
flags - the flags
non-null; human-oriented stringpublic static String fieldString(int flags)
flags - the flags
non-null; human-oriented stringpublic static String methodString(int flags)
flags - the flags
non-null; human-oriented stringpublic static boolean isPublic(int flags)
ACC_PUBLIC is on in the given
flags.
flags - the flags to check
ACC_PUBLIC flagpublic static boolean isProtected(int flags)
ACC_PROTECTED is on in the given
flags.
flags - the flags to check
ACC_PROTECTED flagpublic static boolean isPrivate(int flags)
ACC_PRIVATE is on in the given
flags.
flags - the flags to check
ACC_PRIVATE flagpublic static boolean isStatic(int flags)
ACC_STATIC is on in the given
flags.
flags - the flags to check
ACC_STATIC flagpublic static boolean isSynchronized(int flags)
ACC_SYNCHRONIZED is on in
the given flags.
flags - the flags to check
ACC_SYNCHRONIZED flagpublic static boolean isAbstract(int flags)
ACC_ABSTRACT is on in the given
flags.
flags - the flags to check
ACC_ABSTRACT flagpublic static boolean isNative(int flags)
ACC_NATIVE is on in the given
flags.
flags - the flags to check
ACC_NATIVE flagpublic static boolean isAnnotation(int flags)
ACC_ANNOTATION is on in the given
flags.
flags - the flags to check
ACC_ANNOTATION flagpublic static boolean isDeclaredSynchronized(int flags)
ACC_DECLARED_SYNCHRONIZED is
on in the given flags.
flags - the flags to check
ACC_DECLARED_SYNCHRONIZED flag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||