Package org.openrewrite.marker
Class SearchResult
java.lang.Object
org.openrewrite.marker.SearchResult
- All Implemented Interfaces:
Marker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Tree>
Tfound(T t) static <T extends Tree>
Tstatic <T extends Tree>
TmergingFound(T t, String description) Merge the description of two search results into a single search result with a unified description.static <T extends Tree>
TmergingFound(T t, String description, String delimiter) Merge the description of two search results into a single search result with a unified description.print(Cursor cursor, UnaryOperator<String> commentWrapper, boolean verbose)
-
Constructor Details
-
SearchResult
public SearchResult()
-
-
Method Details
-
found
-
found
-
mergingFound
@Incubating(since="8.0.0") public static <T extends Tree> T mergingFound(@Nullable T t, String description) Merge the description of two search results into a single search result with a unified description.If the there already exists a search result with the same description, the existing search result is returned.
-
mergingFound
@Incubating(since="8.0.0") public static <T extends Tree> T mergingFound(@Nullable T t, String description, String delimiter) Merge the description of two search results into a single search result with a unified description.If the there already exists a search result with the same description, the existing search result is returned.
- Parameters:
delimiter- The delimiter to use when merging descriptions.
-
print
-