Package org.openrewrite.json.format
Class WrappingAndBracesVisitor<P>
java.lang.Object
org.openrewrite.TreeVisitor<Json,P>
org.openrewrite.json.JsonVisitor<P>
org.openrewrite.json.JsonIsoVisitor<P>
org.openrewrite.json.format.WrappingAndBracesVisitor<P>
-
Constructor Summary
ConstructorsConstructorDescriptionWrappingAndBracesVisitor(WrappingAndBracesStyle wrappingAndBracesStyle, TabsAndIndentsStyle tabsAndIndentsStyle, org.openrewrite.style.GeneralFormatStyle generalFormatStyle, @Nullable org.openrewrite.Tree stopAfter) -
Method Summary
Modifier and TypeMethodDescription@Nullable Json@Nullable JsonvisitArray(Json.Array array, P p) visitObject(Json.JsonObject obj, P p) Methods inherited from class org.openrewrite.json.JsonIsoVisitor
visitDocument, visitEmpty, visitIdentifier, visitLiteral, visitMemberMethods inherited from class org.openrewrite.json.JsonVisitor
autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, visitRightPadded, visitSpaceMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
Constructor Details
-
WrappingAndBracesVisitor
public WrappingAndBracesVisitor(WrappingAndBracesStyle wrappingAndBracesStyle, TabsAndIndentsStyle tabsAndIndentsStyle, org.openrewrite.style.GeneralFormatStyle generalFormatStyle, @Nullable org.openrewrite.Tree stopAfter)
-
-
Method Details
-
visitObject
- Overrides:
visitObjectin classJsonIsoVisitor<P>
-
visitArray
- Overrides:
visitArrayin classJsonIsoVisitor<P>
-
postVisit
-
visit
-