Package org.openrewrite.xml.search
Class FindTags
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.xml.search.FindTags
- All Implemented Interfaces:
Cloneable
public class FindTags
extends org.openrewrite.Recipe
-
Field Summary
Fields inherited from class org.openrewrite.Recipe
NOOP, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Xml.TagfindSingle(Xml x, String xPath) Returnsnullif there is not exactly one tag matching this xPathorg.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> Methods inherited from class org.openrewrite.Recipe
addApplicableTest, addDataTable, addSingleSourceApplicableTest, causesAnotherCycle, clone, doNext, equals, getApplicableTest, getApplicableTests, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getJacksonPolymorphicTypeTag, getLanguages, getName, getRecipeList, getSingleSourceApplicableTest, getSingleSourceApplicableTests, getTags, hashCode, noop, run, run, run, run, validate, validate, validateAll, validateAll, visit
-
Constructor Details
-
FindTags
public FindTags()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Overrides:
getDescriptionin classorg.openrewrite.Recipe
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
find
-
findSingle
Returnsnullif there is not exactly one tag matching this xPath
-