Package com.pogofish.jadt.javadoc.javacc

Examples of com.pogofish.jadt.javadoc.javacc.JavaDocParserImpl


    private static final List<JDTagSection> NO_TAG_SECTIONS = Util.<JDTagSection>list();
   
    @Test
    public void testLookahead() {
        // to get coverage of the null case in lookahead
        final JavaDocParserImpl impl = new JavaDocParserImpl(new StringReader("foo1 foo2"));
        impl.token = new Token(0, "bar1");
        final Token token1 = impl.lookahead();
        assertEquals("foo1", token1.image);
       
        // to get coverage of the non-null case in lookahead
        impl.token = new Token(0, "bar");
        impl.token.next = new Token(0, "bar2");
        final Token token2 = impl.lookahead();
        assertEquals("bar2", token2.image);     
    }
View Full Code Here


    public JavaComment parse(final Reader javaDoc) {
        return Util.execute(new ExceptionAction<JavaComment>() {

            @Override
            public JavaComment doAction() throws Throwable {
                JavaDocParserImpl impl = new JavaDocParserImpl(
                        new JavaCCReader(javaDoc));
                return impl.javaDoc();
            }
        });
    }
View Full Code Here

TOP

Related Classes of com.pogofish.jadt.javadoc.javacc.JavaDocParserImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.