Package org.openrewrite.hcl.tree
Class HclContainer<T>
java.lang.Object
org.openrewrite.hcl.tree.HclContainer<T>
- Type Parameters:
T- The type of the inner list of elements.
AST elements that contain lists of trees with some delimiter like function call arguments.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> HclContainer<T>build(List<HclRightPadded<T>> elements) static <T> HclContainer<T>build(Space before, List<HclRightPadded<T>> elements, org.openrewrite.marker.Markers markers) static <T> HclContainer<T>empty()org.openrewrite.marker.Markersmap(UnaryOperator<T> map) toString()withBefore(Space before) static <H extends Hcl>
HclContainer<H>withElements(HclContainer<H> before, @Nullable List<H> elements) static <H extends Hcl>
@Nullable HclContainer<H>withElementsNullable(@Nullable HclContainer<H> before, @Nullable List<H> elements) withLastSpace(Space space) withMarkers(org.openrewrite.marker.Markers markers)
-
Method Details
-
build
-
build
public static <T> HclContainer<T> build(Space before, List<HclRightPadded<T>> elements, org.openrewrite.marker.Markers markers) -
empty
-
withBefore
-
withMarkers
-
getMarkers
public org.openrewrite.marker.Markers getMarkers() -
getElements
-
getBefore
-
map
-
getLastSpace
-
withLastSpace
-
getPadding
-
withElementsNullable
@Nullable public static <H extends Hcl> @Nullable HclContainer<H> withElementsNullable(@Nullable @Nullable HclContainer<H> before, @Nullable @Nullable List<H> elements) -
withElements
public static <H extends Hcl> HclContainer<H> withElements(HclContainer<H> before, @Nullable @Nullable List<H> elements) -
toString
-