Package com.android.dx.rop.code
Class AccessFlags
java.lang.Object
com.android.dx.rop.code.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
Modifier and TypeFieldDescriptionstatic final int
abstract method / classstatic final int
class is an annotation typestatic final int
bridge method (generated)static final int
method is a constructorstatic final int
method was declaredsynchronized
; has no effect on execution (other than inspecting this flag, per se)static final int
class is an enumerated type; field is an element of an enumerated typestatic final int
final member / classstatic final int
"class" is in fact an public static final interfacestatic final int
native methodstatic final int
private memberstatic final int
protected memberstatic final int
public member / classstatic final int
static memberstatic final int
method with strict floating point (strictfp
) behaviorstatic final int
class with new-styleinvokespecial
for superclass method accessstatic final int
synchronized method; only valid in dex files fornative
methodsstatic final int
synthetic memberstatic final int
transient fieldstatic final int
varargs methodstatic final int
volatile fieldstatic final int
flags defined on classesstatic final int
flags defined on fieldsstatic final int
flags defined on inner classesstatic final int
flags defined on methods -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 flagACC_ABSTRACT
is on in the given flags.static boolean
isAnnotation
(int flags) Returns whether the flagACC_ANNOTATION
is on in the given flags.static boolean
isConstructor
(int flags) Returns whether the flagACC_CONSTRUCTOR
is on in the given flags.static boolean
isDeclaredSynchronized
(int flags) Returns whether the flagACC_DECLARED_SYNCHRONIZED
is on in the given flags.static boolean
isEnum
(int flags) Returns whether the flagACC_ENUM
is on in the given flags.static boolean
isInterface
(int flags) Returns whether the flagACC_INTERFACE
is on in the given flags.static boolean
isNative
(int flags) Returns whether the flagACC_NATIVE
is on in the given flags.static boolean
isPrivate
(int flags) Returns whether the flagACC_PRIVATE
is on in the given flags.static boolean
isProtected
(int flags) Returns whether the flagACC_PROTECTED
is on in the given flags.static boolean
isPublic
(int flags) Returns whether the flagACC_PUBLIC
is on in the given flags.static boolean
isStatic
(int flags) Returns whether the flagACC_STATIC
is on in the given flags.static boolean
isSynchronized
(int flags) Returns whether the flagACC_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).
-
Field Details
-
ACC_PUBLIC
public static final int ACC_PUBLICpublic member / class- See Also:
-
ACC_PRIVATE
public static final int ACC_PRIVATEprivate member- See Also:
-
ACC_PROTECTED
public static final int ACC_PROTECTEDprotected member- See Also:
-
ACC_STATIC
public static final int ACC_STATICstatic member- See Also:
-
ACC_FINAL
public static final int ACC_FINALfinal member / class- See Also:
-
ACC_SYNCHRONIZED
public static final int ACC_SYNCHRONIZEDsynchronized method; only valid in dex files fornative
methods- See Also:
-
ACC_SUPER
public static final int ACC_SUPERclass with new-styleinvokespecial
for superclass method access- See Also:
-
ACC_VOLATILE
public static final int ACC_VOLATILEvolatile field- See Also:
-
ACC_BRIDGE
public static final int ACC_BRIDGEbridge method (generated)- See Also:
-
ACC_TRANSIENT
public static final int ACC_TRANSIENTtransient field- See Also:
-
ACC_VARARGS
public static final int ACC_VARARGSvarargs method- See Also:
-
ACC_NATIVE
public static final int ACC_NATIVEnative method- See Also:
-
ACC_INTERFACE
public static final int ACC_INTERFACE"class" is in fact an public static final interface- See Also:
-
ACC_ABSTRACT
public static final int ACC_ABSTRACTabstract method / class- See Also:
-
ACC_STRICT
public static final int ACC_STRICTmethod with strict floating point (strictfp
) behavior- See Also:
-
ACC_SYNTHETIC
public static final int ACC_SYNTHETICsynthetic member- See Also:
-
ACC_ANNOTATION
public static final int ACC_ANNOTATIONclass is an annotation type- See Also:
-
ACC_ENUM
public static final int ACC_ENUMclass is an enumerated type; field is an element of an enumerated type- See Also:
-
ACC_CONSTRUCTOR
public static final int ACC_CONSTRUCTORmethod is a constructor- See Also:
-
ACC_DECLARED_SYNCHRONIZED
public static final int ACC_DECLARED_SYNCHRONIZEDmethod was declaredsynchronized
; has no effect on execution (other than inspecting this flag, per se)- See Also:
-
CLASS_FLAGS
public static final int CLASS_FLAGSflags defined on classes- See Also:
-
INNER_CLASS_FLAGS
public static final int INNER_CLASS_FLAGSflags defined on inner classes- See Also:
-
FIELD_FLAGS
public static final int FIELD_FLAGSflags defined on fields- See Also:
-
METHOD_FLAGS
public static final int METHOD_FLAGSflags defined on methods- See Also:
-
-
Method Details
-
classString
Returns a human-oriented string representing the given access flags, as defined on classes (not fields or methods).- Parameters:
flags
- the flags- Returns:
non-null;
human-oriented string
-
innerClassString
Returns a human-oriented string representing the given access flags, as defined on inner classes.- Parameters:
flags
- the flags- Returns:
non-null;
human-oriented string
-
fieldString
Returns a human-oriented string representing the given access flags, as defined on fields (not classes or methods).- Parameters:
flags
- the flags- Returns:
non-null;
human-oriented string
-
methodString
Returns a human-oriented string representing the given access flags, as defined on methods (not classes or fields).- Parameters:
flags
- the flags- Returns:
non-null;
human-oriented string
-
isPublic
public static boolean isPublic(int flags) Returns whether the flagACC_PUBLIC
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_PUBLIC
flag
-
isProtected
public static boolean isProtected(int flags) Returns whether the flagACC_PROTECTED
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_PROTECTED
flag
-
isPrivate
public static boolean isPrivate(int flags) Returns whether the flagACC_PRIVATE
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_PRIVATE
flag
-
isStatic
public static boolean isStatic(int flags) Returns whether the flagACC_STATIC
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_STATIC
flag
-
isConstructor
public static boolean isConstructor(int flags) Returns whether the flagACC_CONSTRUCTOR
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_CONSTRUCTOR
flag
-
isInterface
public static boolean isInterface(int flags) Returns whether the flagACC_INTERFACE
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_INTERFACE
flag
-
isSynchronized
public static boolean isSynchronized(int flags) Returns whether the flagACC_SYNCHRONIZED
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_SYNCHRONIZED
flag
-
isAbstract
public static boolean isAbstract(int flags) Returns whether the flagACC_ABSTRACT
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_ABSTRACT
flag
-
isNative
public static boolean isNative(int flags) Returns whether the flagACC_NATIVE
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_NATIVE
flag
-
isAnnotation
public static boolean isAnnotation(int flags) Returns whether the flagACC_ANNOTATION
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_ANNOTATION
flag
-
isDeclaredSynchronized
public static boolean isDeclaredSynchronized(int flags) Returns whether the flagACC_DECLARED_SYNCHRONIZED
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_DECLARED_SYNCHRONIZED
flag
-
isEnum
public static boolean isEnum(int flags) Returns whether the flagACC_ENUM
is on in the given flags.- Parameters:
flags
- the flags to check- Returns:
- the value of the
ACC_ENUM
flag
-