Class Quick
- java.lang.Object
-
- com.sun.xml.bind.v2.model.annotation.Quick
-
public abstract class Quick extends java.lang.Object implements java.lang.annotation.Annotation, Locatable, Location
Base implementation ofLocatableAnnotation.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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.annotation.AnnotationgetAnnotation()Gets the annotation object that this object is wrapping.LocationgetLocation()Gets the location object that this object points to.LocatablegetUpstream()Gets the upstreamLocationinformation.protected abstract QuicknewInstance(Locatable upstream, java.lang.annotation.Annotation core)Factory method to create a new instance of the same kind.java.lang.StringtoString()Returns a human-readable string that represents this position.
-
-
-
Constructor Detail
-
Quick
protected Quick(Locatable upstream)
-
-
Method Detail
-
getAnnotation
protected abstract java.lang.annotation.Annotation getAnnotation()
Gets the annotation object that this object is wrapping.
-
newInstance
protected abstract Quick newInstance(Locatable upstream, java.lang.annotation.Annotation core)
Factory method to create a new instance of the same kind. AQuickobject also works as a factory of itself
-
getLocation
public final Location 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
public final Locatable getUpstream()
Description copied from interface:LocatableGets the upstreamLocationinformation.- Specified by:
getUpstreamin interfaceLocatable- Returns:
- can be null.
-
toString
public final java.lang.String toString()
Description copied from interface:LocationReturns a human-readable string that represents this position.
-
-