Class DexBackedStringReference
java.lang.Object
org.jf.dexlib2.base.reference.BaseReference
org.jf.dexlib2.base.reference.BaseStringReference
org.jf.dexlib2.dexbacked.reference.DexBackedStringReference
- All Implemented Interfaces:
CharSequence,Comparable<CharSequence>,Reference,StringReference
-
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 TypeMethodDescriptionintgetSize()Calculate and return the private size of a string reference.Gets the referenced string.voidVerifies that this reference is valid.Methods inherited from class org.jf.dexlib2.base.reference.BaseStringReference
charAt, compareTo, equals, hashCode, length, subSequence, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
dexFile
-
stringIndex
public final int stringIndex
-
-
Constructor Details
-
DexBackedStringReference
-
-
Method Details
-
getString
Description copied from interface:StringReferenceGets the referenced string.- Returns:
- the referenced string
-
getSize
public int getSize()Calculate and return the private size of a string reference. Calculated as: string_data_off + string_data_item size- 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.
-