public class DexClass
extends java.lang.Object
This class represents a DEX class_def_item
object.
DexClassData
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Get the access flags for the class.
|
DexAnnotationsDirectory |
getAnnotationsDirectory()
Get the annotations directory of the class.
|
int |
getClasstypeIndex()
Get the type index for this class object.
|
DexClassData |
getData()
Get the class data information (fields, methods) for this class.
|
int[] |
getInterfaceIndexes()
Get the type indexes of the interfaces implemented by this class.
|
int |
getSourceIndex()
Get the string index for the file name containing the original source for this class.
|
java.util.List<DexValue> |
getStaticInitializers()
Get the static initializers of the class.
|
int |
getSuperclassIndex()
Get the type index for the superclass of this class.
|
int |
getUserFlags()
Get user-defined flags for the class.
|
void |
setUserFlags(int flags)
Set user-defined flags for the class.
|
public int getClasstypeIndex()
Get the type index for this class object.
public int getAccessFlags()
Get the access flags for the class.
public int getSuperclassIndex()
Get the type index for the superclass of this class.
public int[] getInterfaceIndexes()
Get the type indexes of the interfaces implemented by this class.
public int getSourceIndex()
Get the string index for the file name containing the original source for this class.
Note: This is a debug/metadata field and should be used with caution.
public DexClassData getData()
Get the class data information (fields, methods) for this class.
The DEX specifications call it class_data_item
.
public java.util.List<DexValue> getStaticInitializers()
Get the static initializers of the class.
public DexAnnotationsDirectory getAnnotationsDirectory()
Get the annotations directory of the class.
The DEX specifications call it annotations_directory_item
.
public int getUserFlags()
Get user-defined flags for the class. (This is not a DEX element.)
public void setUserFlags(int flags)
Set user-defined flags for the class. (This is not a DEX element.)
flags
- the user-defined flags