Class Yaml.Documents

  • All Implemented Interfaces:
    org.openrewrite.SourceFile, org.openrewrite.Tree, Yaml
    Enclosing interface:
    Yaml

    public static class Yaml.Documents
    extends java.lang.Object
    implements Yaml, org.openrewrite.SourceFile
    • Constructor Detail

      • Documents

        public Documents()
    • Method Detail

      • copyPaste

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

        public java.lang.String getPrefix()
        Prefixes will always be on Yaml.Mapping.Entry.
        Specified by:
        getPrefix in interface Yaml
        Returns:
        The empty string.
      • 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