infovis.tree.io
Class NewickLexer

java.lang.Object
  extended by antlr.CharScanner
      extended by infovis.tree.io.NewickLexer
All Implemented Interfaces:
antlr.TokenStream, NewickTokenTypes

public class NewickLexer
extends antlr.CharScanner
implements NewickTokenTypes, antlr.TokenStream

Lexer for the Newick Tree format.

Author:
Jean-Daniel Fekete

Field Summary
 
Fields inherited from class antlr.CharScanner
EOF_CHAR
 
Fields inherited from interface infovis.tree.io.NewickTokenTypes
COLON, COMMA, EOF, ESC, LABEL, LPAREN, NULL_TREE_LOOKAHEAD, NUMBER, RPAREN, SEMI, WS
 
Constructor Summary
NewickLexer(antlr.InputBuffer ib)
           
NewickLexer(InputStream in)
           
NewickLexer(antlr.LexerSharedInputState state)
           
NewickLexer(Reader in)
           
 
Method Summary
 void mCOLON(boolean _createToken)
           
 void mCOMMA(boolean _createToken)
           
 void mLABEL(boolean _createToken)
           
 void mLPAREN(boolean _createToken)
           
 void mNUMBER(boolean _createToken)
           
 void mRPAREN(boolean _createToken)
           
 void mSEMI(boolean _createToken)
           
 void mWS(boolean _createToken)
           
 antlr.Token nextToken()
           
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewickLexer

public NewickLexer(InputStream in)

NewickLexer

public NewickLexer(Reader in)

NewickLexer

public NewickLexer(antlr.InputBuffer ib)

NewickLexer

public NewickLexer(antlr.LexerSharedInputState state)
Method Detail

nextToken

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

mLABEL

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

mWS

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

mNUMBER

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

mCOLON

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

mSEMI

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

mLPAREN

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

mRPAREN

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

mCOMMA

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


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.