net.sourceforge.pmd.lang.rule.xpath
Class SaxonXPathRuleQuery
java.lang.Object
net.sourceforge.pmd.lang.rule.xpath.AbstractXPathRuleQuery
net.sourceforge.pmd.lang.rule.xpath.SaxonXPathRuleQuery
- All Implemented Interfaces:
- XPathRuleQuery
public class SaxonXPathRuleQuery
- extends AbstractXPathRuleQuery
This is a Saxon based XPathRule query.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaxonXPathRuleQuery
public SaxonXPathRuleQuery()
isSupportedVersion
public boolean isSupportedVersion(String version)
- Subclasses should implement to indicate whether an XPath version is
supported.
- Specified by:
isSupportedVersion in class AbstractXPathRuleQuery
- Parameters:
version - The XPath version.
- Returns:
true if the XPath version is supported,
false otherwise.
evaluate
public List<Node> evaluate(Node node,
RuleContext data)
- Evaluate the XPath query against the given Node.
- Specified by:
evaluate in interface XPathRuleQuery- Specified by:
evaluate in class AbstractXPathRuleQuery
- Parameters:
node - The Node.data - The RuleContext.
- Returns:
- The matching Nodes.
Copyright © 2002-2015 InfoEther. All Rights Reserved.