public class JavadocLexer extends FastLexer implements JavadocTokens
JavaDocLexer is an implementation of the
 Lexer interface for tokenizing a Java language documentation
 comment ("doc comment" aka, in violation of copyright, "Javadoc comment").Lexer, 
JavadocTokensAbstractLexer.DefaultLexerTokenskipCommentscurrentPos, textBufferTAG_AUTHOR, TAG_base, TAG_CODE, TAG_DEPRECATED, TAG_DOCROOT, TAG_EXCEPTION, TAG_HIDDEN, TAG_INHERITDOC, TAG_inline, TAG_LINK, TAG_LINKPLAIN, TAG_LITERAL, TAG_max, TAG_PARAM, TAG_RETURN, TAG_SEE, TAG_SERIAL, TAG_SERIALDATA, TAG_SERIALFIELD, TAG_SINCE, TAG_THROWS, TAG_unknown, TAG_VALUE, TAG_VERSION, TAG_words, TK_DOC_base, TK_DOC_COLON, TK_DOC_COMMA, TK_DOC_DOT, TK_DOC_HASH, TK_DOC_LBRACE, TK_DOC_LINE_START, TK_DOC_LPAREN, TK_DOC_NEWLINE, TK_DOC_RBRACE, TK_DOC_RPAREN, TK_DOC_TEXT, TK_DOC_WHITESPACETK_EOF, TK_NOT_FOUND| Constructor and Description | 
|---|
JavadocLexer()
Constructs a default  
JavaDocLexer with a starting
 position of 0. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
backup()
Unlexes the last found token. 
 | 
int | 
getEndOffset()
Fetches the end offset of the token (offset relative to the original
  
ReadTextBuffer being lexed. | 
int | 
getStartOffset()
Fetches the start offset of the token (offset relative to the
 original  
ReadTextBuffer being lexed. | 
int | 
getToken()
Fetches the (language-specific) token represented by this
  
LexerToken. | 
int | 
lex()
Calls lex( LexerToken ) but does not call fillLexerToken. 
 | 
int | 
lex(LexerToken lexedToken)
Scans the text buffer at the current position and returns the
 token that was found. 
 | 
void | 
setPosition(int offset)
Sets the current lex (read) position to the given offset in the
 buffer. 
 | 
isComment, setSkipCommentscreateLexerToken, getTextBuffer, setTextBufferpublic JavadocLexer()
JavaDocLexer with a starting
 position of 0.  Clients must call setTextBuffer() to
 initialize the text buffer used for the Lexer.  To start lexing
 from an offset other than 0, call setPosition().public int getToken()
LexerTokenLexerToken.  You must refer to the language-specific
 Lexer that was responsible for filling this
 LexerToken instance to interpret the token.getToken in interface LexerTokengetToken in class FastLexerpublic int getStartOffset()
LexerTokenReadTextBuffer being lexed.  Note that the
 start offset is inclusive (compare to end offset which is
 exclusive), to match the behavior in the String
 class.getStartOffset in interface LexerTokengetStartOffset in class FastLexerpublic int getEndOffset()
LexerTokenReadTextBuffer being lexed.  Note that the end offset is
 exclusive (similar to end offsets in the String class.)getEndOffset in interface LexerTokengetEndOffset in class FastLexerpublic void backup()
lex()
 will return the last token and offset information found.public void setPosition(int offset)
setPosition in interface LexersetPosition in class AbstractLexeroffset - the offset for the next lex() operation.public int lex()
FastLexerpublic int lex(LexerToken lexedToken)
lexedToken instance passed in to the
 call.