Class RoundEnvironments
java.lang.Object
org.inferred.freebuilder.processor.source.RoundEnvironments
Utility class for
RoundEnvironment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotatedElementsIn(RoundEnvironment roundEnv, Class<? extends Annotation> a) Sanitizes the result ofRoundEnvironment.getElementsAnnotatedWith(TypeElement), which otherwise can contain elements annotated with annotations of ERROR type.
-
Constructor Details
-
RoundEnvironments
private RoundEnvironments()
-
-
Method Details
-
annotatedElementsIn
public static Set<? extends Element> annotatedElementsIn(RoundEnvironment roundEnv, Class<? extends Annotation> a) Sanitizes the result ofRoundEnvironment.getElementsAnnotatedWith(TypeElement), which otherwise can contain elements annotated with annotations of ERROR type.The canonical example is forgetting to import @Nullable.
-