| Package | Description |
|---|---|
| net.digitalid.utility.processing.utility |
Provides utility classes for annotation processing.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable AnnotationValue |
ProcessingUtility.getAnnotationValue(@Nonnull AnnotationMirror annotationMirror)
Returns the annotation value for the value method of the given annotation mirror or null if not found.
|
static @Nullable AnnotationValue |
ProcessingUtility.getAnnotationValue(@Nonnull AnnotationMirror annotationMirror,
@Nonnull String methodName)
Returns the annotation value for the given method name of the given annotation mirror or null if not found.
|
static @Nullable Class<?> |
ProcessingUtility.getClass(@Nonnull TypeMirror typeMirror)
Returns the given type mirror as a class object.
|
static @Nullable TypeMirror |
ProcessingUtility.getComponentType(@Nonnull Element element)
Returns the component type of the type of the given element if it is an array or an iterable.
|
static @Nullable TypeMirror |
ProcessingUtility.getComponentType(@Nonnull Element element,
@Nonnull ErrorLogger errorLogger)
Returns the component type of the type of the given element if it is an array or an iterable and logs errors with the given logger otherwise.
|
static @Nullable TypeMirror |
ProcessingUtility.getComponentType(@Nonnull TypeMirror type)
Returns the component type of the given type if it is an array or an iterable.
|
static @Nullable TypeMirror |
ProcessingUtility.getComponentType(@Nonnull TypeMirror type,
@Nonnull ErrorLogger errorLogger)
Returns the component type of the given type if it is an array or an iterable and logs errors with the given logger otherwise.
|
static @Nullable List<TypeMirror> |
ProcessingUtility.getComponentTypes(@Nonnull Element element)
Returns the component types of the type of the given element if it is an array or an iterable.
|
static @Nullable List<TypeMirror> |
ProcessingUtility.getComponentTypes(@Nonnull Element element,
@Nonnull ErrorLogger errorLogger)
Returns the component types of the type of the given element if it is an array or an iterable and logs errors with the given logger otherwise.
|
static @Nullable List<TypeMirror> |
ProcessingUtility.getComponentTypes(@Nonnull TypeMirror type)
Returns the component types of the given type if it is an array or an iterable.
|
static @Nullable List<TypeMirror> |
ProcessingUtility.getComponentTypes(@Nonnull TypeMirror type,
@Nonnull ErrorLogger errorLogger)
Returns the component types of the given type if it is an array or an iterable and logs errors with the given logger otherwise.
|
static @Nullable TypeMirror |
ProcessingUtility.getErasedTypeMirror(@Nonnull Class<?> type)
Returns the given class object as an erased type mirror.
|
static @Nullable VariableElement |
ProcessingUtility.getFirstPublicStaticFieldOfType(@Nonnull TypeElement typeElement,
@Nonnull Class<?> fieldType)
Returns the first public and static field with the given type in the given type element.
|
static @Nullable TypeElement |
ProcessingUtility.getTypeElement(@Nonnull TypeMirror typeMirror)
Returns the given type mirror or its component type in case of arrays as a type element.
|
static @Nullable TypeMirror |
ProcessingUtility.getTypeMirror(@Nonnull Class<?> type)
Returns the given class object as a type mirror.
|
Copyright © 2017. All rights reserved.