|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pmd.lang.rule.xpath.AbstractXPathRuleQuery net.sourceforge.pmd.lang.rule.xpath.JaxenXPathRuleQuery
public class JaxenXPathRuleQuery
This is a Jaxen based XPathRule query.
Field Summary |
---|
Fields inherited from class net.sourceforge.pmd.lang.rule.xpath.AbstractXPathRuleQuery |
---|
properties, ruleChainVisits, version, xpath |
Fields inherited from interface net.sourceforge.pmd.lang.rule.xpath.XPathRuleQuery |
---|
XPATH_1_0, XPATH_1_0_COMPATIBILITY, XPATH_2_0 |
Constructor Summary | |
---|---|
JaxenXPathRuleQuery()
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.sourceforge.pmd.lang.rule.xpath.AbstractXPathRuleQuery |
---|
setProperties, setVersion, setXPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaxenXPathRuleQuery()
Method Detail |
---|
public boolean isSupportedVersion(java.lang.String version)
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)
evaluate
in interface XPathRuleQuery
evaluate
in class AbstractXPathRuleQuery
node
- The Node.data
- The RuleContext.
public java.util.List<java.lang.String> getRuleChainVisits()
getRuleChainVisits
in interface XPathRuleQuery
getRuleChainVisits
in class AbstractXPathRuleQuery
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |