public class CommentParser extends Object
Modifier and Type | Field and Description |
---|---|
static char |
PARAM_CHAR |
Constructor and Description |
---|
CommentParser(String input)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMainSentence()
Get "first sentence" of the string - is ended with dot and may contain linebreaks.
|
String |
getPackageComment()
Get package comment.
|
Hashtable |
getTags()
Return hashtable of tags and their values.
|
String |
getText()
Return the entire parsed comment, but without the tag section(s).
|
static void |
main(String[] args)
The main method, for testing only.
|
String |
toString() |
public static final char PARAM_CHAR
public CommentParser(String input)
input
- the whole input comment string (comment chars included)public String getPackageComment()
public String getMainSentence()
public String getText()
public Hashtable getTags()
The hashtable is indexed by tag names (including preceding PARAM_CHAR).
public static void main(String[] args)
args
- array of command-line parametersCopyright © 2019. All rights reserved.