public final class Annotation extends MutabilityControl implements java.lang.Comparable<Annotation>, ToHuman
| Constructor and Description |
|---|
Annotation(CstType type,
AnnotationVisibility visibility)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(NameValuePair pair)
Add an element to the set of (name, value) pairs for this instance.
|
int |
compareTo(Annotation other) |
boolean |
equals(java.lang.Object other) |
java.util.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.
|
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic Annotation(CstType type, AnnotationVisibility visibility)
type - non-null; type of the annotationvisibility - non-null; the visibility of the annotationpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Annotation other)
compareTo in interface java.lang.Comparable<Annotation>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toHuman()
toString().public 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 java.util.Collection<NameValuePair> getNameValuePairs()
non-null; the set of name-value pairsCopyright © 2020. All Rights Reserved.