Class Json.Document

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

public static class Json.Document extends Object implements Json, org.openrewrite.SourceFile
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.openrewrite.json.tree.Json

    Json.Array, Json.Document, Json.Empty, Json.Identifier, Json.JsonObject, Json.Literal, Json.Member
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <P> Json
    acceptJson(JsonVisitor<P> v, P p)
     
     
    <P> org.openrewrite.TreeVisitor<?,org.openrewrite.PrintOutputCapture<P>>
    printer(org.openrewrite.Cursor cursor)
     
    org.openrewrite.SourceFile
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openrewrite.json.tree.Json

    accept, getPrefix, isAcceptable, withPrefix

    Methods inherited from interface org.openrewrite.SourceFile

    getChecksum, getFileAttributes, getSourcePath, getStyle, getStyle, getWeight, isCharsetBomMarked, printAll, printAll, printAll, printAllAsBytes, printAllAsBytes, printAllTrimmed, printAllTrimmed, printEqualsInput, withCharsetBomMarked, withChecksum, withFileAttributes, withSourcePath

    Methods inherited from interface org.openrewrite.Tree

    cast, getId, getJacksonPolymorphicTypeTag, getMarkers, isScope, print, print, print, printTrimmed, printTrimmed, printTrimmed, safeCast, withId, withMarkers
  • 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
    • acceptJson

      public <P> Json acceptJson(JsonVisitor<P> v, P p)
      Specified by:
      acceptJson in interface Json
    • 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