Interface IDexMethodData
public interface IDexMethodData
This interface represents a Dex
encoded_method
object. Only internal methods have
such objects. Retrieved via IDexMethod.getData()
.-
Method Summary
Modifier and TypeMethodDescriptionint
Get the method access flags.Get the code representation for this method.int
Retrieve the index of the dex file that defines this method body.int[]
Get type indexes of exceptions declared to be thrown by the method.int
Retrieve the inline mode for this method.int
Get the method index (index of Method object).int
Custom flags.boolean
Convenience method to check the apt-namedaccess flag
.boolean
Convenience method to check the apt-namedaccess flag
.boolean
isFinal()
Convenience method to check the apt-namedaccess flag
.boolean
isNative()
Convenience method to check the apt-namedaccess flag
.boolean
Convenience method to check the apt-namedaccess flag
.boolean
Convenience method to check the apt-namedaccess flag
.boolean
isPublic()
Convenience method to check the apt-namedaccess flag
.boolean
isStatic()
Convenience method to check the apt-namedaccess flag
.boolean
Convenience method to check the apt-namedaccess flag
.void
setInlineMode
(int mode) Set the inline mode for this method.void
setUserFlags
(int flags) Custom flags.
-
Method Details
-
getMethodIndex
int getMethodIndex()Get the method index (index of Method object).- Returns:
- the method index
-
getAccessFlags
int getAccessFlags()Get the method access flags.- Returns:
- the access flags, refer to the
ACC_xxx
constants in theIDexUnit
-
setInlineMode
void setInlineMode(int mode) Set the inline mode for this method. The mode can be set by user code as a hint for other processors, mostly the decompiler, on how to process this method.- Parameters:
mode
- one ofIDexUnit.INLINE_xxx
-
getInlineMode
int getInlineMode()Retrieve the inline mode for this method. SeesetInlineMode(int)
for details.- Returns:
- one of
IDexUnit.INLINE_xxx
(default isAutomatic
)
-
isConstructor
boolean isConstructor()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isStatic
boolean isStatic()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isAbstract
boolean isAbstract()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isNative
boolean isNative()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isSynthetic
boolean isSynthetic()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isPublic
boolean isPublic()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isProtected
boolean isProtected()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isPrivate
boolean isPrivate()Convenience method to check the apt-namedaccess flag
.- Returns:
-
isFinal
boolean isFinal()Convenience method to check the apt-namedaccess flag
.- Returns:
-
getCodeItem
IDexCodeItem getCodeItem()Get the code representation for this method.- Returns:
- the code representation, or null if none (eg, abstract methods)
-
getExceptionTypeIndices
int[] getExceptionTypeIndices()Get type indexes of exceptions declared to be thrown by the method.- Returns:
-
getDexFileIndex
int getDexFileIndex()Retrieve the index of the dex file that defines this method body.- Returns:
- an index into
IDexUnit.getDexFiles()
(of the owner , or -1 if unknown or not defined
-
getUserFlags
int getUserFlags()Custom flags.- Returns:
-
setUserFlags
void setUserFlags(int flags) Custom flags.- Parameters:
flags
-
-