Package com.google.errorprone.dataflow.nullnesspropagation

Examples of com.google.errorprone.dataflow.nullnesspropagation.NullnessValue


  /**
   * Returns true if the leaf of {@code exprPath} is non-null.
   * Note that returning false does not necessarily mean that the expression can be null.
   */
  public static boolean isDefinitelyNonNull(TreePath exprPath, Context context) {
    NullnessValue val = DataFlow.expressionDataflow(exprPath, context, NULLNESS_PROPAGATION);
    return val != null && val == NullnessValue.NONNULL;
  }
View Full Code Here


  /**
   * Returns true if the leaf of {@code exprPath} is null.
   * Note that returning false does not necessarily mean that the expression can be non-null.
   */
  public static boolean isDefinitelyNull(TreePath exprPath, Context context) {
    NullnessValue val = DataFlow.expressionDataflow(exprPath, context, NULLNESS_PROPAGATION);
    return val != null && val == NullnessValue.NULL;
  }
View Full Code Here

TOP

Related Classes of com.google.errorprone.dataflow.nullnesspropagation.NullnessValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.