Annotation instance
and the values of its elements.
The "elements" we're talking about are the annotation attributes,
not its targets (the term "element" is used ambiguously
in Java's annotations documentation).
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final A | |
| private final Map | |
| private final int | |
| private static final Log | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private int | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public A | |
| public <T> T | |
| public Object | |
| public Map | |
| public <T> T | |
| private SortedSet | |
| public Class | |
| public int | Returns: The hash code of this descriptor.Overrides java. Annotation#hashCode().
|
| private static <V> V | run(PrivilegedAction<V> action)
Runs the given privileged action, using a privileged block if required Note This must never be changed into a publicly available method to avoid execution of arbitrary privileged actions within HV's protection domain. |
| public String |
| annotation | back to summary |
|---|---|
| private final A annotation | |
| attributes | back to summary |
|---|---|
| private final Map<String, Object> attributes | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| type | back to summary |
|---|---|
| private final Class<A> type | |
| AnnotationDescriptor | back to summary |
|---|---|
public AnnotationDescriptor(A annotation)
| |
| AnnotationDescriptor | back to summary |
|---|---|
| public AnnotationDescriptor(AnnotationDescriptor<A> descriptor) | |
| AnnotationDescriptor | back to summary |
|---|---|
| private AnnotationDescriptor(Class<A> annotationType, Map<String, Object> attributes) | |
| areEqual | back to summary |
|---|---|
| private boolean areEqual(Object o1, Object o2) | |
| buildHashCode | back to summary |
|---|---|
| private int buildHashCode() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) 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. | |
| getAnnotation | back to summary |
|---|---|
| public A getAnnotation() | |
| getAttribute | back to summary |
|---|---|
public <T> T getAttribute(String attributeName, Class<T> attributeType)
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String attributeName) | |
| getAttributes | back to summary |
|---|---|
| public Map | |
| getMandatoryAttribute | back to summary |
|---|---|
public <T> T getMandatoryAttribute(String attributeName, Class<T> attributeType)
| |
| getRegisteredAttributesInAlphabeticalOrder | back to summary |
|---|---|
| private SortedSet | |
| getType | back to summary |
|---|---|
| public Class | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Calculates the hash code of this annotation descriptor as described in
| |
| run | back to summary |
|---|---|
| private static <V> V run(PrivilegedAction<V> action) Runs the given privileged action, using a privileged block if required Note This must never be changed into a publicly available method to avoid execution of arbitrary privileged actions within HV's protection domain.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationDescriptor | |
| private Map | |
| private SortedSet | |
| public Class | |
| public boolean | |
| public void | |
| public String |
| attributes | back to summary |
|---|---|
| private final Map<String, Object> attributes | |
| type | back to summary |
|---|---|
| private final Class<S> type | |
| Builder | back to summary |
|---|---|
| public Builder(Class<S> type) | |
| Builder | back to summary |
|---|---|
| public Builder(Class<S> type, Map<String, Object> attributes) | |
| Builder | back to summary |
|---|---|
public Builder(S annotation)
| |
| build | back to summary |
|---|---|
| public AnnotationDescriptor | |
| getAnnotationAttributes | back to summary |
|---|---|
| private Map | |
| getRegisteredAttributesInAlphabeticalOrder | back to summary |
|---|---|
| private SortedSet | |
| getType | back to summary |
|---|---|
| public Class | |
| hasAttribute | back to summary |
|---|---|
| public boolean hasAttribute(String key) | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String attributeName, Object value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |