Class ViewerModel

    • Constructor Detail

      • ViewerModel

        public ViewerModel()
        Deprecated.
    • Method Detail

      • getRootNode

        public Node getRootNode()
        Deprecated.
      • commitSource

        public void commitSource​(String source,
                                 LanguageVersion languageVersion)
        Deprecated.
        Commits source code to the model. all existing source will be replaced.
      • hasCompiledTree

        public boolean hasCompiledTree()
        Deprecated.
        Determines whether the model has a compiled tree at it's disposal.
        Returns:
        true if there is an AST, false otherwise
      • evaluateXPathExpression

        public void evaluateXPathExpression​(String xPath,
                                            Object evaluator)
                                     throws ParseException,
                                            org.jaxen.JaxenException
        Deprecated.
        Evaluates the given XPath expression against the current tree.
        Parameters:
        xPath - XPath expression to be evaluated
        evaluator - object which requests the evaluation
        Throws:
        ParseException
        org.jaxen.JaxenException
      • getLastEvaluationResults

        public List<Node> getLastEvaluationResults()
        Deprecated.
        Retrieves the results of last evaluation.
        Returns:
        a list containing the nodes selected by the last XPath expression evaluation
      • selectNode

        public void selectNode​(Node node,
                               Object selector)
        Deprecated.
        Selects the given node in the AST.
        Parameters:
        node - node to be selected
        selector - object which requests the selection
      • appendToXPathExpression

        public void appendToXPathExpression​(String pathFragment,
                                            Object appender)
        Deprecated.
        Appends the given fragment to the XPath expression.
        Parameters:
        pathFragment - fragment to be added
        appender - object that is trying to append the fragment
      • addViewerModelListener

        public void addViewerModelListener​(ViewerModelListener l)
        Deprecated.
      • removeViewerModelListener

        public void removeViewerModelListener​(ViewerModelListener l)
        Deprecated.
      • fireViewerModelEvent

        protected void fireViewerModelEvent​(ViewerModelEvent e)
        Deprecated.