| java.lang.Object net.sourceforge.pmd.util.viewer.model.ViewerModel
ViewerModel | public class ViewerModel (Code) | | |
ViewerModel | public ViewerModel()(Code) | | |
appendToXPathExpression | public void appendToXPathExpression(String pathFragment, Object appender)(Code) | | appends the given fragment to the XPath expression
Parameters: pathFragment - fragment to be added Parameters: appender - object that is trying to append the fragment |
commitSource | public void commitSource(String source, TargetJDKVersion jdk)(Code) | | commits source code to the model.
all existing source will be replaced
|
evaluateXPathExpression | public void evaluateXPathExpression(String xPath, Object evaluator) throws ParseException, JaxenException(Code) | | evaluates the given XPath expression against the current tree
Parameters: xPath - XPath expression to be evaluated Parameters: evaluator - object which requests the evaluation |
getLastEvaluationResults | public List getLastEvaluationResults()(Code) | | retrieves the results of last evaluation
a list containing the nodes selected by the last XPath expressionevaluation |
hasCompiledTree | public boolean hasCompiledTree()(Code) | | determines whether the model has a compiled tree at it's disposal
true if there is an AST, false otherwise |
selectNode | public void selectNode(SimpleNode node, Object selector)(Code) | | selects the given node in the AST
Parameters: node - node to be selected Parameters: selector - object which requests the selection |
|
|