/** * Adapt the roo interface to the antlr-java-parser interface * * @param rooComment * @return */ private static Comment adaptComment( final org.springframework.roo.classpath.details.comments.AbstractComment rooComment) { Comment comment; if (rooComment instanceof org.springframework.roo.classpath.details.comments.LineComment) { comment = new LineComment(); } else if (rooComment instanceof org.springframework.roo.classpath.details.comments.JavadocComment) { comment = new JavadocComment(); } else { comment = new BlockComment(); } comment.setContent(rooComment.getComment()); return comment; } }