mjc

org.multijava.mjc
Class JavadocLexer

java.lang.Object
  extended byantlr.CharScanner
      extended byorg.multijava.mjc.JavadocLexer
All Implemented Interfaces:
JavadocLexerTokenTypes, antlr.TokenStream

public class JavadocLexer
extends antlr.CharScanner
implements JavadocLexerTokenTypes, antlr.TokenStream


Field Summary
static antlr.collections.impl.BitSet _tokenSet_0
           
private  char[] charCache
          Used to convert token text from String to char[].
private static String eol
           
private  ParsingController parsingController
          Used to switch lexers.
private  int tabSize
          The amount by which the column number is incremented when a tab character is detected in the input stream.
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
 
Fields inherited from interface org.multijava.mjc.JavadocLexerTokenTypes
ASSIGN, AT, BAND, BAND_ASSIGN, BNOT, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, CHARACTER_LITERAL, COLON, COMMA, DEC, DOC_NL_WS, DOT, EOF, EQUAL, GE, GT, IDENT, INC, INTEGER_LITERAL, JAVADOC_CLOSE, JAVADOC_OPEN, LAND, LBRACK, LCURLY, LE, LITERAL__nowarn, LITERAL__nowarn_op, LITERAL__warn, LITERAL__warn_op, LITERAL_abstract, LITERAL_assert, LITERAL_boolean, LITERAL_break, LITERAL_byte, LITERAL_case, LITERAL_catch, LITERAL_char, LITERAL_class, LITERAL_const, LITERAL_continue, LITERAL_default, LITERAL_do, LITERAL_double, LITERAL_else, LITERAL_extends, LITERAL_false, LITERAL_final, LITERAL_finally, LITERAL_float, LITERAL_for, LITERAL_goto, LITERAL_if, LITERAL_implements, LITERAL_import, LITERAL_instanceof, LITERAL_int, LITERAL_interface, LITERAL_long, LITERAL_native, LITERAL_new, LITERAL_null, LITERAL_package, LITERAL_peer, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_pure, LITERAL_readonly, LITERAL_rep, LITERAL_resend, LITERAL_return, LITERAL_short, LITERAL_static, LITERAL_strictfp, LITERAL_super, LITERAL_switch, LITERAL_synchronized, LITERAL_this, LITERAL_throw, LITERAL_throws, LITERAL_transient, LITERAL_true, LITERAL_try, LITERAL_void, LITERAL_volatile, LITERAL_while, LNOT, LOR, LPAREN, LT, MINUS, MINUS_ASSIGN, NEWLINE, NON_NL_WS, NOT_EQUAL, NULL_TREE_LOOKAHEAD, PERCENT, PERCENT_ASSIGN, PLUS, PLUS_ASSIGN, QUESTION, RBRACK, RCURLY, REAL_LITERAL, REST_OF_LINE, RPAREN, SEMI, SL, SL_ASSIGN, SLASH, SLASH_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, STRING_LITERAL
 
Constructor Summary
JavadocLexer(antlr.InputBuffer ib)
           
JavadocLexer(antlr.LexerSharedInputState state)
           
JavadocLexer(InputStream in)
           
JavadocLexer(Reader in)
           
JavadocLexer(ParsingController parsingController)
           
 
Method Summary
 void mDOC_NL_WS(boolean _createToken)
           
 void mJAVADOC_CLOSE(boolean _createToken)
           
private static long[] mk_tokenSet_0()
           
protected  void mNEWLINE(boolean _createToken)
           
protected  void mNON_NL_WS(boolean _createToken)
           
 void mREST_OF_LINE(boolean _createToken)
           
 void mSTAR(boolean _createToken)
           
 antlr.Token nextToken()
           
 void setTabSize(int ts)
          Sets the amount by which the column number is incremented when a tab character is detected in the input stream.
 void tab()
          Called by the scanner when a tab is detected in the input stream.
 int tabSize()
          Indicates the amount by which the column number is incremented when a tab character is detected in the input stream.
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setText, setTokenObjectClass, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eol

private static String eol

tabSize

private int tabSize
The amount by which the column number is incremented when a tab character is detected in the input stream.


parsingController

private ParsingController parsingController
Used to switch lexers. Aliases should be established in all lexers that share the same input stream.


charCache

private char[] charCache
Used to convert token text from String to char[].


_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0
Constructor Detail

JavadocLexer

public JavadocLexer(ParsingController parsingController)

JavadocLexer

public JavadocLexer(InputStream in)

JavadocLexer

public JavadocLexer(Reader in)

JavadocLexer

public JavadocLexer(antlr.InputBuffer ib)

JavadocLexer

public JavadocLexer(antlr.LexerSharedInputState state)
Method Detail

tab

public void tab()
Called by the scanner when a tab is detected in the input stream. Advances the column number according to tabSize.

Overrides:
tab in class antlr.CharScanner
See Also:
setTabSize(int), tabSize()

setTabSize

public void setTabSize(int ts)
Sets the amount by which the column number is incremented when a tab character is detected in the input stream.

Overrides:
setTabSize in class antlr.CharScanner
See Also:
tabSize()

tabSize

public int tabSize()
Indicates the amount by which the column number is incremented when a tab character is detected in the input stream.

See Also:
setTabSize(int)

nextToken

public antlr.Token nextToken()
                      throws antlr.TokenStreamException
Specified by:
nextToken in interface antlr.TokenStream
Throws:
antlr.TokenStreamException

mDOC_NL_WS

public final void mDOC_NL_WS(boolean _createToken)
                      throws antlr.RecognitionException,
                             antlr.CharStreamException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mNEWLINE

protected final void mNEWLINE(boolean _createToken)
                       throws antlr.RecognitionException,
                              antlr.CharStreamException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mNON_NL_WS

protected final void mNON_NL_WS(boolean _createToken)
                         throws antlr.RecognitionException,
                                antlr.CharStreamException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mREST_OF_LINE

public final void mREST_OF_LINE(boolean _createToken)
                         throws antlr.RecognitionException,
                                antlr.CharStreamException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSTAR

public final void mSTAR(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mJAVADOC_CLOSE

public final void mJAVADOC_CLOSE(boolean _createToken)
                          throws antlr.RecognitionException,
                                 antlr.CharStreamException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mk_tokenSet_0

private static final long[] mk_tokenSet_0()

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.