A CodeViewer object is created and then keeps state as lines are passed in. Each line passed in as java text, is returned as syntax highlighted html text.
Users of the class can set how the java code will be highlighted with setter methods.
Only valid java lines should be passed in since the object maintains state and may not handle illegal code gracefully.
The actual system is implemented as a series of filters that deal with specific portions of the java code. The filters are as follows:
htmlFilter |__ multiLineCommentFilter |___ inlineCommentFilter |___ stringFilter |__ keywordFilter
|
|
|
|