Class Proto.Document

java.lang.Object
org.openrewrite.protobuf.tree.Proto.Document
All Implemented Interfaces:
Proto, org.openrewrite.SourceFile, org.openrewrite.Tree
Enclosing interface:
Proto

public static class Proto.Document extends Object implements Proto, org.openrewrite.SourceFile
  • Constructor Details

    • Document

      public Document()
  • 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
    • getBody

      public List<Proto> getBody()
    • withBody

      public Proto.Document withBody(List<Proto> body)
    • acceptProto

      public <P> Proto acceptProto(ProtoVisitor<P> v, P p)
      Specified by:
      acceptProto in interface Proto
    • 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
    • getPadding

      public Proto.Document.Padding getPadding()