Class RoundEnvironments
- java.lang.Object
-
- org.inferred.freebuilder.processor.source.RoundEnvironments
-
public class RoundEnvironments extends java.lang.ObjectUtility class forRoundEnvironment.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRoundEnvironments()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<? extends javax.lang.model.element.Element>annotatedElementsIn(javax.annotation.processing.RoundEnvironment roundEnv, java.lang.Class<? extends java.lang.annotation.Annotation> a)Sanitizes the result ofRoundEnvironment.getElementsAnnotatedWith(javax.lang.model.element.TypeElement), which otherwise can contain elements annotated with annotations of ERROR type.
-
-
-
Method Detail
-
annotatedElementsIn
public static java.util.Set<? extends javax.lang.model.element.Element> annotatedElementsIn(javax.annotation.processing.RoundEnvironment roundEnv, java.lang.Class<? extends java.lang.annotation.Annotation> a)Sanitizes the result ofRoundEnvironment.getElementsAnnotatedWith(javax.lang.model.element.TypeElement), which otherwise can contain elements annotated with annotations of ERROR type.The canonical example is forgetting to import @Nullable.
-
-