public class DexMethodData
extends java.lang.Object
This object represents a DEX encoded_method
object.
DexMethod
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Get the method access flags.
|
DexCodeItem |
getCodeItem()
Get the code representation for this method.
|
int |
getMethodIndex()
Get the method index (index of Method object).
|
int |
getUserFlags()
Get user-defined flags for the method.
|
void |
setUserFlags(int flags)
Set user-defined flags for the method.
|
public int getMethodIndex()
Get the method index (index of Method object).
public int getAccessFlags()
Get the method access flags.
Refer to the ACC_xxx
constants in the Dex
class.
public DexCodeItem getCodeItem()
Get the code representation for this method.
public int getUserFlags()
Get user-defined flags for the method. These flags are not DEX access flags, and are not part of the DEX specifications.
User flags can be set by clients to add extra information to a method. Currently, it is recommended that API users use the higher 16-bits only, as lower 16-bits are reversed by the UI front-end.
UI front-end flags include: FLAG_CONST
, FLAG_LIBRARY
.
public void setUserFlags(int flags)
Set user-defined flags for the method. These flags are not DEX access flags, and are not part of the DEX specifications.
User flags can be set by clients to add extra information to a method. Currently, it is recommended that API users use the higher 16-bits only, as lower 16-bits are reversed by the UI front-end.
UI front-end flags include: FLAG_CONST
, FLAG_LIBRARY
.
flags
- the user-defined flags