Package org.apache.camel.updates
Class AbstractCamelYamlVisitor
java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.yaml.tree.Yaml,P>
org.openrewrite.yaml.YamlVisitor<P>
org.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
org.apache.camel.updates.AbstractCamelYamlVisitor
public abstract class AbstractCamelYamlVisitor
extends org.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
Parent of Camel yaml visitors, catches any exception, logs it and then continues.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidMethod is called before start of visiting a new document.org.openrewrite.yaml.tree.Yaml.MappingdoVisitMapping(org.openrewrite.yaml.tree.Yaml.Mapping mapping, org.openrewrite.ExecutionContext executionContext) org.openrewrite.yaml.tree.Yaml.Mapping.EntrydoVisitMappingEntry(org.openrewrite.yaml.tree.Yaml.Mapping.Entry entry, org.openrewrite.ExecutionContext executionContext) org.openrewrite.yaml.tree.Yaml.SequencedoVisitSequence(org.openrewrite.yaml.tree.Yaml.Sequence sequence, org.openrewrite.ExecutionContext executionContext) protected <T extends org.openrewrite.yaml.tree.Yaml>
TexecuteVisitWithCatch(Supplier<T> visitMethod, T origValue, org.openrewrite.ExecutionContext context) final org.openrewrite.yaml.tree.Yaml.DocumentvisitDocument(org.openrewrite.yaml.tree.Yaml.Document document, org.openrewrite.ExecutionContext o) final org.openrewrite.yaml.tree.Yaml.MappingvisitMapping(org.openrewrite.yaml.tree.Yaml.Mapping mapping, org.openrewrite.ExecutionContext executionContext) final org.openrewrite.yaml.tree.Yaml.Mapping.EntryvisitMappingEntry(org.openrewrite.yaml.tree.Yaml.Mapping.Entry entry, org.openrewrite.ExecutionContext executionContext) final org.openrewrite.yaml.tree.Yaml.SequencevisitSequence(org.openrewrite.yaml.tree.Yaml.Sequence sequence, org.openrewrite.ExecutionContext executionContext) Methods inherited from class org.openrewrite.yaml.YamlIsoVisitor
visitDocumentEnd, visitDocuments, visitScalar, visitSequenceEntryMethods inherited from class org.openrewrite.yaml.YamlVisitor
autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, maybeCoalesceProperties, removeUnused, visitAlias, visitAnchorMethods 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
-
AbstractCamelYamlVisitor
public AbstractCamelYamlVisitor()
-
-
Method Details
-
clearLocalCache
protected abstract void clearLocalCache()Method is called before start of visiting a new document. Implementations might need to clear all local state from previous document. -
visitDocument
public final org.openrewrite.yaml.tree.Yaml.Document visitDocument(org.openrewrite.yaml.tree.Yaml.Document document, org.openrewrite.ExecutionContext o) - Overrides:
visitDocumentin classorg.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
-
visitMappingEntry
public final org.openrewrite.yaml.tree.Yaml.Mapping.Entry visitMappingEntry(org.openrewrite.yaml.tree.Yaml.Mapping.Entry entry, org.openrewrite.ExecutionContext executionContext) - Overrides:
visitMappingEntryin classorg.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
-
visitSequence
public final org.openrewrite.yaml.tree.Yaml.Sequence visitSequence(org.openrewrite.yaml.tree.Yaml.Sequence sequence, org.openrewrite.ExecutionContext executionContext) - Overrides:
visitSequencein classorg.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
-
visitMapping
public final org.openrewrite.yaml.tree.Yaml.Mapping visitMapping(org.openrewrite.yaml.tree.Yaml.Mapping mapping, org.openrewrite.ExecutionContext executionContext) - Overrides:
visitMappingin classorg.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
-
doVisitMappingEntry
public org.openrewrite.yaml.tree.Yaml.Mapping.Entry doVisitMappingEntry(org.openrewrite.yaml.tree.Yaml.Mapping.Entry entry, org.openrewrite.ExecutionContext executionContext) -
doVisitSequence
public org.openrewrite.yaml.tree.Yaml.Sequence doVisitSequence(org.openrewrite.yaml.tree.Yaml.Sequence sequence, org.openrewrite.ExecutionContext executionContext) -
doVisitMapping
public org.openrewrite.yaml.tree.Yaml.Mapping doVisitMapping(org.openrewrite.yaml.tree.Yaml.Mapping mapping, org.openrewrite.ExecutionContext executionContext) -
executeVisitWithCatch
protected <T extends org.openrewrite.yaml.tree.Yaml> T executeVisitWithCatch(Supplier<T> visitMethod, T origValue, org.openrewrite.ExecutionContext context)
-