Interface Json

All Superinterfaces:
org.openrewrite.Tree
All Known Subinterfaces:
JsonKey, JsonValue
All Known Implementing Classes:
Json.Array, Json.Document, Json.Empty, Json.Identifier, Json.JsonObject, Json.Literal, Json.Member

public interface Json extends org.openrewrite.Tree
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
    static class 
     
    static class 
     
    static class 
     
    static class 
     
    static class 
     
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R extends org.openrewrite.Tree, P>
    R
    accept(org.openrewrite.TreeVisitor<R,P> v, P p)
     
    default <P> @Nullable Json
    acceptJson(JsonVisitor<P> v, P p)
     
     
    default <P> boolean
    isAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)
     
    <J extends Json>
    J
    withPrefix(Space prefix)
     

    Methods inherited from interface org.openrewrite.Tree

    cast, getId, getJacksonPolymorphicTypeTag, getMarkers, isScope, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, safeCast, withId, withMarkers
  • Method Details

    • accept

      default <R extends org.openrewrite.Tree, P> R accept(org.openrewrite.TreeVisitor<R,P> v, P p)
      Specified by:
      accept in interface org.openrewrite.Tree
    • acceptJson

      @Nullable default <P> @Nullable Json acceptJson(JsonVisitor<P> v, P p)
    • isAcceptable

      default <P> boolean isAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)
      Specified by:
      isAcceptable in interface org.openrewrite.Tree
    • getPrefix

      Space getPrefix()
    • withPrefix

      <J extends Json> J withPrefix(Space prefix)