public static <T> T getAnnotationValue(Class<T> expectedType, AnnotationMirror mirror, String name) { return resolveAnnotationValue(expectedType, getAnnotationValue(mirror, name)); }
public static <T> List<T> getAnnotationValueList(Class<T> expectedListType, AnnotationMirror mirror, String name) { List<?> values = getAnnotationValue(List.class, mirror, name); List<T> result = new ArrayList<>(); if (values != null) { for (Object value : values) { T annotationValue = resolveAnnotationValue(expectedListType, (AnnotationValue) value); if (annotationValue != null) { result.add(annotationValue); } } } return result; }
@SuppressWarnings("unchecked") public static <T> List<T> getAnnotationValueList(Class<T> expectedListType, AnnotationMirror mirror, String name) { List<? extends AnnotationValue> values = getAnnotationValue(List.class, mirror, name); List<T> result = new ArrayList<>(); if (values != null) { for (AnnotationValue value : values) { T annotationValue = resolveAnnotationValue(expectedListType, value); if (annotationValue != null) { result.add(annotationValue); } } } return result; }
public static <T> T getAnnotationValue(Class<T> expectedType, AnnotationMirror mirror, String name) { return resolveAnnotationValue(expectedType, getAnnotationValue(mirror, name)); }
AnnotationValue executeWithValue1 = child.getExecuteWithValue(); List<AnnotationValue> executeWithValues = ElementUtils.resolveAnnotationValue(List.class, executeWithValue1); List<NodeExecutionData> executeWith = new ArrayList<>(); for (AnnotationValue executeWithValue : executeWithValues) { String executeWithString = ElementUtils.resolveAnnotationValue(String.class, executeWithValue);