ABLLexer implements TokenSource, IPreprocessor { @Override public void analyzeSuspend(String analyzeSuspend) { lexer.analyzeSuspend(analyzeSuspend); } ABLLexer(IProparseEnvironment session, ByteSource src, String fileName, boolean lexOnly); protected  ABLLexer(IProparseEnvironment session, ByteSource src, String fileName); String getMainFileName(); IntegerIndex<String> getFilenameList(); String getFilename(int fileIndex); void enableWritableTokens(); @Override Token nextToken(); @Override int getLine(); @Override int getCharPositionInLine(); @Override CharStream getInputStream(); @Override String getSourceName(); @Override void setTokenFactory(TokenFactory<?> factory); @Override TokenFactory<?> getTokenFactory(); void parseComplete(); boolean isConsuming(); boolean isConsumingFromOuterIf(); void incrementConsuming(); void decrementConsuming(); IPreprocessorEventListener getLstListener(); IProparseEnvironment getRefactorSession(); JPNodeMetrics getMetrics(); IncludeRef getMacroGraph(); IProparseSettings getProparseSettings(); boolean isAppBuilderCode(); @Override String defined(String argName); @Override void defGlobal(String argName, String argVal); @Override void defScoped(String argName, String argVal); @Override String getArgText(int argNum); @Override String getArgText(String argName); @Override void undef(String argName); @Override void analyzeSuspend(String analyzeSuspend); @Override void analyzeResume();  }
@Test public void testAnalyzeSuspend() { try (InputStream input = new FileInputStream(new File("src/test/resources/data/lexer/lexer05.p"))) { ABLLexer lexer = new ABLLexer(session, ByteSource.wrap(ByteStreams.toByteArray(input)), "file.txt"); nextMessageToken(lexer, false, true); nextMessageToken(lexer, true, false); nextMessageToken(lexer, true, true); nextMessageToken(lexer, true, false); nextMessageToken(lexer, true, false); nextMessageToken(lexer, true, true); nextMessageToken(lexer, true, false); nextMessageToken(lexer, true, true); nextMessageToken(lexer, true, true); nextMessageToken(lexer, true, true); } catch (IOException uncaught) { fail("Unable to open file", uncaught); } }