Module io.sf.carte.tokenproducer
Package io.sf.carte.uparser
Interface ControlHandler<E extends Exception>
- All Known Subinterfaces:
 TokenHandler,TokenHandler2,TokenHandler3<E>
- All Known Implementing Classes:
 CommentRemovalHandler,MinificationHandler
public interface ControlHandler<E extends Exception>
To be implemented by listeners that handle the control-related events
 generated by the 
TokenProducer3.- 
Method Summary
Modifier and TypeMethodDescriptionvoidcontrol(int index, int codePoint) A control character codepoint was found.voidquotedNewlineChar(int index, int codePoint) An unescaped FF/LF/CR control was found while assembling a quoted string.voidtokenStart(TokenControl control) At the beginning of parsing, this method is called, passing theTokenControlobject that can be used to fine-control the parsing. 
- 
Method Details
- 
tokenStart
At the beginning of parsing, this method is called, passing theTokenControlobject that can be used to fine-control the parsing.- Parameters:
 control- theTokenControlobject in charge of parsing.- Throws:
 E- in case of an error when processing the tokens.
 - 
control
void control(int index, int codePoint) throws E A control character codepoint was found.- Parameters:
 index- the index at which the control codepoint was found.codePoint- the control codepoint.- Throws:
 E- in case of an error when processing the tokens.
 - 
quotedNewlineChar
void quotedNewlineChar(int index, int codePoint) throws E An unescaped FF/LF/CR control was found while assembling a quoted string.- Parameters:
 index- the index at which the control was found.codePoint- the FF/LF/CR codepoint.- Throws:
 E- in case of an error when processing the tokens.
 
 -