public class CommentParser extends Object
This class contains several tools used for parsing javadoc-like comments (tags) appearing in XML comments.
Such a comment is made of text and "tags". A tag is a \@ immediately followed by a word and preceeded by at least a space. This function will return a map that associate tags to their text. The text associated to a tag is the one that follows it and that precedes the next tag or the end of the comment. The text that appears before the first tag will automatically associated to the "comment" tag.
Right now, only "attr" tag can appear multiple times : other tags can appear once and only once!
It is guaranteed that there are no spaces at the beginning or at the end of the tag's value.
getUniqueTagValue(String)
,
getMultipleTagValue(String)
Constructor and Description |
---|
CommentParser(com.wutka.dtd.DTDComment comment,
Logger log,
boolean getAroundNetBeanComments) |
Copyright © 2002-2012 DTDDoc. All Rights Reserved.