Package org.openrewrite.json
Class JsonVisitor<P>
java.lang.Object
org.openrewrite.TreeVisitor<Json,P>
org.openrewrite.json.JsonVisitor<P>
- Direct Known Subclasses:
CountLinesVisitor,JsonIsoVisitor,JsonPrinter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Y2 extends Json>
Y2autoFormat(Y2 y, @Nullable Json stopAfter, P p, org.openrewrite.Cursor cursor) <Y2 extends Json>
Y2autoFormat(Y2 y, P p) <Y2 extends Json>
Y2autoFormat(Y2 y, P p, org.openrewrite.Cursor cursor) booleanisAcceptable(org.openrewrite.SourceFile sourceFile, P p) <Y2 extends Json>
Y2maybeAutoFormat(Y2 before, Y2 after, @Nullable Json stopAfter, P p, org.openrewrite.Cursor cursor) <Y2 extends Json>
Y2maybeAutoFormat(Y2 before, Y2 after, P p) <Y2 extends Json>
Y2maybeAutoFormat(Y2 before, Y2 after, P p, org.openrewrite.Cursor cursor) visitArray(Json.Array array, P p) visitDocument(Json.Document document, P p) visitEmpty(Json.Empty empty, P p) visitIdentifier(Json.Identifier identifier, P p) visitLiteral(Json.Literal literal, P p) visitMember(Json.Member member, P p) visitObject(Json.JsonObject obj, P p) <T extends Json>
@Nullable JsonRightPadded<T>visitRightPadded(@Nullable JsonRightPadded<T> right, P p) visitSpace(Space space, P p) Methods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
Constructor Details
-
JsonVisitor
public JsonVisitor()
-
-
Method Details
-
isAcceptable
-
getLanguage
-
maybeAutoFormat
-
maybeAutoFormat
-
maybeAutoFormat
-
autoFormat
-
autoFormat
-
autoFormat
-
visitArray
-
visitDocument
-
visitEmpty
-
visitIdentifier
-
visitLiteral
-
visitMember
-
visitObject
-
visitSpace
-
visitRightPadded
public <T extends Json> @Nullable JsonRightPadded<T> visitRightPadded(@Nullable JsonRightPadded<T> right, P p)
-