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:
- true if the field is public
-
isProtected
boolean isProtected()Convenience method to check the apt-namedaccess flag.- Returns:
- true if the field is protected
-
isPrivate
boolean isPrivate()Convenience method to check the apt-namedaccess flag.- Returns:
- true if the field is private
-
isStatic
boolean isStatic()Convenience method to check the apt-namedaccess flag.- Returns:
- true if the field is static
-
isFinal
boolean isFinal()Convenience method to check the apt-namedaccess flag.- Returns:
- true if the field is final
-
isSynthetic
boolean isSynthetic()Convenience method to check the apt-namedaccess flag.- Returns:
- true if the field is synthetic
-
isVolatile
boolean isVolatile()Convenience method to check the apt-namedaccess flag.- Returns:
- true if the field is volatile
-
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.- Returns:
- an index into
IDexUnit.getDexEntries(), or -1 if unknown or not defined
-
getUserFlags
int getUserFlags()Custom flags.- Returns:
- the custom user flags
-
setUserFlags
void setUserFlags(int flags) Custom flags.- Parameters:
flags- the custom user flags
-
getDexEntryIndex()