void () { if (myTokenType != null) return; myTokenStart = myTokenEnd; if (myFailed) return; try { myState = myFlex.yystate(); myTokenType = myFlex.advance(); myTokenEnd = myFlex.getTokenEnd(); } catch (ProcessCanceledException e) { throw e; } catch (Throwable e) { myFailed = true; myTokenType = TokenType.BAD_CHARACTER; myTokenEnd = myBufferEnd; LOG.warn(myFlex.getClass().getName(), e); } }