Package org.openrewrite.java.tree
Class JLeftPadded<T>
java.lang.Object
org.openrewrite.java.tree.JLeftPadded<T>
- Type Parameters:
T
-
A Java element that could have space preceding some delimiter.
For example an array dimension could have space before the opening
bracket, and the containing
element
could have a prefix that occurs
after the bracket.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> JLeftPadded<T>
build
(T element) map
(UnaryOperator<T> map) toString()
static <T> @Nullable JLeftPadded<T>
withElement
(@Nullable JLeftPadded<T> before, T elements)
-
Constructor Details
-
JLeftPadded
public JLeftPadded()
-
-
Method Details
-
map
-
withElement
@Nullable public static <T> @Nullable JLeftPadded<T> withElement(@Nullable @Nullable JLeftPadded<T> before, @Nullable T elements) -
toString
-
build
-