下面这个类,有部分代码不懂
public class HtmlUtils {
public static String extractText(String inputHtml) throws Exception {
StringBuffer text = new StringBuffer(); Parser parser = Parser.createParser(new String(inputHtml.getBytes(),
"GBK"), "GBK");

NodeList nodes = parser.extractAllNodesThatMatch(new NodeFilter() {
public boolean accept(Node node) {
return true;
}
});

Node node = nodes.elementAt(0);
text.append(new String(node.toPlainTextString().getBytes("GBK")));
Node node1=nodes.elementAt(1);
text.append(new String(node1.toPlainTextString().getBytes("GBK")));
return text.toString();
} public static void main(String[] args) throws Exception {
String   text   =   extractText("<td>点击<b><a   href=index.jsp>这里</a></b>回到首页</td><p>the second row</p>");  
System.out.println(text);
}}我的问题就是NodeList nodes = parser.extractAllNodesThatMatch(new NodeFilter() {
public boolean accept(Node node) {
return true;
}
});的new nodefilter中执行什么了?它不是还没有传递过一个标签来么??