private static String getAnnotationValueAsString()

in tools/javac/Round.java [40:49]


    private static String getAnnotationValueAsString(TypeElement annotationType, ExecutableElement annotationValue, Element element) {
        if (annotationType == null) return null;
        for (AnnotationMirror annotation : element.getAnnotationMirrors()) {
            if (annotation.getAnnotationType().asElement().equals(annotationType)) {
                AnnotationValue value = annotation.getElementValues().get(annotationValue);
                return value.getValue().toString();
            }
        }
        return null;
    }