Class DexBackedFieldReference
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseFieldReference
org.jf.dexlib2.dexbacked.reference.DexBackedFieldReference
- All Implemented Interfaces:
Comparable<FieldReference>,FieldReference,Reference
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the type of the class that defines the referenced field.getName()Gets the name of the referenced field.intgetSize()Calculate and return the private size of a field reference.getType()Gets the type of the referenced field.voidVerifies that this reference is valid.Methods inherited from class org.jf.dexlib2.base.reference.BaseFieldReference
compareTo, equals, hashCode, toString
-
Field Details
-
dexFile
-
fieldIndex
private final int fieldIndex
-
-
Constructor Details
-
DexBackedFieldReference
-
-
Method Details
-
getDefiningClass
Description copied from interface:FieldReferenceGets the type of the class that defines the referenced field.- Returns:
- The type of the class that defines the referenced field
-
getName
Description copied from interface:FieldReferenceGets the name of the referenced field.- Returns:
- The name of the referenced field
-
getType
Description copied from interface:FieldReferenceGets the type of the referenced field.- Returns:
- The type of the referenced field
-
getSize
public int getSize()Calculate and return the private size of a field reference. Calculated as: class_idx + type_idx + name_idx- Returns:
- size in bytes
-
validateReference
Description copied from interface:ReferenceVerifies that this reference is valid.- Specified by:
validateReferencein interfaceReference- Overrides:
validateReferencein classBaseReference- Throws:
Reference.InvalidReferenceException- If the reference is not valid.
-