Package org.openrewrite.java.tree
Class JLeftPadded<T>
- java.lang.Object
-
- org.openrewrite.java.tree.JLeftPadded<T>
-
- Type Parameters:
T
-
public class JLeftPadded<T> extends java.lang.Object
A Java element that could have space preceding some delimiter. For example an array dimension could have space before the opening bracket, and the containingelement
could have a prefix that occurs after the bracket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JLeftPadded.Location
-
Constructor Summary
Constructors Constructor Description JLeftPadded()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> JLeftPadded<T>
build(T element)
JLeftPadded<T>
map(java.util.function.UnaryOperator<T> map)
java.lang.String
toString()
static <T> @Nullable JLeftPadded<T>
withElement(@Nullable JLeftPadded<T> before, T elements)
-
-
-
Method Detail
-
map
public JLeftPadded<T> map(java.util.function.UnaryOperator<T> map)
-
withElement
@Nullable public static <T> @Nullable JLeftPadded<T> withElement(@Nullable @Nullable JLeftPadded<T> before, @Nullable T elements)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static <T> JLeftPadded<T> build(T element)
-
-