Interface IDexFieldData
public interface IDexFieldData
This interface represents a DEX
encoded_field object. Only internal fields have such
objects. Retrieved via IDexField.getData().-
Method Summary
Modifier and TypeMethodDescriptionintGet the field access flags.intRetrieve the index of the dex entry that defines this field body.default intDeprecated.intGet the field index (index of Field object).intCustom flags.booleanisFinal()Convenience method to check the apt-namedaccess flag.booleanConvenience method to check the apt-namedaccess flag.booleanConvenience method to check the apt-namedaccess flag.booleanisPublic()Convenience method to check the apt-namedaccess flag.booleanisStatic()Convenience method to check the apt-namedaccess flag.booleanConvenience method to check the apt-namedaccess flag.booleanConvenience method to check the apt-namedaccess flag.voidsetUserFlags(int flags) Custom flags.
-
Method Details
-
getFieldIndex
int getFieldIndex()Get the field index (index of Field object).- Returns:
- the field index
-
getAccessFlags
int getAccessFlags()Get the field access flags.- Returns:
- the access flags, refer to the
ACC_xxxconstants in theIDexUnit
-
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:
-
isStatic
boolean isStatic()Convenience method to check the apt-namedaccess flag.- Returns:
-
isFinal
boolean isFinal()Convenience method to check the apt-namedaccess flag.- Returns:
-
isSynthetic
boolean isSynthetic()Convenience method to check the apt-namedaccess flag.- Returns:
-
isVolatile
boolean isVolatile()Convenience method to check the apt-namedaccess flag.- Returns:
-
getDexEntryIndex
int getDexEntryIndex()Retrieve the index of the dex entry that defines this field body.- Returns:
- an index into
IDexUnit.getDexEntries()(of the owner , or -1 if unknown or not defined
-
getDexFileIndex
default int getDexFileIndex()Deprecated. -
getUserFlags
int getUserFlags()Custom flags.- Returns:
-
setUserFlags
void setUserFlags(int flags) Custom flags.- Parameters:
flags-
-
getDexEntryIndex()