JavaCCParserImpl extends BaseJavaCCParserImpl implements ParserImpl { @Override protected List<JavaComment> tokenComments() { return tokenComments(token); } JavaCCParserImpl(String srcInfo, Reader stream); @Override List<SyntaxError> errors(); @Override String getSrcInfo();  }
@Test public void testNonJavaCommentSpecialToken() { final JavaCCParserImpl p1 = parserImpl("whatever"); final Token token = new Token(BaseJavaCCParserImplConstants.IDENTIFIER, "hello"); final Token specialtoken1 = new Token(BaseJavaCCParserImplConstants.WS, " "); token.specialToken = specialtoken1; final Token specialtoken2 = new Token(BaseJavaCCParserImplConstants.JAVA_EOL_COMMENT, " token.specialToken.specialToken = specialtoken2; final List<JavaComment> comments = p1.tokenComments(token); assertEquals(list(_JavaEOLComment(" }