Class XPathPanelController

    • Field Detail

      • exportXpathToRuleButton

        public javafx.scene.control.Button exportXpathToRuleButton
    • Method Detail

      • beforeParentInit

        protected void beforeParentInit()
        Description copied from class: AbstractController
        Executed before the parent's initialization. Always executed once at the start of the initialization of this controller.
        Overrides:
        beforeParentInit in class AbstractController
      • evaluateXPath

        public void evaluateXPath​(net.sourceforge.pmd.lang.ast.Node compilationUnit,
                                  net.sourceforge.pmd.lang.LanguageVersion version)
        Evaluate the contents of the XPath expression area on the given compilation unit. This updates the xpath result panel, and can log XPath exceptions to the event log panel.
        Parameters:
        compilationUnit - The AST root
        version - The language version
      • runXPathQuery

        public java.util.List<net.sourceforge.pmd.lang.ast.Node> runXPathQuery​(net.sourceforge.pmd.lang.ast.Node compilationUnit,
                                                                               net.sourceforge.pmd.lang.LanguageVersion version,
                                                                               java.lang.String query)
                                                                        throws XPathEvaluationException
        Throws:
        XPathEvaluationException
      • invalidateResults

        public void invalidateResults​(boolean error)
      • showExportXPathToRuleWizard

        public void showExportXPathToRuleWizard()
      • getXpathExpression

        public java.lang.String getXpathExpression()
      • setXpathExpression

        public void setXpathExpression​(java.lang.String expression)
      • xpathExpressionProperty

        public org.reactfx.value.Var<java.lang.String> xpathExpressionProperty()
      • getXpathVersion

        public java.lang.String getXpathVersion()
      • setXpathVersion

        public void setXpathVersion​(java.lang.String xpathVersion)
      • xpathVersionProperty

        public org.reactfx.value.Var<java.lang.String> xpathVersionProperty()