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 char
charAt(int index)
int
compareTo(java.lang.CharSequence o)
Compare this TypeReference to another TypeReference, or more generally to another CharSequence.boolean
equals(java.lang.Object o)
Compares this TypeReference to another TypeReference, or more generally to another CharSequence for equality.int
hashCode()
Returns a hashcode for this TypeReference.int
length()
java.lang.CharSequence
subSequence(int start, int end)
java.lang.String
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
-
Methods inherited from interface org.jf.dexlib2.iface.reference.TypeReference
getType
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from interface:TypeReference
Returns a hashcode for this TypeReference. This is defined to be getType().hashCode()- Specified by:
hashCode
in interfaceTypeReference
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code value for this TypeReference
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:TypeReference
Compares 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:
equals
in interfaceTypeReference
- Overrides:
equals
in 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:TypeReference
Compare this TypeReference to another TypeReference, or more generally to another CharSequence. The comparison is defined to be this.getType().compareTo(other.toString())- Specified by:
compareTo
in interfacejava.lang.Comparable<java.lang.CharSequence>
- Specified by:
compareTo
in 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:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
@Nonnull public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
-