Package org.openrewrite.hcl.tree
Class HclRightPadded<T>
java.lang.Object
org.openrewrite.hcl.tree.HclRightPadded<T>
- Type Parameters:
T- The type of instance that is being padded.
An HCL element that could have trailing space.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> HclRightPadded<T>build(T element) static <T> List<T>getElements(List<HclRightPadded<T>> ls) map(UnaryOperator<T> map) toString()static <T> @Nullable HclRightPadded<T>withElement(@Nullable HclRightPadded<T> before, T elements) static <H extends Hcl>
List<HclRightPadded<H>>withElements(List<HclRightPadded<H>> before, List<H> elements)
-
Constructor Details
-
HclRightPadded
public HclRightPadded()
-
-
Method Details
-
map
-
getElements
-
withElement
@Nullable public static <T> @Nullable HclRightPadded<T> withElement(@Nullable @Nullable HclRightPadded<T> before, @Nullable T elements) -
withElements
public static <H extends Hcl> List<HclRightPadded<H>> withElements(List<HclRightPadded<H>> before, List<H> elements) -
build
-
toString
-