Package org.openrewrite.java.tree
Class JavaCoordinates
- java.lang.Object
-
- org.openrewrite.java.tree.JavaCoordinates
-
- All Implemented Interfaces:
org.openrewrite.template.Coordinates
public class JavaCoordinates extends java.lang.Object implements org.openrewrite.template.Coordinates
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaCoordinates.Mode
-
Constructor Summary
Constructors Constructor Description JavaCoordinates()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <J2 extends J>
@Nullable java.util.Comparator<J2>getComparator()
boolean
isReplacement()
boolean
isReplaceWholeCursorValue()
Determines whether we are replacing a whole tree element, and not either (1) replacing just a piece of a method, class, or variable declaration signature or (2) inserting a new element
-
-
-
Method Detail
-
isReplacement
public boolean isReplacement()
-
isReplaceWholeCursorValue
public boolean isReplaceWholeCursorValue()
Determines whether we are replacing a whole tree element, and not either (1) replacing just a piece of a method, class, or variable declaration signature or (2) inserting a new element
-
getComparator
@Nullable public <J2 extends J> @Nullable java.util.Comparator<J2> getComparator()
-
-