Package com.asakusafw.utils.java.internal.parser.javadoc.ir

Examples of com.asakusafw.utils.java.internal.parser.javadoc.ir.IrDocName.asString()


    public void testFetchName() {
        {
            DefaultJavadocScanner scanner = string("java.lang.String#length()");
            IrDocName elem = JavadocBlockParserUtil.fetchName(scanner, null);
            assertNotNull(elem);
            assertEquals("java.lang.String", elem.asString());
            assertSameLocation(0, "java.lang.String".length(), elem.getLocation());

            assertEquals(IrDocElementKind.QUALIFIED_NAME, elem.getKind());
            assertEquals(3, elem.asSimpleNameList().size());
            assertSameLocation("".length(), "java".length(), elem.asSimpleNameList().get(0).getLocation());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.