Package org.openrewrite.java.tree
Interface J
-
- All Superinterfaces:
java.io.Serializable,org.openrewrite.Tree
- All Known Implementing Classes:
J.AnnotatedType,J.Annotation,J.ArrayAccess,J.ArrayDimension,J.ArrayType,J.Assert,J.Assignment,J.AssignmentOperation,J.Binary,J.Block,J.Break,J.Case,J.ClassDeclaration,J.ClassDeclaration.Kind,J.CompilationUnit,J.Continue,J.ControlParentheses,J.DoWhileLoop,J.Empty,J.EnumValue,J.EnumValueSet,J.FieldAccess,J.ForEachLoop,J.ForEachLoop.Control,J.ForLoop,J.ForLoop.Control,J.Identifier,J.If,J.If.Else,J.Import,J.InstanceOf,J.Label,J.Lambda,J.Lambda.Parameters,J.Literal,J.MemberReference,J.MethodDeclaration,J.MethodInvocation,J.Modifier,J.MultiCatch,J.NewArray,J.NewClass,J.Package,J.ParameterizedType,J.Parentheses,J.Primitive,J.Return,J.Switch,J.Synchronized,J.Ternary,J.Throw,J.Try,J.Try.Catch,J.Try.Resource,J.TypeCast,J.TypeParameter,J.TypeParameters,J.Unary,J.VariableDeclarations,J.VariableDeclarations.NamedVariable,J.VarType,J.WhileLoop,J.Wildcard
public interface J extends java.io.Serializable, org.openrewrite.Tree
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJ.AnnotatedTypestatic classJ.Annotationstatic classJ.ArrayAccessstatic classJ.ArrayDimensionstatic classJ.ArrayTypestatic classJ.Assertstatic classJ.Assignmentstatic classJ.AssignmentOperationstatic classJ.Binarystatic classJ.Blockstatic classJ.Breakstatic classJ.Casestatic classJ.ClassDeclarationstatic classJ.CompilationUnitstatic classJ.Continuestatic classJ.ControlParentheses<J2 extends J>static classJ.DoWhileLoopstatic classJ.Emptystatic classJ.EnumValuestatic classJ.EnumValueSetstatic classJ.FieldAccessstatic classJ.ForEachLoopstatic classJ.ForLoopstatic classJ.Identifierstatic classJ.Ifstatic classJ.Importstatic classJ.InstanceOfstatic classJ.Labelstatic classJ.Lambdastatic classJ.Literalstatic classJ.MemberReferencestatic classJ.MethodDeclarationstatic classJ.MethodInvocationstatic classJ.Modifierstatic classJ.MultiCatchstatic classJ.NewArraystatic classJ.NewClassstatic classJ.Packagestatic classJ.ParameterizedTypestatic classJ.Parentheses<J2 extends J>static classJ.Primitivestatic classJ.Returnstatic classJ.Switchstatic classJ.Synchronizedstatic classJ.Ternarystatic classJ.Throwstatic classJ.Trystatic classJ.TypeCaststatic classJ.TypeParameterstatic classJ.TypeParametersstatic classJ.Unarystatic classJ.VariableDeclarationsstatic classJ.VarTypestatic classJ.WhileLoopstatic classJ.Wildcard
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <R extends org.openrewrite.Tree,P>
Raccept(org.openrewrite.TreeVisitor<R,P> v, P p)default <P> @Nullable JacceptJava(JavaVisitor<P> v, P p)static voidclearCaches()default java.util.List<Comment>getComments()org.openrewrite.marker.MarkersgetMarkers()SpacegetPrefix()default <P> booleanisAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)default <P> java.lang.Stringprint(org.openrewrite.TreePrinter<P> printer, P p)default <P> java.lang.Stringprint(P p)default <J2 extends J>
J2withComments(java.util.List<Comment> comments)<J2 extends J>
J2withId(java.util.UUID id)<J2 extends J>
J2withMarkers(org.openrewrite.marker.Markers markers)<J2 extends J>
J2withPrefix(Space space)default <J2 extends J>
J2withTemplate(org.openrewrite.template.SourceTemplate<J,JavaCoordinates> template, JavaCoordinates coordinates, java.lang.Object... parameters)
-
-
-
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:
acceptin interfaceorg.openrewrite.Tree
-
isAcceptable
default <P> boolean isAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)- Specified by:
isAcceptablein interfaceorg.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:
printin interfaceorg.openrewrite.Tree
-
print
default <P> java.lang.String print(P p)
- Specified by:
printin interfaceorg.openrewrite.Tree
-
withId
<J2 extends J> J2 withId(java.util.UUID id)
-
getPrefix
Space getPrefix()
-
getComments
default java.util.List<Comment> getComments()
-
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()
-
-