Class XPathElementMatcher
java.lang.Object
org.eclipse.lemminx.xpath.matcher.AbstractXPathNodeMatcher
org.eclipse.lemminx.xpath.matcher.XPathElementMatcher
- All Implemented Interfaces:
IXPathNodeMatcher
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.lemminx.xpath.matcher.IXPathNodeMatcher
IXPathNodeMatcher.MatcherType -
Field Summary
FieldsFields inherited from interface org.eclipse.lemminx.xpath.matcher.IXPathNodeMatcher
EMPTY_NODE_MATCHER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(XPathAttributeMatcher matcher) Add XPath attribute matcher.Returns the element name to match.Returns the prefix.getType()Returns matcher type.booleanisAny()Returns true if matcher is any (Node is every time matched) and false otherwise.booleanmatch(Node testNode, Collection<String> wildcardValues) Match theNodeand fill wildcard values if node matcher define widcard.Methods inherited from class org.eclipse.lemminx.xpath.matcher.AbstractXPathNodeMatcher
getOwnerMatcher
-
Field Details
-
ANY_ELEMENT_NAME
- See Also:
-
-
Constructor Details
-
XPathElementMatcher
-
-
Method Details
-
getType
Description copied from interface:IXPathNodeMatcherReturns matcher type.- Returns:
-
match
Description copied from interface:IXPathNodeMatcherMatch theNodeand fill wildcard values if node matcher define widcard.- Parameters:
testNode- node to test.wildcardValues- wildcard values if node matcher define widcard.- Returns:
-
getPrefix
Returns the prefix.- Returns:
-
getLocalName
Returns the element name to match.- Returns:
-
isAny
public boolean isAny()Description copied from interface:IXPathNodeMatcherReturns true if matcher is any (Node is every time matched) and false otherwise.- Returns:
-
add
Add XPath attribute matcher.- Parameters:
matcher-
-