public class DexBackedMethod extends BaseMethodReference implements Method
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
int |
accessFlags |
DexBackedClassDef |
classDef |
DexBackedDexFile |
dexFile |
int |
methodIndex |
| Constructor and Description |
|---|
DexBackedMethod(DexBackedDexFile dexFile,
DexReader reader,
DexBackedClassDef classDef,
int previousMethodIndex) |
DexBackedMethod(DexBackedDexFile dexFile,
DexReader reader,
DexBackedClassDef classDef,
int previousMethodIndex,
AnnotationsDirectory.AnnotationIterator methodAnnotationIterator,
AnnotationsDirectory.AnnotationIterator paramaterAnnotationIterator) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this method.
|
java.util.Set<? extends Annotation> |
getAnnotations()
Gets a set of the annotations that are applied to this method.
|
java.lang.String |
getDefiningClass()
Gets the type of the class that defines this method.
|
DexBackedMethodImplementation |
getImplementation()
Gets a MethodImplementation object that defines the implementation of the method.
|
int |
getMethodIndex() |
java.lang.String |
getName()
Gets the name of this method.
|
java.util.List<? extends java.util.Set<? extends DexBackedAnnotation>> |
getParameterAnnotations() |
java.util.Iterator<java.lang.String> |
getParameterNames() |
java.util.List<? extends MethodParameter> |
getParameters()
Gets a list of the parameters of this method.
|
java.util.List<java.lang.String> |
getParameterTypes()
Gets a list of the types of the parameters of this method.
|
java.lang.String |
getReturnType()
Gets the return type of this method.
|
int |
getSize()
Calculate and return the private size of a method definition.
|
static void |
skipMethods(DexReader reader,
int count)
Skips the reader over the specified number of encoded_method structures
|
compareTo, equals, hashCode, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull public final DexBackedDexFile dexFile
@Nonnull public final DexBackedClassDef classDef
public final int accessFlags
public final int methodIndex
public DexBackedMethod(@Nonnull
DexBackedDexFile dexFile,
@Nonnull
DexReader reader,
@Nonnull
DexBackedClassDef classDef,
int previousMethodIndex)
public DexBackedMethod(@Nonnull
DexBackedDexFile dexFile,
@Nonnull
DexReader reader,
@Nonnull
DexBackedClassDef classDef,
int previousMethodIndex,
@Nonnull
AnnotationsDirectory.AnnotationIterator methodAnnotationIterator,
@Nonnull
AnnotationsDirectory.AnnotationIterator paramaterAnnotationIterator)
public int getMethodIndex()
@Nonnull public java.lang.String getDefiningClass()
MethodgetDefiningClass in interface MembergetDefiningClass in interface MethodgetDefiningClass in interface MethodReferencepublic int getAccessFlags()
MethodgetAccessFlags in interface MembergetAccessFlags in interface Method@Nonnull public java.lang.String getName()
Method@Nonnull public java.lang.String getReturnType()
MethodgetReturnType in interface MethodgetReturnType in interface MethodReference@Nonnull public java.util.List<? extends MethodParameter> getParameters()
MethodgetParameters in interface Method@Nonnull public java.util.List<? extends java.util.Set<? extends DexBackedAnnotation>> getParameterAnnotations()
@Nonnull public java.util.Iterator<java.lang.String> getParameterNames()
@Nonnull public java.util.List<java.lang.String> getParameterTypes()
MethodReferencegetParameterTypes in interface MethodReference@Nonnull public java.util.Set<? extends Annotation> getAnnotations()
MethodgetAnnotations in interface AnnotatablegetAnnotations in interface Method@Nullable public DexBackedMethodImplementation getImplementation()
MethodgetImplementation in interface Methodpublic static void skipMethods(@Nonnull
DexReader reader,
int count)
reader - The reader to skipcount - The number of encoded_method structures to skip overpublic int getSize()