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 TypeMethodDescriptionint
Get the field access flags.int
Retrieve the index of the dex file that defines this field body.int
Get the field index (index of Field object).int
Custom flags.boolean
isFinal()
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
.boolean
Convenience method to check the apt-namedaccess flag
.void
setUserFlags
(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_xxx
constants 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:
-
getDexFileIndex
int getDexFileIndex()Retrieve the index of the dex file that defines this field 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
-
-