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
FieldsModifier and TypeFieldDescriptionstatic final intabstract method / classstatic final intclass is an annotation typestatic final intbridge method (generated)static final intmethod is a constructorstatic final intmethod was declaredsynchronized; has no effect on execution (other than inspecting this flag, per se)static final intclass is an enumerated type; field is an element of an enumerated typestatic final intfinal member / classstatic final int"class" is in fact an public static final interfacestatic final intnative methodstatic final intprivate memberstatic final intprotected memberstatic final intpublic member / classstatic final intstatic memberstatic final intmethod with strict floating point (strictfp) behaviorstatic final intclass with new-styleinvokespecialfor superclass method accessstatic final intsynchronized method; only valid in dex files fornativemethodsstatic final intsynthetic memberstatic final inttransient fieldstatic final intvarargs methodstatic final intvolatile fieldstatic final intflags defined on classesstatic final intflags defined on fieldsstatic final intflags defined on inner classesstatic final intflags defined on methods -
Method Summary
Modifier and TypeMethodDescriptionstatic StringclassString(int flags) Returns a human-oriented string representing the given access flags, as defined on classes (not fields or methods).static StringfieldString(int flags) Returns a human-oriented string representing the given access flags, as defined on fields (not classes or methods).static StringinnerClassString(int flags) Returns a human-oriented string representing the given access flags, as defined on inner classes.static booleanisAbstract(int flags) Returns whether the flagACC_ABSTRACTis on in the given flags.static booleanisAnnotation(int flags) Returns whether the flagACC_ANNOTATIONis on in the given flags.static booleanisConstructor(int flags) Returns whether the flagACC_CONSTRUCTORis on in the given flags.static booleanisDeclaredSynchronized(int flags) Returns whether the flagACC_DECLARED_SYNCHRONIZEDis on in the given flags.static booleanisEnum(int flags) Returns whether the flagACC_ENUMis on in the given flags.static booleanisInterface(int flags) Returns whether the flagACC_INTERFACEis on in the given flags.static booleanisNative(int flags) Returns whether the flagACC_NATIVEis on in the given flags.static booleanisPrivate(int flags) Returns whether the flagACC_PRIVATEis on in the given flags.static booleanisProtected(int flags) Returns whether the flagACC_PROTECTEDis on in the given flags.static booleanisPublic(int flags) Returns whether the flagACC_PUBLICis on in the given flags.static booleanisStatic(int flags) Returns whether the flagACC_STATICis on in the given flags.static booleanisSynchronized(int flags) Returns whether the flagACC_SYNCHRONIZEDis on in the given flags.static StringmethodString(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 fornativemethods- See Also:
-
ACC_SUPER
public static final int ACC_SUPERclass with new-styleinvokespecialfor 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_PUBLICis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_PUBLICflag
-
isProtected
public static boolean isProtected(int flags) Returns whether the flagACC_PROTECTEDis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_PROTECTEDflag
-
isPrivate
public static boolean isPrivate(int flags) Returns whether the flagACC_PRIVATEis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_PRIVATEflag
-
isStatic
public static boolean isStatic(int flags) Returns whether the flagACC_STATICis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_STATICflag
-
isConstructor
public static boolean isConstructor(int flags) Returns whether the flagACC_CONSTRUCTORis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_CONSTRUCTORflag
-
isInterface
public static boolean isInterface(int flags) Returns whether the flagACC_INTERFACEis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_INTERFACEflag
-
isSynchronized
public static boolean isSynchronized(int flags) Returns whether the flagACC_SYNCHRONIZEDis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_SYNCHRONIZEDflag
-
isAbstract
public static boolean isAbstract(int flags) Returns whether the flagACC_ABSTRACTis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_ABSTRACTflag
-
isNative
public static boolean isNative(int flags) Returns whether the flagACC_NATIVEis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_NATIVEflag
-
isAnnotation
public static boolean isAnnotation(int flags) Returns whether the flagACC_ANNOTATIONis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_ANNOTATIONflag
-
isDeclaredSynchronized
public static boolean isDeclaredSynchronized(int flags) Returns whether the flagACC_DECLARED_SYNCHRONIZEDis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_DECLARED_SYNCHRONIZEDflag
-
isEnum
public static boolean isEnum(int flags) Returns whether the flagACC_ENUMis on in the given flags.- Parameters:
flags- the flags to check- Returns:
- the value of the
ACC_ENUMflag
-