Community
Participate
Working Groups
i'd like to be able to feed IScanner with a content of a comment and get access to tokens
The scanner is a Java one, and recognize comments as tokens. Now, you may want to position the scanner behind the comment starting delimiter, and tokenize from there. However, the comment content is not meant to follow Java specs, and thus illegal tokens are likely to be found in there. You probably should use a StringTokenizer for this matter.
will that not cause some encoding problems? i mean, IScanner handles all the unicode problems. will i have to do it myself when using StringTokenizer? maybe a separate scanner? IJavaDocScanner :)?
Closing, IScanner isn't meant for parsing comments (unless you know what you're doing). Parsing javadocs isn't supported, we have other requests on this front, unclear which action we will take.
*** Bug 41190 has been marked as a duplicate of this bug. ***