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