Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.annotation

public abstract Class AbstractInlineAnnotationReaderImpl<T, C, F, M>

extends Object
implements AnnotationReader<T, C, F, M>
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.model.annotation.RuntimeInlineAnnotationReader, com.sun.tools.jxc.ap.InlineAnnotationReaderImpl
Imports
org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader, .Locatable, org.glassfish.jaxb.core.v2.model.core.ErrorHandler, org.glassfish.jaxb.core.v2.runtime.IllegalAnnotationException, java.lang.annotation.Annotation

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 ([email protected])

Field Summary

Modifier and TypeField and Description
private ErrorHandler

Constructor Summary

AccessConstructor and Description
protected
AbstractInlineAnnotationReaderImpl()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
protected abstract String
fullName(M m)

Gets the fully-qualified name of the method.

public final ErrorHandler
getErrorHandler()

Always return a non-null valid ErrorHandler

public final <A extends Annotation> A
getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos)

Implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.getMethodAnnotation.

Reads an annotation on a property that consists of a getter and a setter.

public boolean
hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos)

Implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.hasMethodAnnotation.

Checks if the given method has an annotation.

public void
setErrorHandler(ErrorHandler errorHandler)

Implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.setErrorHandler.

Sets the error handler that receives errors found during reading annotations.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorHandlerback to summary
private ErrorHandler errorHandler

Constructor Detail

AbstractInlineAnnotationReaderImplback to summary
protected AbstractInlineAnnotationReaderImpl()

Default constructor.

Method Detail

fullNameback to summary
protected abstract String fullName(M m)

Gets the fully-qualified name of the method. Used for error messages.

getErrorHandlerback to summary
public final ErrorHandler getErrorHandler()

Always return a non-null valid ErrorHandler

getMethodAnnotationback to summary
public final <A extends Annotation> A getMethodAnnotation(Class<A> annotation, M getter, M setter, Locatable srcPos)

Implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.getMethodAnnotation.

Doc from org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.getMethodAnnotation.

Reads an annotation on a property that consists of a getter and a setter.

Annotations
@Override
hasMethodAnnotationback to summary
public boolean hasMethodAnnotation(Class<? extends Annotation> annotation, String propertyName, M getter, M setter, Locatable srcPos)

Implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.hasMethodAnnotation.

Doc from org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.hasMethodAnnotation.

Checks if the given method has an annotation.

Annotations
@Override
setErrorHandlerback to summary
public void setErrorHandler(ErrorHandler errorHandler)

Implements org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.setErrorHandler.

Doc from org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader.setErrorHandler.

Sets the error handler that receives errors found during reading annotations.

Annotations
@Override