public StateChange nextState ( final char c ) { StateChange change = currentState . getChange ( c ) ; currentState = change . getNewState ( ) ; return change ; }
Moves the machine to the next state based on the input character .