public final class SuperficialValidation
extends java.lang.Object
Element
instances and ensures that all type information
is present and resolvable.Modifier and Type | Field and Description |
---|---|
private static javax.lang.model.element.ElementVisitor<java.lang.Boolean,java.lang.Void> |
ELEMENT_VALIDATING_VISITOR |
private static javax.lang.model.type.TypeVisitor<java.lang.Boolean,java.lang.Void> |
TYPE_VALIDATING_VISITOR |
private static javax.lang.model.element.AnnotationValueVisitor<java.lang.Boolean,javax.lang.model.type.TypeMirror> |
VALUE_VALIDATING_VISITOR |
Constructor and Description |
---|
SuperficialValidation() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
isValidBaseElement(javax.lang.model.element.Element e) |
private static boolean |
validateAnnotation(javax.lang.model.element.AnnotationMirror annotationMirror) |
private static boolean |
validateAnnotations(java.lang.Iterable<? extends javax.lang.model.element.AnnotationMirror> annotationMirrors) |
private static boolean |
validateAnnotationValue(javax.lang.model.element.AnnotationValue annotationValue,
javax.lang.model.type.TypeMirror expectedType) |
private static boolean |
validateAnnotationValues(java.util.Map<? extends javax.lang.model.element.ExecutableElement,? extends javax.lang.model.element.AnnotationValue> valueMap) |
static boolean |
validateElement(javax.lang.model.element.Element element) |
static boolean |
validateElements(java.lang.Iterable<? extends javax.lang.model.element.Element> elements) |
private static boolean |
validateType(javax.lang.model.type.TypeMirror type) |
private static boolean |
validateTypes(java.lang.Iterable<? extends javax.lang.model.type.TypeMirror> types) |
private static final javax.lang.model.element.ElementVisitor<java.lang.Boolean,java.lang.Void> ELEMENT_VALIDATING_VISITOR
private static final javax.lang.model.type.TypeVisitor<java.lang.Boolean,java.lang.Void> TYPE_VALIDATING_VISITOR
private static final javax.lang.model.element.AnnotationValueVisitor<java.lang.Boolean,javax.lang.model.type.TypeMirror> VALUE_VALIDATING_VISITOR
public static boolean validateElements(java.lang.Iterable<? extends javax.lang.model.element.Element> elements)
public static boolean validateElement(javax.lang.model.element.Element element)
private static boolean isValidBaseElement(javax.lang.model.element.Element e)
private static boolean validateTypes(java.lang.Iterable<? extends javax.lang.model.type.TypeMirror> types)
private static boolean validateType(javax.lang.model.type.TypeMirror type)
private static boolean validateAnnotations(java.lang.Iterable<? extends javax.lang.model.element.AnnotationMirror> annotationMirrors)
private static boolean validateAnnotation(javax.lang.model.element.AnnotationMirror annotationMirror)
private static boolean validateAnnotationValues(java.util.Map<? extends javax.lang.model.element.ExecutableElement,? extends javax.lang.model.element.AnnotationValue> valueMap)
private static boolean validateAnnotationValue(javax.lang.model.element.AnnotationValue annotationValue, javax.lang.model.type.TypeMirror expectedType)