| Modifier and Type | Field and Description |
|---|---|
| private final TreeMap | elements
|
| private final CstType | type
|
| private final AnnotationVisibility | visibility
|
| Access | Constructor and Description |
|---|---|
| public | Annotation(CstType
non-null; type of the annotationnon-null; the visibility of the annotationConstruct an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(NameValuePair
non-null; the (name, value) pair to add to this instanceAdd an element to the set of (name, value) pairs for this instance. |
| public int | compareTo(Annotation
the object to be compared. other)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Collection | Returns: non-null; the set of name-value pairsGets the set of name-value pairs contained in this instance. |
| public CstType | |
| public AnnotationVisibility | |
| public int | |
| public void | put(NameValuePair
non-null; the (name, value) pair to place into this instancePut an element into the set of (name, value) pairs for this instance. |
| public String | toHuman()
Implements org. |
| public String |
| elements | back to summary |
|---|---|
| private final TreeMap<CstString, NameValuePair> elements
| |
| type | back to summary |
|---|---|
| private final CstType type
| |
| visibility | back to summary |
|---|---|
| private final AnnotationVisibility visibility
| |
| Annotation | back to summary |
|---|---|
| public Annotation(CstType type, AnnotationVisibility visibility) Construct an instance. It initially contains no elements.
| |
| add | back to summary |
|---|---|
| public void add(NameValuePair pair) Add an element to the set of (name, value) pairs for this instance. It is an error to call this method if there is a preexisting element with the same name.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Annotation other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getNameValuePairs | back to summary |
|---|---|
| public Collection Gets the set of name-value pairs contained in this instance. The result is always unmodifiable.
| |
| getType | back to summary |
|---|---|
| public CstType getType() Gets the type of this instance.
| |
| getVisibility | back to summary |
|---|---|
| public AnnotationVisibility getVisibility() Gets the visibility of this instance.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| put | back to summary |
|---|---|
| public void put(NameValuePair pair) Put an element into the set of (name, value) pairs for this instance. If there is a preexisting element with the same name, it will be replaced by this method.
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements org. Doc from org. Return the "human" string form of this instance. This is
generally less "debuggy" than
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |