Package org.openrewrite.java.tree
Class Coordinates.ClassDeclaration
- java.lang.Object
-
- org.openrewrite.java.tree.Coordinates
-
- org.openrewrite.java.tree.Coordinates.ClassDeclaration
-
- Enclosing class:
- Coordinates
public static class Coordinates.ClassDeclaration extends Coordinates
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Coordinates.ClassDeclaration.Kind
-
Nested classes/interfaces inherited from class org.openrewrite.java.tree.Coordinates
Coordinates.AnnotatedType, Coordinates.Annotation, Coordinates.ArrayAccess, Coordinates.ArrayDimension, Coordinates.ArrayType, Coordinates.Assert, Coordinates.Assignment, Coordinates.AssignmentOperation, Coordinates.Binary, Coordinates.Block, Coordinates.Break, Coordinates.Case, Coordinates.ClassDeclaration, Coordinates.CompilationUnit, Coordinates.Continue, Coordinates.ControlParentheses, Coordinates.DoWhileLoop, Coordinates.Empty, Coordinates.EnumValue, Coordinates.EnumValueSet, Coordinates.FieldAccess, Coordinates.ForEachLoop, Coordinates.ForLoop, Coordinates.Identifier, Coordinates.If, Coordinates.Import, Coordinates.InstanceOf, Coordinates.Label, Coordinates.Lambda, Coordinates.Literal, Coordinates.MemberReference, Coordinates.MethodDeclaration, Coordinates.MethodInvocation, Coordinates.Modifier, Coordinates.MultiCatch, Coordinates.NewArray, Coordinates.NewClass, Coordinates.Package, Coordinates.ParameterizedType, Coordinates.Parentheses, Coordinates.Primitive, Coordinates.Return, Coordinates.Switch, Coordinates.Synchronized, Coordinates.Ternary, Coordinates.Throw, Coordinates.Try, Coordinates.TypeCast, Coordinates.TypeParameter, Coordinates.TypeParameters, Coordinates.Unary, Coordinates.VariableDeclarations, Coordinates.WhileLoop, Coordinates.Wildcard
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaCoordinates
addAnnotation(java.util.Comparator<J.Annotation> idealOrdering)
JavaCoordinates
before()
JavaCoordinates
replaceAnnotations()
JavaCoordinates
replaceBody()
JavaCoordinates
replaceExtendsClause()
JavaCoordinates
replaceImplementsClause()
JavaCoordinates
replaceTypeParameters()
-
Methods inherited from class org.openrewrite.java.tree.Coordinates
replace
-
-
-
-
Method Detail
-
before
public JavaCoordinates before()
- Specified by:
before
in classCoordinates
-
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 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
public JavaCoordinates replaceAnnotations()
-
replaceTypeParameters
public JavaCoordinates replaceTypeParameters()
-
replaceExtendsClause
public JavaCoordinates replaceExtendsClause()
-
replaceImplementsClause
public JavaCoordinates replaceImplementsClause()
-
replaceBody
public JavaCoordinates replaceBody()
-
-