Class LocatableAnnotation

  • All Implemented Interfaces:
    InvocationHandler, org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.runtime.Location

    public class LocatableAnnotation
    extends Object
    implements InvocationHandler, org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.runtime.Location
    Annotation that also implements Locatable.
    Author:
    Kohsuke Kawaguchi
    • Method Detail

      • create

        public static <A extends Annotation> A create​(A annotation,
                                                      org.glassfish.jaxb.core.v2.model.annotation.Locatable parentSourcePos)
        Wraps the annotation into a proxy so that the returned object will also implement Locatable.
      • getUpstream

        public org.glassfish.jaxb.core.v2.model.annotation.Locatable getUpstream()
        Specified by:
        getUpstream in interface org.glassfish.jaxb.core.v2.model.annotation.Locatable
      • getLocation

        public org.glassfish.jaxb.core.v2.runtime.Location getLocation()
        Specified by:
        getLocation in interface org.glassfish.jaxb.core.v2.model.annotation.Locatable
      • toString

        public String toString()
        Specified by:
        toString in interface org.glassfish.jaxb.core.v2.runtime.Location
        Overrides:
        toString in class Object