com.sun.xml.bind.v2.model.annotation
Class Quick
java.lang.Object
com.sun.xml.bind.v2.model.annotation.Quick
- All Implemented Interfaces:
- Locatable, Location, Annotation
public abstract class Quick
- extends Object
- implements 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, com.sun.xml.bind.v2.model.annotation.Locatable).
- Author:
- Kohsuke Kawaguchi
Quick
protected Quick(Locatable upstream)
getAnnotation
protected abstract Annotation getAnnotation()
- Gets the annotation object that this object is wrapping.
newInstance
protected abstract Quick newInstance(Locatable upstream,
Annotation core)
- Factory method to create a new instance of the same kind.
A
Quick object also works as a factory of itself
getLocation
public final Location getLocation()
- Specified by:
getLocation in interface Locatable
getUpstream
public final Locatable getUpstream()
- Specified by:
getUpstream in interface Locatable
toString
public final String toString()
- Specified by:
toString in interface Location- Specified by:
toString in interface Annotation- Overrides:
toString in class Object
Copyright © 2014 Oracle Corporation. All Rights Reserved.