Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.rop.code

public final Class AccessFlags

extends Object
Class Inheritance
Imports
org.droidparts.dexmaker.dx.util.Hex

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 TypeField and Description
public static final int
ACC_ABSTRACT

abstract method / class

public static final int
ACC_ANNOTATION

class is an annotation type

public static final int
ACC_BRIDGE

bridge method (generated)

public static final int
ACC_CONSTRUCTOR

method is a constructor

public static final int
ACC_DECLARED_SYNCHRONIZED

method was declared synchronized; has no effect on execution (other than inspecting this flag, per se)

public static final int
ACC_ENUM

class is an enumerated type; field is an element of an enumerated type

public static final int
ACC_FINAL

final member / class

public static final int
ACC_INTERFACE

"class" is in fact an public static final interface

public static final int
ACC_NATIVE

native method

public static final int
ACC_PRIVATE

private member

public static final int
ACC_PROTECTED

protected member

public static final int
ACC_PUBLIC

public member / class

public static final int
ACC_STATIC

static member

public static final int
ACC_STRICT

method with strict floating point (strictfp) behavior

public static final int
ACC_SUPER

class with new-style invokespecial for superclass method access

public static final int
ACC_SYNCHRONIZED

synchronized method; only valid in dex files for native methods

public static final int
ACC_SYNTHETIC

synthetic member

public static final int
ACC_TRANSIENT

transient field

public static final int
ACC_VARARGS

varargs method

public static final int
ACC_VOLATILE

volatile field

public static final int
CLASS_FLAGS

flags defined on classes

private static final int
CONV_CLASS

indicates conversion of class flags

private static final int
CONV_FIELD

indicates conversion of field flags

private static final int
CONV_METHOD

indicates conversion of method flags

public static final int
FIELD_FLAGS

flags defined on fields

public static final int
INNER_CLASS_FLAGS

flags defined on inner classes

public static final int
METHOD_FLAGS

flags defined on methods

Constructor Summary

AccessConstructor and Description
private
AccessFlags()

This class is uninstantiable.

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

non-null; human-oriented string
classString
(int
the flags
flags
)

Returns a human-oriented string representing the given access flags, as defined on classes (not fields or methods).

public static String

Returns:

non-null; human-oriented string
fieldString
(int
the flags
flags
)

Returns a human-oriented string representing the given access flags, as defined on fields (not classes or methods).

private static String

Returns:

non-null; human-oriented string
humanHelper
(int
the defined flags
flags
,
int
mask for the "defined" bits
mask
,
int
what the flags represent (one of CONV_*)
what
)

Helper to return a human-oriented string representing the given access flags.

public static String

Returns:

non-null; human-oriented string
innerClassString
(int
the flags
flags
)

Returns a human-oriented string representing the given access flags, as defined on inner classes.

public static boolean

Returns:

the value of the ACC_ABSTRACT flag
isAbstract
(int
the flags to check
flags
)

Returns whether the flag ACC_ABSTRACT is on in the given flags.

public static boolean

Returns:

the value of the ACC_ANNOTATION flag
isAnnotation
(int
the flags to check
flags
)

Returns whether the flag ACC_ANNOTATION is on in the given flags.

public static boolean

Returns:

the value of the ACC_DECLARED_SYNCHRONIZED flag
isDeclaredSynchronized
(int
the flags to check
flags
)

Returns whether the flag ACC_DECLARED_SYNCHRONIZED is on in the given flags.

public static boolean

Returns:

the value of the ACC_NATIVE flag
isNative
(int
the flags to check
flags
)

Returns whether the flag ACC_NATIVE is on in the given flags.

public static boolean

Returns:

the value of the ACC_PRIVATE flag
isPrivate
(int
the flags to check
flags
)

Returns whether the flag ACC_PRIVATE is on in the given flags.

public static boolean

Returns:

the value of the ACC_PROTECTED flag
isProtected
(int
the flags to check
flags
)

Returns whether the flag ACC_PROTECTED is on in the given flags.

public static boolean

Returns:

the value of the ACC_PUBLIC flag
isPublic
(int
the flags to check
flags
)

Returns whether the flag ACC_PUBLIC is on in the given flags.

public static boolean

Returns:

the value of the ACC_STATIC flag
isStatic
(int
the flags to check
flags
)

Returns whether the flag ACC_STATIC is on in the given flags.

public static boolean

Returns:

the value of the ACC_SYNCHRONIZED flag
isSynchronized
(int
the flags to check
flags
)

Returns whether the flag ACC_SYNCHRONIZED is on in the given flags.

public static String

Returns:

non-null; human-oriented string
methodString
(int
the flags
flags
)

Returns a human-oriented string representing the given access flags, as defined on methods (not classes or fields).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ACC_ABSTRACTback to summary
public static final int ACC_ABSTRACT

abstract method / class

ACC_ANNOTATIONback to summary
public static final int ACC_ANNOTATION

class is an annotation type

ACC_BRIDGEback to summary
public static final int ACC_BRIDGE

bridge method (generated)

ACC_CONSTRUCTORback to summary
public static final int ACC_CONSTRUCTOR

method is a constructor

ACC_DECLARED_SYNCHRONIZEDback to summary
public static final int ACC_DECLARED_SYNCHRONIZED

method was declared synchronized; has no effect on execution (other than inspecting this flag, per se)

ACC_ENUMback to summary
public static final int ACC_ENUM

class is an enumerated type; field is an element of an enumerated type

ACC_FINALback to summary
public static final int ACC_FINAL

final member / class

ACC_INTERFACEback to summary
public static final int ACC_INTERFACE

"class" is in fact an public static final interface

ACC_NATIVEback to summary
public static final int ACC_NATIVE

native method

ACC_PRIVATEback to summary
public static final int ACC_PRIVATE

private member

ACC_PROTECTEDback to summary
public static final int ACC_PROTECTED

protected member

ACC_PUBLICback to summary
public static final int ACC_PUBLIC

public member / class

ACC_STATICback to summary
public static final int ACC_STATIC

static member

ACC_STRICTback to summary
public static final int ACC_STRICT

method with strict floating point (strictfp) behavior

ACC_SUPERback to summary
public static final int ACC_SUPER

class with new-style invokespecial for superclass method access

ACC_SYNCHRONIZEDback to summary
public static final int ACC_SYNCHRONIZED

synchronized method; only valid in dex files for native methods

ACC_SYNTHETICback to summary
public static final int ACC_SYNTHETIC

synthetic member

ACC_TRANSIENTback to summary
public static final int ACC_TRANSIENT

transient field

ACC_VARARGSback to summary
public static final int ACC_VARARGS

varargs method

ACC_VOLATILEback to summary
public static final int ACC_VOLATILE

volatile field

CLASS_FLAGSback to summary
public static final int CLASS_FLAGS

flags defined on classes

CONV_CLASSback to summary
private static final int CONV_CLASS

indicates conversion of class flags

CONV_FIELDback to summary
private static final int CONV_FIELD

indicates conversion of field flags

CONV_METHODback to summary
private static final int CONV_METHOD

indicates conversion of method flags

FIELD_FLAGSback to summary
public static final int FIELD_FLAGS

flags defined on fields

INNER_CLASS_FLAGSback to summary
public static final int INNER_CLASS_FLAGS

flags defined on inner classes

METHOD_FLAGSback to summary
public static final int METHOD_FLAGS

flags defined on methods

Constructor Detail

AccessFlagsback to summary
private AccessFlags()

This class is uninstantiable.

Method Detail

classStringback to summary
public static String classString(int flags)

Returns a human-oriented string representing the given access flags, as defined on classes (not fields or methods).

Parameters
flags:int

the flags

Returns:String

non-null; human-oriented string

fieldStringback to summary
public static String fieldString(int flags)

Returns a human-oriented string representing the given access flags, as defined on fields (not classes or methods).

Parameters
flags:int

the flags

Returns:String

non-null; human-oriented string

humanHelperback to summary
private static String humanHelper(int flags, int mask, int what)

Helper to return a human-oriented string representing the given access flags.

Parameters
flags:int

the defined flags

mask:int

mask for the "defined" bits

what:int

what the flags represent (one of CONV_*)

Returns:String

non-null; human-oriented string

innerClassStringback to summary
public static String innerClassString(int flags)

Returns a human-oriented string representing the given access flags, as defined on inner classes.

Parameters
flags:int

the flags

Returns:String

non-null; human-oriented string

isAbstractback to summary
public static boolean isAbstract(int flags)

Returns whether the flag ACC_ABSTRACT is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_ABSTRACT flag

isAnnotationback to summary
public static boolean isAnnotation(int flags)

Returns whether the flag ACC_ANNOTATION is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_ANNOTATION flag

isDeclaredSynchronizedback to summary
public static boolean isDeclaredSynchronized(int flags)

Returns whether the flag ACC_DECLARED_SYNCHRONIZED is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_DECLARED_SYNCHRONIZED flag

isNativeback to summary
public static boolean isNative(int flags)

Returns whether the flag ACC_NATIVE is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_NATIVE flag

isPrivateback to summary
public static boolean isPrivate(int flags)

Returns whether the flag ACC_PRIVATE is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_PRIVATE flag

isProtectedback to summary
public static boolean isProtected(int flags)

Returns whether the flag ACC_PROTECTED is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_PROTECTED flag

isPublicback to summary
public static boolean isPublic(int flags)

Returns whether the flag ACC_PUBLIC is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_PUBLIC flag

isStaticback to summary
public static boolean isStatic(int flags)

Returns whether the flag ACC_STATIC is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_STATIC flag

isSynchronizedback to summary
public static boolean isSynchronized(int flags)

Returns whether the flag ACC_SYNCHRONIZED is on in the given flags.

Parameters
flags:int

the flags to check

Returns:boolean

the value of the ACC_SYNCHRONIZED flag

methodStringback to summary
public static String methodString(int flags)

Returns a human-oriented string representing the given access flags, as defined on methods (not classes or fields).

Parameters
flags:int

the flags

Returns:String

non-null; human-oriented string