public final class SuperficialValidation
extends java.lang.Object
Element instances and ensures that all type information
is present and resolvable.| Modifier and Type | Method and Description |
|---|---|
static boolean |
validateElement(javax.lang.model.element.Element element)
Returns true if all types referenced by the given element are defined.
|
static boolean |
validateElements(java.lang.Iterable<? extends javax.lang.model.element.Element> elements)
Returns true if all of the given elements return true from
validateElement(Element). |
static boolean |
validateType(javax.lang.model.type.TypeMirror type)
Returns true if the given type is fully defined.
|
public static boolean validateElements(java.lang.Iterable<? extends javax.lang.model.element.Element> elements)
validateElement(Element).public static boolean validateElement(javax.lang.model.element.Element element)
public static boolean validateType(javax.lang.model.type.TypeMirror type)
ExecutableType, the parameter and return types must be fully defined, as must types declared
in a throws clause or in the bounds of any type parameters.Copyright © 2021 Google LLC. All Rights Reserved.