Package io.sf.carte.doc.style.css.nsac
Interface ParserControl
public interface ParserControl
Allows convenient access to certain parser functionalities.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a locator for the current parsing location.Get a reference to the error handler.void
setDocumentHandler
(CSSHandler handler) Register a new document event handler at the parser.void
setErrorHandler
(CSSErrorHandler handler) Register a new error event handler at the parser.
-
Method Details
-
setDocumentHandler
Register a new document event handler at the parser.- Parameters:
handler
- the document handler.
-
setErrorHandler
Register a new error event handler at the parser.- Parameters:
handler
- the error handler.
-
getErrorHandler
CSSErrorHandler getErrorHandler()Get a reference to the error handler.- Returns:
- the error handler.
-
createLocator
Locator createLocator()Create a locator for the current parsing location.- Returns:
- the locator.
-