| Constructor and Description |
|---|
ExtensionAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<Class<T>> |
classFor(TypeElement typeElement,
ProcessingEnvironment processingEnvironment)
Returns the
Class object that is associated to the typeElement |
<T> Optional<T> |
getAnnotationValue(ProcessingEnvironment processingEnvironment,
Element rootElement,
Class annotationClass,
String propertyName) |
List<TypeElement> |
getArrayClassAnnotationValue(Element element,
Class annotationClass,
String propertyName,
ProcessingEnvironment processingEnv) |
String |
getClassName(TypeElement typeElement,
ProcessingEnvironment processingEnvironment)
Returns the name of the class represented by the
typeElement |
Map<String,VariableElement> |
getFieldsAnnotatedWith(TypeElement element,
Class<? extends Annotation> annotation) |
String |
getJavaDocSummary(ProcessingEnvironment processingEnv,
Element element) |
MethodDocumentation |
getMethodDocumentation(ProcessingEnvironment processingEnv,
Element element) |
Set<TypeElement> |
getTypeElementsAnnotatedWith(Class<? extends Annotation> annotationType,
RoundEnvironment roundEnvironment)
|
public <T> Optional<Class<T>> classFor(TypeElement typeElement, ProcessingEnvironment processingEnvironment)
Class object that is associated to the typeElementT - the generic type of the returned ClasstypeElement - a TypeElement which represents a ClassprocessingEnvironment - the current ProcessingEnvironmentClass represented by typeElementpublic String getClassName(TypeElement typeElement, ProcessingEnvironment processingEnvironment)
typeElementtypeElement - a TypeElementprocessingEnvironment - the ProcessingEnvironmentpublic Set<TypeElement> getTypeElementsAnnotatedWith(Class<? extends Annotation> annotationType, RoundEnvironment roundEnvironment)
annotationType - the type of the AnnotationroundEnvironment - the current RoundEnvironmentSet with the TypeElements annotated with annotationTypepublic <T> Optional<T> getAnnotationValue(ProcessingEnvironment processingEnvironment, Element rootElement, Class annotationClass, String propertyName)
public List<TypeElement> getArrayClassAnnotationValue(Element element, Class annotationClass, String propertyName, ProcessingEnvironment processingEnv)
public Map<String,VariableElement> getFieldsAnnotatedWith(TypeElement element, Class<? extends Annotation> annotation)
public MethodDocumentation getMethodDocumentation(ProcessingEnvironment processingEnv, Element element)
public String getJavaDocSummary(ProcessingEnvironment processingEnv, Element element)
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.