public class JaxenXPathRuleQuery extends AbstractXPathRuleQuery
properties, ruleChainVisits, version, xpath
XPATH_1_0, XPATH_1_0_COMPATIBILITY, XPATH_2_0
Constructor and Description |
---|
JaxenXPathRuleQuery() |
Modifier and Type | Method and Description |
---|---|
List<Node> |
evaluate(Node node,
RuleContext data)
Evaluate the XPath query against the given Node.
|
List<String> |
getRuleChainVisits()
Indicates which AST Nodes (if any) should be used with the RuleChain.
|
boolean |
isSupportedVersion(String version)
Subclasses should implement to indicate whether an XPath version is
supported.
|
setProperties, setVersion, setXPath
public boolean isSupportedVersion(String version)
isSupportedVersion
in class AbstractXPathRuleQuery
version
- The XPath version.true
if the XPath version is supported,
false
otherwise.public List<Node> evaluate(Node node, RuleContext data)
evaluate
in interface XPathRuleQuery
evaluate
in class AbstractXPathRuleQuery
node
- The Node.data
- The RuleContext.public List<String> getRuleChainVisits()
getRuleChainVisits
in interface XPathRuleQuery
getRuleChainVisits
in class AbstractXPathRuleQuery
Copyright © 2002–2017 PMD. All rights reserved.