简而言之,通过扩展我们可以从 XSL 文档中调用使用其它编程语言编写的方法。
Simply put, extensions are a way of calling a method written in some other programming language from within an XSL document.
通过抽取突出显示逻辑,可以编写调用highlightutil类的方法的单元测试。
By extracting the highlighting logic, you can write unit tests for it by calling methods on the HighlightUtil class.
编写检测器可以查找对特定静态方法的调用,这并不困难,但是大多数的bug检测器都包含相当多的分析和实现。
Writing a detector to find calls to a particular static method isn't that hard, but most bug detectors involve a fair bit more analysis and implementation effort.
应用推荐