Package extdoc.jsdoc.tags.impl

Examples of extdoc.jsdoc.tags.impl.Comment


     * @param content text inside / ** and * /
     * @param extraLine first word form the line after comment
     */
    private void processComment(String content, String extraLine, String extra2Line){
        if (content==null) return;
        Comment comment = new Comment(content);
        switch (resolveCommentType(comment, extraLine, extra2Line)){
            case CLASS:
                processClass(comment);
                break;
            case CFG:
View Full Code Here


    @Test
    public void testCommentTypeClass(){
        String test = " * @class Test";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test));
        assertEquals(FileProcessor.CommentType.CLASS, commentType);
    }
View Full Code Here

    public void testCommentTypeCfg(){
        String test =
                "     * @cfg {Boolean/Object} autoCreate A DomHelper element spec, or true for a default element spec (defaults to:\n" +
                "     * {tag: \"input\", type: \"text\", size: \"24\", autocomplete: \"off\"})";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test));
        assertEquals(FileProcessor.CommentType.CFG, commentType);
    }
View Full Code Here

    public void testCommentTypePropertyWithType(){
        String test =
                "         * True if the detected platform is Linux.\n" +
                "         * @type Boolean";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test));
        assertEquals(FileProcessor.CommentType.PROPERTY, commentType);
    }
View Full Code Here

    @Test
    public void testCommentTypePropertySimple(){
        String test = " The normal browser event ";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test));
        assertEquals(FileProcessor.CommentType.PROPERTY, commentType);
    }
View Full Code Here

    @Test
    public void testCommentTypePropertySimpleMethod(){
        String test = " The normal browser event ";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test), "", "function");
        assertEquals(FileProcessor.CommentType.METHOD, commentType);
    }
View Full Code Here

    public void testCommentTypeMethod(){
        String test =
                "        * Returns the current HTML document object as an {@link Ext.Element}.\n" +
                "        * @return Ext.Element The document";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test));
        assertEquals(FileProcessor.CommentType.METHOD, commentType);
    }
View Full Code Here

                "             * Fires before a list item is selected. Return false to cancel the selection.\n" +
                "             * @param {Ext.form.ComboBox} combo This combo box\n" +
                "             * @param {Ext.data.Record} record The data record returned from the underlying store\n" +
                "             * @param {Number} index The index of the selected item in the dropdown list";
        FileProcessor.CommentType commentType =
                FileProcessor.resolveCommentType(new Comment(test));
        assertEquals(FileProcessor.CommentType.EVENT, commentType);
    }
View Full Code Here

TOP

Related Classes of extdoc.jsdoc.tags.impl.Comment

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.