Package org.openrewrite.java.tree
Class CoordinateBuilder.ClassDeclaration
java.lang.Object
org.openrewrite.java.tree.CoordinateBuilder
org.openrewrite.java.tree.CoordinateBuilder.Expression
org.openrewrite.java.tree.CoordinateBuilder.Statement
org.openrewrite.java.tree.CoordinateBuilder.ClassDeclaration
- Enclosing class:
- CoordinateBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.java.tree.CoordinateBuilder
CoordinateBuilder.Annotation, CoordinateBuilder.Block, CoordinateBuilder.ClassDeclaration, CoordinateBuilder.Expression, CoordinateBuilder.FieldAccess, CoordinateBuilder.Identifier, CoordinateBuilder.Lambda, CoordinateBuilder.MethodDeclaration, CoordinateBuilder.MethodInvocation, CoordinateBuilder.Package, CoordinateBuilder.Statement, CoordinateBuilder.Unary, CoordinateBuilder.VariableDeclarations, CoordinateBuilder.Yield
-
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation
(Comparator<org.openrewrite.java.tree.J.Annotation> idealOrdering) Methods inherited from class org.openrewrite.java.tree.CoordinateBuilder.Statement
after, before, replace
-
Method Details
-
addAnnotation
public JavaCoordinates addAnnotation(Comparator<org.openrewrite.java.tree.J.Annotation> idealOrdering) - Parameters:
idealOrdering
- The new annotation will be inserted in as close to an ideal ordering as possible, understanding that the existing annotations may not be ordered according to the comparator.- Returns:
- A variable with a new annotation, inserted before the annotation it would appear before in an ideal ordering, or as the last annotation if it would not appear before any existing annotations in an ideal ordering.
-
replaceAnnotations
-
replaceTypeParameters
-
replaceExtendsClause
-
replaceImplementsClause
-
addImplementsClause
-