- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.model.annotation.Quick
-
- All Implemented Interfaces:
Annotation,org.glassfish.jaxb.core.v2.model.annotation.Locatable,org.glassfish.jaxb.core.v2.runtime.Location
public abstract class Quick extends Object implements Annotation, org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.runtime.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, org.glassfish.jaxb.core.v2.model.annotation.Locatable).- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQuick(org.glassfish.jaxb.core.v2.model.annotation.Locatable upstream)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AnnotationgetAnnotation()Gets the annotation object that this object is wrapping.org.glassfish.jaxb.core.v2.runtime.LocationgetLocation()org.glassfish.jaxb.core.v2.model.annotation.LocatablegetUpstream()protected abstract QuicknewInstance(org.glassfish.jaxb.core.v2.model.annotation.Locatable upstream, Annotation core)Factory method to create a new instance of the same kind.StringtoString()-
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
-
-
-
-
Method Detail
-
getAnnotation
protected abstract Annotation getAnnotation()
Gets the annotation object that this object is wrapping.
-
newInstance
protected abstract Quick newInstance(org.glassfish.jaxb.core.v2.model.annotation.Locatable upstream, Annotation core)
Factory method to create a new instance of the same kind. A object also works as a factory of itself
-
getLocation
public final org.glassfish.jaxb.core.v2.runtime.Location getLocation()
- Specified by:
getLocationin interfaceorg.glassfish.jaxb.core.v2.model.annotation.Locatable
-
getUpstream
public final org.glassfish.jaxb.core.v2.model.annotation.Locatable getUpstream()
- Specified by:
getUpstreamin interfaceorg.glassfish.jaxb.core.v2.model.annotation.Locatable
-
toString
public final String toString()
- Specified by:
toStringin interfaceAnnotation- Specified by:
toStringin interfaceorg.glassfish.jaxb.core.v2.runtime.Location- Overrides:
toStringin classObject
-
-