private void handleNonAcceptState() { if (dfa.isInErrorState()) handleErrorState(); else if (dfa.isInSpaceState()) dfa.reset(); }
private void removeSpaces() { while (handler.hasChars() && handler.isAtSpaceChar() && dfa.isInSpaceState()) processNextChar(handler.getCurrentChar()); }