public class XPathEvaluator
extends java.lang.Object
Constructor | Description |
---|---|
XPathEvaluator() |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<net.sourceforge.pmd.lang.ast.Node> |
evaluateQuery(net.sourceforge.pmd.lang.ast.Node compilationUnit,
net.sourceforge.pmd.lang.LanguageVersion languageVersion,
java.lang.String xpathVersion,
java.lang.String xpathQuery,
java.util.List<PropertyDescriptorSpec> properties) |
Evaluates an XPath query on the compilation unit.
|
public java.util.List<net.sourceforge.pmd.lang.ast.Node> evaluateQuery(net.sourceforge.pmd.lang.ast.Node compilationUnit, net.sourceforge.pmd.lang.LanguageVersion languageVersion, java.lang.String xpathVersion, java.lang.String xpathQuery, java.util.List<PropertyDescriptorSpec> properties) throws XPathEvaluationException
compilationUnit
- AST rootlanguageVersion
- language versionxpathVersion
- XPath versionxpathQuery
- XPath queryproperties
- Properties of the ruleXPathEvaluationException
- if there was an error during the evaluation. The cause is preservedCopyright © 2002–2018 PMD. All rights reserved.