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:
CharSequence,Comparable<CharSequence>,Reference,TypeReference
- Direct Known Subclasses:
BaseMethodParameter,BuilderClassDef,BuilderTypeReference,ClassDefRewriter.RewrittenClassDef,DexBackedClassDef,DexBackedTypeReference,ImmutableClassDef,ImmutableTypeReference,PoolClassDef,ReflectionClassDef
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.reference.Reference
Reference.InvalidReferenceException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intCompare this TypeReference to another TypeReference, or more generally to another CharSequence.booleanCompares this TypeReference to another TypeReference, or more generally to another CharSequence for equality.inthashCode()Returns a hashcode for this TypeReference.intlength()subSequence(int start, int end) toString()Methods inherited from class org.jf.dexlib2.base.reference.BaseReference
validateReferenceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmptyMethods inherited from interface org.jf.dexlib2.iface.reference.Reference
validateReferenceMethods inherited from interface org.jf.dexlib2.iface.reference.TypeReference
getType
-
Constructor Details
-
BaseTypeReference
public BaseTypeReference()
-
-
Method Details
-
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 classObject- Returns:
- The hash code value for this TypeReference
-
equals
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 classObject- Parameters:
o- The object to be compared for equality with this TypeReference- Returns:
- true if the specified object is equal to this TypeReference
-
compareTo
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 interfaceComparable<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 interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-