Package org.openrewrite.java.tree
Class CoordinateBuilder.MethodDeclaration
- java.lang.Object
-
- org.openrewrite.java.tree.CoordinateBuilder
-
- org.openrewrite.java.tree.CoordinateBuilder.Statement
-
- org.openrewrite.java.tree.CoordinateBuilder.MethodDeclaration
-
- Enclosing class:
- CoordinateBuilder
public static class CoordinateBuilder.MethodDeclaration extends CoordinateBuilder.Statement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openrewrite.java.tree.CoordinateBuilder
CoordinateBuilder.Annotation, CoordinateBuilder.Block, CoordinateBuilder.ClassDeclaration, CoordinateBuilder.Lambda, CoordinateBuilder.MethodDeclaration, CoordinateBuilder.MethodInvocation, CoordinateBuilder.Package, CoordinateBuilder.Statement, CoordinateBuilder.VariableDeclarations
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaCoordinates
addAnnotation(java.util.Comparator<J.Annotation> idealOrdering)
JavaCoordinates
replaceAnnotations()
JavaCoordinates
replaceBody()
JavaCoordinates
replaceParameters()
JavaCoordinates
replaceThrows()
JavaCoordinates
replaceTypeParameters()
-
Methods inherited from class org.openrewrite.java.tree.CoordinateBuilder.Statement
after, before, replace
-
-
-
-
Method Detail
-
addAnnotation
public JavaCoordinates addAnnotation(java.util.Comparator<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 method 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
public JavaCoordinates replaceAnnotations()
-
replaceTypeParameters
public JavaCoordinates replaceTypeParameters()
-
replaceParameters
public JavaCoordinates replaceParameters()
-
replaceThrows
public JavaCoordinates replaceThrows()
-
replaceBody
public JavaCoordinates replaceBody()
-
-