Re-shuffled the methods of LexerEngine class.

Re-shuffled the methods of LexerEngine class.