Class LambdaReturns

java.lang.Object
org.openrewrite.analysis.dataflow.internal.LambdaReturns

public final class LambdaReturns extends Object
Helpers for reasoning about the return value of a lambda — the value that "flows out" of a functional argument. Shared by the higher-order ("lambda call") data-flow engine and the higher-order sink models so both agree on exactly which expressions count as a lambda's result.
  • Constructor Details

    • LambdaReturns

      public LambdaReturns()
  • Method Details

    • isLambdaResult

      public static boolean isLambdaResult(org.openrewrite.Cursor nodeCursor, org.openrewrite.java.tree.J.Lambda lambda)
      Holds if the node at nodeCursor is (the expression of) lambda's return value.