Package org.openrewrite.yaml
Class YamlVisitor<P>
java.lang.Object
org.openrewrite.TreeVisitor<Yaml,P>
org.openrewrite.yaml.YamlVisitor<P>
- Direct Known Subclasses:
FindIndentYamlVisitor,MergeYamlVisitor,ReplaceAliasWithAnchorValueVisitor,YamlIsoVisitor,YamlPrinter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Y2 extends Yaml>
Y2autoFormat(Y2 y, @Nullable Yaml stopAfter, P p, org.openrewrite.Cursor cursor) <Y2 extends Yaml>
Y2autoFormat(Y2 y, P p) <Y2 extends Yaml>
Y2autoFormat(Y2 y, P p, org.openrewrite.Cursor cursor) booleanisAcceptable(org.openrewrite.SourceFile sourceFile, P p) <Y2 extends Yaml>
Y2maybeAutoFormat(Y2 before, Y2 after, @Nullable Yaml stopAfter, P p, org.openrewrite.Cursor cursor) <Y2 extends Yaml>
Y2maybeAutoFormat(Y2 before, Y2 after, P p) <Y2 extends Yaml>
Y2maybeAutoFormat(Y2 before, Y2 after, P p, org.openrewrite.Cursor cursor) voidDeprecated.voidremoveUnused(@Nullable org.openrewrite.Cursor cursorParent) visitAlias(Yaml.Alias alias, P p) visitAnchor(Yaml.Anchor anchor, P p) visitDocument(Yaml.Document document, P p) visitDocuments(Yaml.Documents documents, P p) visitMapping(Yaml.Mapping mapping, P p) visitMappingEntry(Yaml.Mapping.Entry entry, P p) visitScalar(Yaml.Scalar scalar, P p) visitSequence(Yaml.Sequence sequence, P p) visitSequenceEntry(Yaml.Sequence.Entry entry, P p) Methods inherited from class org.openrewrite.TreeVisitor
adapt, defaultValue, doAfterVisit, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, setCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitSourceFile
-
Constructor Details
-
YamlVisitor
public YamlVisitor()
-
-
Method Details
-
isAcceptable
-
getLanguage
-
maybeAutoFormat
-
maybeAutoFormat
-
maybeAutoFormat
-
autoFormat
-
autoFormat
-
autoFormat
-
visitDocuments
-
visitDocument
-
visitMapping
-
visitMappingEntry
-
visitScalar
-
visitSequence
-
visitSequenceEntry
-
visitAnchor
-
visitAlias
-
maybeCoalesceProperties
Deprecated. -
removeUnused
public void removeUnused(@Nullable @Nullable org.openrewrite.Cursor cursorParent)
-