/** * This function must be called to initialize lexer's state. * Because we can't change directly generated constructors. */ public void init() { this.log = org.slf4j.LoggerFactory.getLogger(getClass()); this.ls = new cz.vutbr.web.csskit.antlr.CSSLexerState(); this.tf = new cz.vutbr.web.csskit.antlr.CSSTokenFactory(input, state, ls, getClass()); this.tr = new cz.vutbr.web.csskit.antlr.CSSTokenRecovery(this, input, state, ls, log); this.er = new cz.vutbr.web.csskit.antlr.CSSExpressionReader(input, log); }