NEMOparserTokenManager implements NEMOparserConstants { static public void ReInit(SimpleCharStream stream) { jjmatchedPos = jjnewStateCnt = 0; curLexState = defaultLexState; input_stream = stream; ReInitRounds(); } NEMOparserTokenManager(SimpleCharStream stream);  NEMOparserTokenManager(SimpleCharStream stream, int lexState); static void setDebugStream(java.io.PrintStream ds); static void ReInit(SimpleCharStream stream); static void ReInit(SimpleCharStream stream, int lexState); static void SwitchTo(int lexState); static Token getNextToken(); static java.io.PrintStream debugStream; static final String[] jjstrLiteralImages; static final String[] lexStateNames; }
@Test public void Init_ReInit() throws Exception{ nemOparserTokenManager = new NEMOparserTokenManager(simpleCharStream); NEMOparserTokenManager.ReInit(null); nemOparserTokenManager = new NEMOparserTokenManager(simpleCharStream,lexState); NEMOparserTokenManager.ReInit(null, lexState); Assert.assertTrue(field.get(class1) == null); }