Class Quick
java.lang.Object
org.glassfish.jaxb.runtime.v2.model.annotation.Quick
- All Implemented Interfaces:
Annotation
,Locatable
,Location
Base implementation of
Locatable
Annotation
.
Derived classes of this class is provided for annotations that are commonly
used in JAXB, to improve the performance of LocatableAnnotation.create(A, org.glassfish.jaxb.core.v2.model.annotation.Locatable)
.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Annotation
Gets the annotation object that this object is wrapping.final Location
Gets the location object that this object points to.final Locatable
Gets the upstreamLocation
information.protected abstract Quick
newInstance
(Locatable upstream, Annotation core) Factory method to create a new instance of the same kind.final String
toString()
Returns a human-readable string that represents this position.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode
-
Constructor Details
-
Quick
-
-
Method Details
-
getAnnotation
Gets the annotation object that this object is wrapping. -
newInstance
Factory method to create a new instance of the same kind. AQuick
object also works as a factory of itself -
getLocation
Description copied from interface:Locatable
Gets the location object that this object points to. This operation could be inefficient and costly.- Specified by:
getLocation
in interfaceLocatable
-
getUpstream
Description copied from interface:Locatable
Gets the upstreamLocation
information.- Specified by:
getUpstream
in interfaceLocatable
- Returns:
- can be null.
-
toString
Description copied from interface:Location
Returns a human-readable string that represents this position.
-