Package org.sonar.java.xml
Class XPathXmlCheck
- java.lang.Object
-
- org.sonar.java.xml.XPathXmlCheck
-
-
Constructor Summary
Constructors Constructor Description XPathXmlCheck()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
precompileXPathExpressions(XmlCheckContext context)
Will be called only once by XmlCheck.void
reportIssue(Node node, String message)
void
reportIssueOnFile(String message)
void
scanFile(XmlCheckContext context)
abstract void
scanFileWithXPathExpressions(XmlCheckContext context)
Will be called for each file.
-
-
-
Method Detail
-
scanFile
public void scanFile(XmlCheckContext context)
-
precompileXPathExpressions
public abstract void precompileXPathExpressions(XmlCheckContext context)
Will be called only once by XmlCheck. UsingXmlCheckContext.compile(String)
, should compile all the fixed XPath expressions which will be re-used when analyzing files.- Parameters:
context
-
-
scanFileWithXPathExpressions
public abstract void scanFileWithXPathExpressions(XmlCheckContext context)
Will be called for each file.- Parameters:
context
-
-
reportIssueOnFile
public void reportIssueOnFile(String message)
-
-