Package org.jf.dexlib2.base.reference
Class BaseTypeReference
- java.lang.Object
-
- org.jf.dexlib2.base.reference.BaseReference
-
- org.jf.dexlib2.base.reference.BaseTypeReference
-
- All Implemented Interfaces:
java.lang.CharSequence,java.lang.Comparable<java.lang.CharSequence>,Reference,TypeReference
- Direct Known Subclasses:
BaseMethodParameter,BuilderClassDef,BuilderTypeReference,ClassDefRewriter.RewrittenClassDef,DexBackedClassDef,DexBackedTypeReference,ImmutableClassDef,ImmutableTypeReference,ReflectionClassDef
public abstract class BaseTypeReference extends BaseReference implements TypeReference
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException
-
-
Constructor Summary
Constructors Constructor Description BaseTypeReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)intcompareTo(java.lang.CharSequence o)Compare this TypeReference to another TypeReference, or more generally to another CharSequence.booleanequals(java.lang.Object o)Compares this TypeReference to another TypeReference, or more generally to another CharSequence for equality.inthashCode()Returns a hashcode for this TypeReference.intlength()java.lang.CharSequencesubSequence(int start, int end)java.lang.StringtoString()-
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
-
Methods inherited from interface org.jf.dexlib2.iface.reference.TypeReference
getType
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from interface:TypeReferenceReturns a hashcode for this TypeReference. This is defined to be getType().hashCode()- Specified by:
hashCodein interfaceTypeReference- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code value for this TypeReference
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:TypeReferenceCompares this TypeReference to another TypeReference, or more generally to another CharSequence for equality. This TypeReference is equal to a CharSequence iff this.getType().equals(other.toString()). Equivalently, This TypeReference is equal to another TypeReference iff this.getType().equals(other.getType()).- Specified by:
equalsin interfaceTypeReference- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object to be compared for equality with this TypeReference- Returns:
- true if the specified object is equal to this TypeReference
-
compareTo
public int compareTo(@Nonnull java.lang.CharSequence o)Description copied from interface:TypeReferenceCompare this TypeReference to another TypeReference, or more generally to another CharSequence. The comparison is defined to be this.getType().compareTo(other.toString())- Specified by:
compareToin interfacejava.lang.Comparable<java.lang.CharSequence>- Specified by:
compareToin interfaceTypeReference- Parameters:
o- The CharSequence to compare with this TypeReference- Returns:
- An integer representing the result of the comparison
-
length
public int length()
- Specified by:
lengthin interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)- Specified by:
subSequencein interfacejava.lang.CharSequence
-
toString
@Nonnull public java.lang.String toString()
- Specified by:
toStringin interfacejava.lang.CharSequence- Overrides:
toStringin classjava.lang.Object
-
-