protected void record( final Comment comment,
                           final Node parentNode ) throws Exception {
        Node commentNode = null;
        String commentType = null;

        if (comment.isDocComment()) {
            commentNode = parentNode.addNode(ClassFileSequencerLexicon.JAVADOC, ClassFileSequencerLexicon.JAVADOC);
        } else {
            commentNode = parentNode.addNode(ClassFileSequencerLexicon.COMMENT, ClassFileSequencerLexicon.COMMENT);

            if (comment.isBlockComment()) {
                commentType = ClassFileSequencerLexicon.CommentType.BLOCK.toString();
            } else if (comment.isLineComment()) {
                commentType = ClassFileSequencerLexicon.CommentType.LINE.toString();
            } else {
                assert false;
                LOGGER.error(JavaFileI18n.unhandledCommentType, comment.getClass().getName());
            }

            commentNode.setProperty(ClassFileSequencerLexicon.COMMENT_TYPE, commentType);
        }

        final String code = getSourceCode(comment.getStartPosition(), comment.getLength());

        if (!StringUtil.isBlank(code)) {
            commentNode.setProperty(ClassFileSequencerLexicon.COMMENT, code);
        }

        recordSourceReference(comment, commentNode);
    }
protected void record ( final Comment comment , final Node parentNode ) throws Exception { Node commentNode = null ; String commentType = null ; if ( comment . isDocComment ( ) ) { commentNode = parentNode . addNode ( ClassFileSequencerLexicon . JAVADOC , ClassFileSequencerLexicon . JAVADOC ) ; } else { commentNode = parentNode . addNode ( ClassFileSequencerLexicon . COMMENT , ClassFileSequencerLexicon . COMMENT ) ; if ( comment . isBlockComment ( ) ) { commentType = ClassFileSequencerLexicon . CommentType . BLOCK . toString ( ) ; } else if ( comment . isLineComment ( ) ) { commentType = ClassFileSequencerLexicon . CommentType . LINE . toString ( ) ; } else { assert false ; LOGGER . error ( JavaFileI18n . unhandledCommentType , comment . getClass ( ) . getName ( ) ) ; } commentNode . setProperty ( ClassFileSequencerLexicon . COMMENT_TYPE , commentType ) ; } final String code = getSourceCode ( comment . getStartPosition ( ) , comment . getLength ( ) ) ; if ( ! StringUtil . isBlank ( code ) ) { commentNode . setProperty ( ClassFileSequencerLexicon . COMMENT , code ) ; } recordSourceReference ( comment , commentNode ) ; }
<pre>
Comment:
LineComment
BlockComment
Javadoc
</pre>

@param comment the comment being recorded (cannot be <code>null</code>)
@param parentNode the {@link Node parent node} (cannot be <code>null</code>)
@throws Exception if there is a problem