Interface J

    • Method Detail

      • clearCaches

        static void clearCaches()
      • 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
      • isAcceptable

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

        @Nullable
        default <P> @Nullable J acceptJava​(JavaVisitor<P> v,
                                           P p)
      • print

        default <P> java.lang.String print​(org.openrewrite.TreePrinter<P> printer,
                                           P p)
        Specified by:
        print in interface org.openrewrite.Tree
      • print

        default <P> java.lang.String print​(P p)
        Specified by:
        print in interface org.openrewrite.Tree
      • withId

        <J2 extends J> J2 withId​(java.util.UUID id)
      • withPrefix

        <J2 extends J> J2 withPrefix​(Space space)
      • getPrefix

        Space getPrefix()
      • getComments

        default java.util.List<Comment> getComments()
      • withComments

        default <J2 extends J> J2 withComments​(java.util.List<Comment> comments)
      • withTemplate

        @Incubating(since="7.0.0")
        default <J2 extends J> J2 withTemplate​(org.openrewrite.template.SourceTemplate<J,​JavaCoordinates> template,
                                               JavaCoordinates coordinates,
                                               java.lang.Object... parameters)
      • withMarkers

        <J2 extends J> J2 withMarkers​(org.openrewrite.marker.Markers markers)
      • getMarkers

        org.openrewrite.marker.Markers getMarkers()