AnnotationReader<T,C,F,M>
RuntimeInlineAnnotationReader
public abstract class AbstractInlineAnnotationReaderImpl<T,C,F,M> extends java.lang.Object implements 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.Constructor | Description |
---|---|
AbstractInlineAnnotationReaderImpl() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract java.lang.String |
fullName(M m) |
Gets the fully-qualified name of the method.
|
ErrorHandler |
getErrorHandler() |
Always return a non-null valid
ErrorHandler |
<A extends java.lang.annotation.Annotation> |
getMethodAnnotation(java.lang.Class<A> annotation,
M getter,
M setter,
Locatable srcPos) |
|
boolean |
hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String propertyName,
M getter,
M setter,
Locatable srcPos) |
|
void |
setErrorHandler(ErrorHandler errorHandler) |
getAllFieldAnnotations, getAllMethodAnnotations, getClassAnnotation, getClassArrayValue, getClassValue, getFieldAnnotation, getMethodAnnotation, getMethodParameterAnnotation, getPackageAnnotation, hasClassAnnotation, hasFieldAnnotation, hasMethodAnnotation
public void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler
in interface AnnotationReader<T,C,F,M>
public final ErrorHandler getErrorHandler()
ErrorHandler
public final <A extends java.lang.annotation.Annotation> A getMethodAnnotation(java.lang.Class<A> annotation, M getter, M setter, Locatable srcPos)
getMethodAnnotation
in interface AnnotationReader<T,C,F,M>
public boolean hasMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String propertyName, M getter, M setter, Locatable srcPos)
hasMethodAnnotation
in interface AnnotationReader<T,C,F,M>
protected abstract java.lang.String fullName(M m)
Copyright © 2017 Oracle Corporation. All rights reserved.