|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.util.MutabilityControl
com.android.dx.rop.annotation.Annotation
public final class Annotation
An annotation on an element of a class. Annotations have an associated type and additionally consist of a set of (name, value) pairs, where the names are unique.
| Constructor Summary | |
|---|---|
Annotation(CstType type,
AnnotationVisibility visibility)
Construct an instance. |
|
| Method Summary | |
|---|---|
void |
add(NameValuePair pair)
Add an element to the set of (name, value) pairs for this instance. |
int |
compareTo(Annotation other)
|
boolean |
equals(Object other)
|
Collection<NameValuePair> |
getNameValuePairs()
Gets the set of name-value pairs contained in this instance. |
CstType |
getType()
Gets the type of this instance. |
AnnotationVisibility |
getVisibility()
Gets the visibility of this instance. |
int |
hashCode()
|
void |
put(NameValuePair pair)
Put an element into the set of (name, value) pairs for this instance. |
String |
toHuman()
Return the "human" string form of this instance. |
String |
toString()
|
| Methods inherited from class com.android.dx.util.MutabilityControl |
|---|
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Annotation(CstType type,
AnnotationVisibility visibility)
type - non-null; type of the annotationvisibility - non-null; the visibility of the annotation| Method Detail |
|---|
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Annotation other)
compareTo in interface Comparable<Annotation>public String toString()
toString in class Objectpublic String toHuman()
toString().
toHuman in interface ToHumannon-null; the human string formpublic CstType getType()
non-null; the typepublic AnnotationVisibility getVisibility()
non-null; the visibilitypublic void put(NameValuePair pair)
pair - non-null; the (name, value) pair to place into this instancepublic void add(NameValuePair pair)
pair - non-null; the (name, value) pair to add to this instancepublic Collection<NameValuePair> getNameValuePairs()
non-null; the set of name-value pairs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||