Class CSharpFileChecker<P>
java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
org.openrewrite.staticanalysis.csharp.CSharpFileChecker<P>
public class CSharpFileChecker<P>
extends org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
Add a search marker if vising a CSharp file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCSharpTree(org.openrewrite.Cursor cursor) static booleanisInstanceOfCs(@Nullable org.openrewrite.Tree tree) @Nullable org.openrewrite.TreeMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, getLanguage, isAcceptable, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
Constructor Details
-
CSharpFileChecker
public CSharpFileChecker()
-
-
Method Details
-
isCSharpTree
public static boolean isCSharpTree(org.openrewrite.Cursor cursor) -
isInstanceOfCs
public static boolean isInstanceOfCs(@Nullable org.openrewrite.Tree tree) -
visit
- Overrides:
visitin classorg.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
-