public final class Annotation extends Object implements Comparable<Annotation>
| Constructor and Description |
|---|
Annotation(Dex dex,
byte visibility,
EncodedValue encodedAnnotation) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Annotation other)
Compares this object to the specified object to determine their relative
order.
|
EncodedValueReader |
getReader() |
int |
getTypeIndex() |
byte |
getVisibility() |
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeTo(Dex.Section out) |
public Annotation(Dex dex, byte visibility, EncodedValue encodedAnnotation)
public byte getVisibility()
public EncodedValueReader getReader()
public int getTypeIndex()
public void writeTo(Dex.Section out)
public int compareTo(Annotation other)
ComparablecompareTo in interface Comparable<Annotation>other - the object to compare to this instance.another;
a positive integer if this instance is greater than
another; 0 if this instance has the same order as
another.public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.