Uses of Enum
com.google.errorprone.dataflow.nullnesspropagation.Nullness
Package
Description
A predicate DSL for matching javac AST nodes.
Utility code.
-
Uses of Nullness in com.google.errorprone.dataflow.nullnesspropagation
Modifier and TypeClassDescriptionenum
Represents one of the possible nullness values in our nullness analysis.Modifier and TypeClassDescriptionenum
Represents one of the possible nullness values in our nullness analysis.Modifier and TypeMethodDescriptionNullness.deducedValueWhenNotEqual()
Returns theNullness
that corresponds to what you can deduce by knowing that some expression is not equal to another expression with thisNullness
.TrustingNullnessAnalysis.getFieldInitializerNullness
(com.sun.source.util.TreePath fieldDeclPath, com.sun.tools.javac.util.Context context) NullnessAnalysis.getNullness
(com.sun.source.util.TreePath exprPath, com.sun.tools.javac.util.Context context) Returns theNullness
of the leaf ofexprPath
.TrustingNullnessAnalysis.getNullness
(com.sun.source.util.TreePath exprPath, com.sun.tools.javac.util.Context context) Returns theNullness
of the leaf ofexprPath
.Nullness.greatestLowerBound
(Nullness other) Nullness.leastUpperBound
(Nullness other) static Nullness
Returns the enum constant of this type with the specified name.static Nullness[]
Nullness.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionNullnessAnnotations.fromAnnotationMirrors
(List<? extends AnnotationMirror> annotations) NullnessAnnotations.fromAnnotationsOn
(@Nullable com.sun.tools.javac.code.Symbol sym) NullnessAnnotations.fromAnnotationsOn
(@Nullable TypeMirror type) NullnessAnnotations.fromAnnotationTrees
(List<? extends com.sun.source.tree.AnnotationTree> annotations) NullnessAnnotations.fromDefaultAnnotations
(@Nullable Element sym) Walks the syntactically enclosing elements of the given element until it finds a defaulting annotation.NullnessAnnotations.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 returnsNullnessAnnotations.fromDefaultAnnotations(javax.lang.model.element.Element)
to find any default in scope of the given type variable.Modifier and TypeMethodDescriptionNullness.greatestLowerBound
(Nullness other) Nullness.leastUpperBound
(Nullness other) -
Uses of Nullness in com.google.errorprone.dataflow.nullnesspropagation.inference
Modifier and TypeMethodDescriptionInferredNullability.getExprNullness
(com.sun.source.tree.ExpressionTree exprTree) Get inferred nullness qualifier for an expression, if possible.com.google.common.collect.ImmutableMap
<com.sun.tools.javac.code.Symbol.TypeVariableSymbol, Nullness> InferredNullability.getNullnessGenerics
(com.sun.source.tree.MethodInvocationTree callsite) Get inferred nullness qualifiers for method-generic type variables at a callsite. -
Uses of Nullness in com.google.errorprone.matchers
-
Uses of Nullness in com.google.errorprone.util
Modifier and TypeMethodDescriptionstatic Nullness
ASTHelpers.getNullnessValue
(com.sun.source.tree.ExpressionTree expr, VisitorState state, NullnessAnalysis nullnessAnalysis) Returns theNullness
for an expression as determined by the nullness dataflow analysis.