Class AbstractInlineAnnotationReaderImpl<T,​C,​F,​M>

  • All Implemented Interfaces:
    org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader<T,​C,​F,​M>
    Direct Known Subclasses:
    RuntimeInlineAnnotationReader

    public abstract class AbstractInlineAnnotationReaderImpl<T,​C,​F,​M>
    extends Object
    implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader<T,​C,​F,​M>
    AnnotationReader that reads annotation from classes, not from external binding files. This is meant to be used as a convenient partial implementation.
    Author:
    Kohsuke Kawaguchi (kk@kohsuke.org)
    • Constructor Detail

      • AbstractInlineAnnotationReaderImpl

        protected AbstractInlineAnnotationReaderImpl()
        Default constructor.
    • Method Detail

      • setErrorHandler

        public void setErrorHandler​(org.glassfish.jaxb.core.v2.model.core.ErrorHandler errorHandler)
        Specified by:
        setErrorHandler in interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader<T,​C,​F,​M>
      • getErrorHandler

        public final org.glassfish.jaxb.core.v2.model.core.ErrorHandler getErrorHandler()
        Always return a non-null valid ErrorHandler
      • getMethodAnnotation

        public final <A extends Annotation> A getMethodAnnotation​(Class<A> annotation,
                                                                  M getter,
                                                                  M setter,
                                                                  org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
        Specified by:
        getMethodAnnotation in interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader<T,​C,​F,​M>
      • hasMethodAnnotation

        public boolean hasMethodAnnotation​(Class<? extends Annotation> annotation,
                                           String propertyName,
                                           M getter,
                                           M setter,
                                           org.glassfish.jaxb.core.v2.model.annotation.Locatable srcPos)
        Specified by:
        hasMethodAnnotation in interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader<T,​C,​F,​M>
      • fullName

        protected abstract String fullName​(M m)
        Gets the fully-qualified name of the method. Used for error messages.