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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Method is called before start of visiting a new document.
    org.openrewrite.yaml.tree.Yaml.Mapping
    doVisitMapping(org.openrewrite.yaml.tree.Yaml.Mapping mapping, org.openrewrite.ExecutionContext executionContext)
     
    org.openrewrite.yaml.tree.Yaml.Mapping.Entry
    doVisitMappingEntry(org.openrewrite.yaml.tree.Yaml.Mapping.Entry entry, org.openrewrite.ExecutionContext executionContext)
     
    org.openrewrite.yaml.tree.Yaml.Sequence
    doVisitSequence(org.openrewrite.yaml.tree.Yaml.Sequence sequence, org.openrewrite.ExecutionContext executionContext)
     
    protected <T extends org.openrewrite.yaml.tree.Yaml>
    T
    executeVisitWithCatch(Supplier<T> visitMethod, T origValue, org.openrewrite.ExecutionContext context)
     
    final org.openrewrite.yaml.tree.Yaml.Document
    visitDocument(org.openrewrite.yaml.tree.Yaml.Document document, org.openrewrite.ExecutionContext o)
     
    final org.openrewrite.yaml.tree.Yaml.Mapping
    visitMapping(org.openrewrite.yaml.tree.Yaml.Mapping mapping, org.openrewrite.ExecutionContext executionContext)
     
    final org.openrewrite.yaml.tree.Yaml.Mapping.Entry
    visitMappingEntry(org.openrewrite.yaml.tree.Yaml.Mapping.Entry entry, org.openrewrite.ExecutionContext executionContext)
     
    final org.openrewrite.yaml.tree.Yaml.Sequence
    visitSequence(org.openrewrite.yaml.tree.Yaml.Sequence sequence, org.openrewrite.ExecutionContext executionContext)
     

    Methods inherited from class org.openrewrite.yaml.YamlIsoVisitor

    visitDocumentEnd, visitDocuments, visitScalar, visitSequenceEntry

    Methods inherited from class org.openrewrite.yaml.YamlVisitor

    autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, maybeCoalesceProperties, removeUnused, visitAlias, visitAnchor

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      visitDocument in class org.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:
      visitMappingEntry in class org.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:
      visitSequence in class org.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:
      visitMapping in class org.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)