Package org.openrewrite.protobuf.tree
Class ProtoContainer<T>
java.lang.Object
org.openrewrite.protobuf.tree.ProtoContainer<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 Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ProtoContainer<T>build(List<ProtoRightPadded<T>> elements) static <T> ProtoContainer<T>build(Space before, List<ProtoRightPadded<T>> elements, org.openrewrite.marker.Markers markers) static <T> ProtoContainer<T>empty()org.openrewrite.marker.Markersmap(UnaryOperator<T> map) toString()withBefore(Space before) static <P extends Proto>
ProtoContainer<P>withElements(ProtoContainer<P> before, @Nullable List<P> elements) static <P extends Proto>
@Nullable ProtoContainer<P>withElementsNullable(@Nullable ProtoContainer<P> before, @Nullable List<P> elements) withMarkers(org.openrewrite.marker.Markers markers)
-
Method Details
-
build
-
build
public static <T> ProtoContainer<T> build(Space before, List<ProtoRightPadded<T>> elements, org.openrewrite.marker.Markers markers) -
empty
-
withBefore
-
withMarkers
-
getMarkers
public org.openrewrite.marker.Markers getMarkers() -
getElements
-
getBefore
-
map
-
getLastSpace
-
getPadding
-
withElementsNullable
@Nullable public static <P extends Proto> @Nullable ProtoContainer<P> withElementsNullable(@Nullable @Nullable ProtoContainer<P> before, @Nullable @Nullable List<P> elements) -
withElements
public static <P extends Proto> ProtoContainer<P> withElements(ProtoContainer<P> before, @Nullable @Nullable List<P> elements) -
toString
-