public class DexBackedClassDef extends BaseTypeReference implements ClassDef
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
DexBackedDexFile |
dexFile |
| Constructor and Description |
|---|
DexBackedClassDef(DexBackedDexFile dexFile,
int classDefOffset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this class.
|
java.util.Set<? extends DexBackedAnnotation> |
getAnnotations()
Gets a set of the annotations that are applied to this class.
|
java.lang.Iterable<? extends DexBackedMethod> |
getDirectMethods()
Gets the direct methods that are defined by this class.
|
java.lang.Iterable<? extends DexBackedMethod> |
getDirectMethods(boolean skipDuplicates) |
java.lang.Iterable<? extends DexBackedField> |
getFields()
Gets all the fields that are defined by this class.
|
java.lang.Iterable<? extends DexBackedField> |
getInstanceFields()
Gets the instance fields that are defined by this class.
|
java.lang.Iterable<? extends DexBackedField> |
getInstanceFields(boolean skipDuplicates) |
java.util.List<java.lang.String> |
getInterfaces()
Gets a list of the interfaces that this class implements.
|
java.lang.Iterable<? extends DexBackedMethod> |
getMethods()
Gets all the methods that are defined by this class.
|
int |
getSize()
Calculate and return the private size of a class definition.
|
java.lang.String |
getSourceFile()
Gets the name of the primary source file that this class is defined in, if available.
|
java.lang.Iterable<? extends DexBackedField> |
getStaticFields()
Gets the static fields that are defined by this class.
|
java.lang.Iterable<? extends DexBackedField> |
getStaticFields(boolean skipDuplicates) |
java.lang.String |
getSuperclass()
Gets the superclass of this class.
|
java.lang.String |
getType()
Gets the class type.
|
java.lang.Iterable<? extends DexBackedMethod> |
getVirtualMethods()
Gets the virtual methods that are defined by this class.
|
java.lang.Iterable<? extends DexBackedMethod> |
getVirtualMethods(boolean skipDuplicates) |
charAt, compareTo, equals, hashCode, length, subSequence, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull public final DexBackedDexFile dexFile
public DexBackedClassDef(@Nonnull
DexBackedDexFile dexFile,
int classDefOffset)
@Nonnull public java.lang.String getType()
ClassDefgetType in interface ClassDefgetType in interface TypeReference@Nullable public java.lang.String getSuperclass()
ClassDefgetSuperclass in interface ClassDefpublic int getAccessFlags()
ClassDefgetAccessFlags in interface ClassDef@Nullable public java.lang.String getSourceFile()
ClassDefgetSourceFile in interface ClassDef@Nonnull public java.util.List<java.lang.String> getInterfaces()
ClassDefgetInterfaces in interface ClassDef@Nonnull public java.util.Set<? extends DexBackedAnnotation> getAnnotations()
ClassDefgetAnnotations in interface AnnotatablegetAnnotations in interface ClassDef@Nonnull public java.lang.Iterable<? extends DexBackedField> getStaticFields()
ClassDefgetStaticFields in interface ClassDef@Nonnull public java.lang.Iterable<? extends DexBackedField> getStaticFields(boolean skipDuplicates)
@Nonnull public java.lang.Iterable<? extends DexBackedField> getInstanceFields()
ClassDefgetInstanceFields in interface ClassDef@Nonnull public java.lang.Iterable<? extends DexBackedField> getInstanceFields(boolean skipDuplicates)
@Nonnull public java.lang.Iterable<? extends DexBackedField> getFields()
ClassDef@Nonnull public java.lang.Iterable<? extends DexBackedMethod> getDirectMethods()
ClassDefgetDirectMethods in interface ClassDef@Nonnull public java.lang.Iterable<? extends DexBackedMethod> getDirectMethods(boolean skipDuplicates)
@Nonnull public java.lang.Iterable<? extends DexBackedMethod> getVirtualMethods(boolean skipDuplicates)
@Nonnull public java.lang.Iterable<? extends DexBackedMethod> getVirtualMethods()
ClassDefgetVirtualMethods in interface ClassDef@Nonnull public java.lang.Iterable<? extends DexBackedMethod> getMethods()
ClassDefgetMethods in interface ClassDefpublic int getSize()