Class Yaml.Documents

java.lang.Object
org.openrewrite.yaml.tree.Yaml.Documents
All Implemented Interfaces:
org.openrewrite.SourceFile, org.openrewrite.SourceFileWithReferences, org.openrewrite.Tree, Yaml
Enclosing interface:
Yaml

public static class Yaml.Documents extends Object implements Yaml, org.openrewrite.SourceFileWithReferences
  • Constructor Details

    • Documents

      public Documents()
  • Method Details

    • getCharset

      public Charset getCharset()
      Specified by:
      getCharset in interface org.openrewrite.SourceFile
    • withCharset

      public org.openrewrite.SourceFile withCharset(Charset charset)
      Specified by:
      withCharset in interface org.openrewrite.SourceFile
    • acceptYaml

      public <P> Yaml acceptYaml(YamlVisitor<P> v, P p)
      Specified by:
      acceptYaml in interface Yaml
    • copyPaste

      public Yaml.Documents copyPaste()
      Specified by:
      copyPaste in interface Yaml
      Returns:
      A new deep copy of this block with different IDs.
    • getPrefix

      public String getPrefix()
      Prefixes will always be on Yaml.Mapping.Entry.
      Specified by:
      getPrefix in interface Yaml
      Returns:
      The empty string.
    • withPrefix

      public Yaml.Documents withPrefix(String prefix)
      Specified by:
      withPrefix in interface Yaml
    • printer

      public <P> org.openrewrite.TreeVisitor<?,org.openrewrite.PrintOutputCapture<P>> printer(org.openrewrite.Cursor cursor)
      Specified by:
      printer in interface org.openrewrite.SourceFile
      Specified by:
      printer in interface org.openrewrite.Tree
    • getReferences

      public org.openrewrite.SourceFileWithReferences.References getReferences()
      Specified by:
      getReferences in interface org.openrewrite.SourceFileWithReferences