| 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 |
List<TypeElement> |
getAnnotationClassesValue(Element element,
Class<? extends Annotation> annotation,
Class[] valueClasses) |
<T> T |
getAnnotationFromType(ProcessingEnvironment processingEnvironment,
TypeElement rootElement,
Class<? extends Annotation> annotationClass) |
<T> T |
getAnnotationValue(Element rootElement,
Class<? extends Annotation> anAnnotation)
Returns the content of a field for a given annotation.
|
String |
getClassName(TypeElement typeElement,
ProcessingEnvironment processingEnvironment)
Returns the name of the class represented by the
typeElement |
Element |
getElementForClass(List<AnnotationValue> annotationValues,
Class<?> clazz) |
Map<String,VariableElement> |
getFieldsAnnotatedWith(TypeElement element,
Class<? extends Annotation> annotation) |
String |
getJavaDocSummary(ProcessingEnvironment processingEnv,
Element element) |
MethodDocumentation |
getMethodDocumentation(ProcessingEnvironment processingEnv,
Element element) |
TypeElement |
getSuperclassElement(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 List<TypeElement> getAnnotationClassesValue(Element element, Class<? extends Annotation> annotation, Class[] valueClasses)
public <T> T getAnnotationFromType(ProcessingEnvironment processingEnvironment, TypeElement rootElement, Class<? extends Annotation> annotationClass)
public Element getElementForClass(List<AnnotationValue> annotationValues, Class<?> clazz)
public Map<String,VariableElement> getFieldsAnnotatedWith(TypeElement element, Class<? extends Annotation> annotation)
public TypeElement getSuperclassElement(Element element)
public MethodDocumentation getMethodDocumentation(ProcessingEnvironment processingEnv, Element element)
public String getJavaDocSummary(ProcessingEnvironment processingEnv, Element element)
public <T> T getAnnotationValue(Element rootElement, Class<? extends Annotation> anAnnotation)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.