Class XPathEvaluator
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.model.XPathEvaluator
-
public class XPathEvaluator extends java.lang.ObjectEvaluates XPath expressions.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description XPathEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
evaluateQuery
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 XPathEvaluationExceptionEvaluates an XPath query on the compilation unit. Performs no side effects.- Parameters:
compilationUnit- AST rootlanguageVersion- language versionxpathVersion- XPath versionxpathQuery- XPath queryproperties- Properties of the rule- Throws:
XPathEvaluationException- if there was an error during the evaluation. The cause is preserved
-
-