Class ViewerModel
- java.lang.Object
-
- net.sourceforge.pmd.util.viewer.model.ViewerModel
-
@Deprecated public class ViewerModel extends Object
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description ViewerModel()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addViewerModelListener(ViewerModelListener l)
Deprecated.void
appendToXPathExpression(String pathFragment, Object appender)
Deprecated.Appends the given fragment to the XPath expression.void
commitSource(String source, LanguageVersion languageVersion)
Deprecated.Commits source code to the model.void
evaluateXPathExpression(String xPath, Object evaluator)
Deprecated.Evaluates the given XPath expression against the current tree.protected void
fireViewerModelEvent(ViewerModelEvent e)
Deprecated.List<Node>
getLastEvaluationResults()
Deprecated.Retrieves the results of last evaluation.Node
getRootNode()
Deprecated.boolean
hasCompiledTree()
Deprecated.Determines whether the model has a compiled tree at it's disposal.void
removeViewerModelListener(ViewerModelListener l)
Deprecated.void
selectNode(Node node, Object selector)
Deprecated.Selects the given node in the AST.
-
-
-
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 evaluatedevaluator
- 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 selectedselector
- 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 addedappender
- 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.
-
-