KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > editor > ext > html > parser > SyntaxParserListener


1 /*
2  * SyntaxParserListener.java
3  *
4  * Created on January 25, 2007, 4:37 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.editor.ext.html.parser;
11
12 import java.util.List JavaDoc;
13
14 /**
15  * Allows clients to listen to SyntaxParser changes.
16  * Implementation of this class can be registered following way:
17  * <code>
18  * SyntaxParser.get(document).addSyntaxParserListener(impl);
19  * </code>
20  * If the document is already parsed and the data are up-to-date, the
21  * parsingFinished() method will be called synchronously from the
22  * addSyntaxParserListener() method, otherwise will be called asynchronously
23  * once the parser finishes.
24  *
25  * @author Marek.Fukala@Sun.com
26  */

27 public interface SyntaxParserListener {
28     
29     /** Called when HTML parser finishes parsing.
30      * @return a list of SyntaxElement-s.
31      */

32     public void parsingFinished(List JavaDoc<SyntaxElement> elements);
33     
34 }
35
Popular Tags