Locatable Annotation.
Derived classes of this class is provided for annotations that are commonly
used in JAXB, to improve the performance of LocatableAnnotation#create.
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Annotation | |
| public final Location | getLocation()
Implements org. Gets the location object that this object points to. |
| public final Locatable | getUpstream()
Implements org. Gets the upstream |
| protected abstract Quick | newInstance(Locatable upstream, Annotation core)
Factory method to create a new instance of the same kind. |
| public final String | toString()
Overrides java. Implements java. Returns a string representation of this annotation. |
| upstream | back to summary |
|---|---|
| private final Locatable upstream | |
| Quick | back to summary |
|---|---|
| protected Quick(Locatable upstream) | |
| getAnnotation | back to summary |
|---|---|
| protected abstract Annotation getAnnotation() Gets the annotation object that this object is wrapping. | |
| getLocation | back to summary |
|---|---|
| public final Location getLocation() Implements org. Doc from org. Gets the location object that this object points to. This operation could be inefficient and costly.
| |
| getUpstream | back to summary |
|---|---|
| public final Locatable getUpstream() Implements org. Doc from org. Gets the upstream
| |
| newInstance | back to summary |
|---|---|
| protected abstract Quick newInstance(Locatable upstream, Annotation core) Factory method to create a new instance of the same kind. A object also works as a factory of itself | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Implements java. Doc from java. Returns a string representation of this annotation. The details of the representation are implementation-dependent, but the following may be regarded as typical: @com.example.Name(first="Duke", middle="of", last="Java")
| |