01: /*
02: * SyntaxParserListener.java
03: *
04: * Created on January 25, 2007, 4:37 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.editor.ext.html.parser;
11:
12: import java.util.List;
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<SyntaxElement> elements);
33:
34: }
|