Package org.openrewrite.yaml
Class XPathMatcher
- java.lang.Object
-
- org.openrewrite.yaml.XPathMatcher
-
public class XPathMatcher extends java.lang.ObjectSupports a limited set of XPath expressions, specifically those documented on this page.Used for checking whether a visitor's cursor meets a certain XPath expression.
The "current node" for XPath evaluation is always the root node of the document. As a result, '.' and '..' are not recognized.
-
-
Constructor Summary
Constructors Constructor Description XPathMatcher(java.lang.String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(org.openrewrite.Cursor cursor)
-