Class LambdaReturns
java.lang.Object
org.openrewrite.analysis.dataflow.internal.LambdaReturns
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisLambdaResult(org.openrewrite.Cursor nodeCursor, org.openrewrite.java.tree.J.Lambda lambda) Holds if the node atnodeCursoris (the expression of)lambda's return value.
-
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 atnodeCursoris (the expression of)lambda's return value.
-