Class SuperficialValidation
java.lang.Object
com.google.auto.common.SuperficialValidation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ElementVisitor<Boolean, Void> private static final TypeVisitor<Boolean, Void> private static final AnnotationValueVisitor<Boolean, TypeMirror> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanprivate static booleanvalidateAnnotation(AnnotationMirror annotationMirror) private static booleanvalidateAnnotations(Iterable<? extends AnnotationMirror> annotationMirrors) private static booleanvalidateAnnotationValue(AnnotationValue annotationValue, TypeMirror expectedType) private static booleanvalidateAnnotationValues(Map<? extends ExecutableElement, ? extends AnnotationValue> valueMap) static booleanvalidateElement(Element element) static booleanvalidateElements(Iterable<? extends Element> elements) private static booleanvalidateType(TypeMirror type) private static booleanvalidateTypes(Iterable<? extends TypeMirror> types)
-
Field Details
-
ELEMENT_VALIDATING_VISITOR
-
TYPE_VALIDATING_VISITOR
-
VALUE_VALIDATING_VISITOR
-
-
Constructor Details
-
SuperficialValidation
public SuperficialValidation()
-
-
Method Details
-
validateElements
-
validateElement
-
isValidBaseElement
-
validateTypes
-
validateType
-
validateAnnotations
-
validateAnnotation
-
validateAnnotationValues
private static boolean validateAnnotationValues(Map<? extends ExecutableElement, ? extends AnnotationValue> valueMap) -
validateAnnotationValue
private static boolean validateAnnotationValue(AnnotationValue annotationValue, TypeMirror expectedType)
-