2
* SyntaxParserListener.java
4
* Created on January 25, 2007, 4:37 PM
6
* To change this template, choose Tools | Template Manager
7
* and open the template in the editor.
10
package org.netbeans.editor.ext.html.parser;
12
import java.util.List;
15
* Allows clients to listen to SyntaxParser changes.
16
* Implementation of this class can be registered following way:
18
* SyntaxParser.get(document).addSyntaxParserListener(impl);
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.
25
* @author Marek.Fukala@Sun.com
27
public interface SyntaxParserListener {
29
/** Called when HTML parser finishes parsing.
30
* @return a list of SyntaxElement-s.
32
public void parsingFinished(List<SyntaxElement> elements);