public final class Annotation extends MutabilityControl implements 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(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() |
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic Annotation(CstType type, AnnotationVisibility visibility)
type - non-null; type of the annotationvisibility - non-null; the visibility of the annotationpublic int compareTo(Annotation other)
compareTo in interface Comparable<Annotation>public 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 Collection<NameValuePair> getNameValuePairs()
non-null; the set of name-value pairsCopyright © 2016. All Rights Reserved.