@SupportedAnnotationTypes(value={"org.apache.qpid.server.model.ManagedAttribute","org.apache.qpid.server.model.DerivedAttribute","org.apache.qpid.server.model.ManagedStatistic"}) public class AttributeAnnotationValidator extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static String |
DERIVED_ATTRIBUTE_CLASS_NAME |
static String |
MANAGED_ATTRIBUTE_CLASS_NAME |
static String |
MANAGED_STATISTIC_CLASS_NAME |
processingEnv
Constructor and Description |
---|
AttributeAnnotationValidator() |
Modifier and Type | Method and Description |
---|---|
void |
checkAnnotationIsOnMethodInInterface(TypeElement annotationElement,
Element e) |
void |
checkInterfaceExtendsConfiguredObject(TypeElement annotationElement,
Element e) |
void |
checkMethodName(TypeElement annotationElement,
ExecutableElement methodElement) |
void |
checkMethodReturnType(TypeElement annotationElement,
ExecutableElement methodElement) |
void |
checkMethodTakesNoArgs(TypeElement annotationElement,
ExecutableElement methodElement) |
void |
checkTypeAgreesWithName(TypeElement annotationElement,
ExecutableElement methodElement) |
SourceVersion |
getSupportedSourceVersion() |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
void |
processAttributes(RoundEnvironment roundEnv,
String elementName) |
void |
processStatistics(RoundEnvironment roundEnv,
String elementName) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
public static final String MANAGED_ATTRIBUTE_CLASS_NAME
public static final String DERIVED_ATTRIBUTE_CLASS_NAME
public static final String MANAGED_STATISTIC_CLASS_NAME
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
public void processAttributes(RoundEnvironment roundEnv, String elementName)
public void processStatistics(RoundEnvironment roundEnv, String elementName)
public void checkTypeAgreesWithName(TypeElement annotationElement, ExecutableElement methodElement)
public void checkMethodReturnType(TypeElement annotationElement, ExecutableElement methodElement)
public void checkMethodName(TypeElement annotationElement, ExecutableElement methodElement)
public void checkMethodTakesNoArgs(TypeElement annotationElement, ExecutableElement methodElement)
public void checkInterfaceExtendsConfiguredObject(TypeElement annotationElement, Element e)
public void checkAnnotationIsOnMethodInInterface(TypeElement annotationElement, Element e)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.