Class NullnessAnnotations
java.lang.Object
com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
annotationsAreAmbiguous
(Collection<? extends AnnotationMirror> annotations) static com.google.common.collect.ImmutableList
<AnnotationTree> annotationsRelevantToNullness
(List<? extends AnnotationTree> annotations) fromAnnotationMirrors
(List<? extends AnnotationMirror> annotations) fromAnnotationsOn
(@Nullable com.sun.tools.javac.code.Symbol sym) fromAnnotationsOn
(@Nullable TypeMirror type) fromAnnotationTrees
(List<? extends AnnotationTree> annotations) fromDefaultAnnotations
(@Nullable Element sym) Walks the syntactically enclosing elements of the given element until it finds a defaulting annotation.getUpperBound
(TypeVariable typeVar) Returns any declared or implied bound for the given type variable, meaning this returns any annotation on the given type variable and otherwise returnsfromDefaultAnnotations(Element)
to find any default in scope of the given type variable.
-
Method Details
-
fromAnnotationTrees
-
fromAnnotationMirrors
public static Optional<Nullness> fromAnnotationMirrors(List<? extends AnnotationMirror> annotations) -
annotationsAreAmbiguous
-
annotationsRelevantToNullness
public static com.google.common.collect.ImmutableList<AnnotationTree> annotationsRelevantToNullness(List<? extends AnnotationTree> annotations) -
fromAnnotationsOn
-
fromAnnotationsOn
-
fromDefaultAnnotations
-
getUpperBound
Returns any declared or implied bound for the given type variable, meaning this returns any annotation on the given type variable and otherwise returnsfromDefaultAnnotations(Element)
to find any default in scope of the given type variable.
-