Java template adaption

When generating big grammars, it might be possible that the function specialStateTransition exceeds the max body length of the java compiler. Therefore it might be more suitable to generate one additional function for every switch-case block of specialStateTransition.