Class Quick
java.lang.Object
com.sun.xml.bind.v2.model.annotation.Quick
- All Implemented Interfaces:
Locatable,Location,Annotation
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, com.sun.xml.bind.v2.model.annotation.Locatable).
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AnnotationGets the annotation object that this object is wrapping.final LocationGets the location object that this object points to.final LocatableGets the upstreamLocationinformation.protected abstract QuicknewInstance(Locatable upstream, Annotation core) Factory method to create a new instance of the same kind.final StringtoString()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, waitMethods 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. AQuickobject also works as a factory of itself -
getLocation
Description copied from interface:LocatableGets the location object that this object points to. This operation could be inefficient and costly.- Specified by:
getLocationin interfaceLocatable
-
getUpstream
Description copied from interface:LocatableGets the upstreamLocationinformation.- Specified by:
getUpstreamin interfaceLocatable- Returns:
- can be null.
-
toString
Description copied from interface:LocationReturns a human-readable string that represents this position.
-