Class XPathPanelController

    • Field Detail

      • exportXpathToRuleButton

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

      • setFocusNode

        public void setFocusNode​(net.sourceforge.pmd.lang.ast.Node node)
        Description copied from interface: NodeSelectionSource
        Updates the UI to react to a change in focus node. This is called whenever some selection source in the tree records a change.
        Specified by:
        setFocusNode in interface NodeSelectionSource
      • 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
      • invalidateResultsExternal

        public void invalidateResultsExternal​(boolean error)
        Called by the rest of the app.
      • showExportXPathToRuleWizard

        public void showExportXPathToRuleWizard()
      • currentResultsProperty

        public org.reactfx.value.Val<java.util.List<net.sourceforge.pmd.lang.ast.Node>> currentResultsProperty()
      • 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()