Class InferredNullability
java.lang.Object
com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
Results of running
NullnessQualifierInference
over a method. The constraintGraph
represents qualifier constraints as a directed graph, where graph reachability encodes a
less-than-or-equal-to relationship.-
Method Summary
Modifier and TypeMethodDescriptiongetExprNullness
(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> getNullnessGenerics
(com.sun.source.tree.MethodInvocationTree callsite) Get inferred nullness qualifiers for method-generic type variables at a callsite.
-
Method Details
-
getNullnessGenerics
public com.google.common.collect.ImmutableMap<com.sun.tools.javac.code.Symbol.TypeVariableSymbol,Nullness> getNullnessGenerics(com.sun.source.tree.MethodInvocationTree callsite) Get inferred nullness qualifiers for method-generic type variables at a callsite. When inference is not possible for a given type variable, that type variable is not included in the resulting map. -
getExprNullness
-