Class TreeVisitor<T extends Tree,P>

java.lang.Object
org.openrewrite.TreeVisitor<T,P>
Type Parameters:
T - The type of tree.
P - An input object that is passed to every visit method.
Direct Known Subclasses:
BinaryVisitor, CreateFileVisitor, FindRecipeRunException, ParseErrorVisitor, PlainTextVisitor, Preconditions.Check, QuarkVisitor, RemoteVisitor

public abstract class TreeVisitor<T extends Tree,P> extends Object
Abstract TreeVisitor for processing elements

Always returns input type T provides Parameterizable P input which is mutable allowing context to be shared

postProcessing via afterVisit for conditionally chaining other operations with the expectation is that after TreeVisitors are invoked immediately after visiting SourceFile