Class CallbackFlowModel
java.lang.Object
org.openrewrite.analysis.dataflow.CallbackFlowModel
A higher-order ("lambda call") flow model derived from a CodeQL-style summary whose access path
references a functional argument's parameter or return value. Mirrors CodeQL's
lambdaCall/lambdaCreation: when a method is invoked with a lambda (or anonymous
functional implementation) argument, data can flow into that lambda's parameter or out of its
return value.
CallbackFlowModel.Direction.INTO: data flows from theotherposition of the call into parameterparameterof the lambda passed as argumentcallbackArgument(e.g.Iterable.forEach:Argument[-1] -> Argument[0].Parameter[0]).CallbackFlowModel.Direction.OUT: data flows from the return value of the lambda passed as argumentcallbackArgumentto theotherposition of the call (e.g.Map.computeIfAbsent:Argument[1].ReturnValue -> ReturnValue).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classA position at a call site: the qualifier, an argument, or the return value. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CallbackFlowModel
public CallbackFlowModel()
-