Class ImmutableStringReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseStringReference
-
- org.jf.dexlib2.immutable.reference.ImmutableStringReference
-
- All Implemented Interfaces:
java.lang.CharSequence
,java.lang.Comparable<java.lang.CharSequence>
,Reference
,StringReference
,ImmutableReference
public class ImmutableStringReference extends BaseStringReference implements ImmutableReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
str
-
Constructor Summary
Constructors Constructor Description ImmutableStringReference(java.lang.String str)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getString()
Gets the referenced string.static ImmutableStringReference
of(StringReference stringReference)
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseStringReference
charAt, compareTo, equals, hashCode, length, subSequence, toString
-
Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReference
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReference
-
-
-
-
Method Detail
-
of
@Nonnull public static ImmutableStringReference of(@Nonnull StringReference stringReference)
-
getString
@Nonnull public java.lang.String getString()
Description copied from interface:StringReference
Gets the referenced string.- Specified by:
getString
in interfaceStringReference
- Returns:
- the referenced string
-
-