Package org.openrewrite.json
Class CountLinesVisitor
java.lang.Object
org.openrewrite.TreeVisitor<Json,P>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
countLines
(org.openrewrite.Tree tree) visitSpace
(Space space, AtomicInteger count) Methods inherited from class org.openrewrite.json.JsonVisitor
getLanguage, isAcceptable, visitArray, visitDocument, visitEmpty, visitIdentifier, visitLiteral, visitMember, visitObject, visitRightPadded
Methods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitSourceFile
-
Constructor Details
-
CountLinesVisitor
public CountLinesVisitor()
-
-
Method Details
-
visitSpace
- Overrides:
visitSpace
in classJsonVisitor<AtomicInteger>
-
countLines
public static int countLines(org.openrewrite.Tree tree)
-