org.antlr.stringtemplate.language
Class AngleBracketTemplateLexer

java.lang.Object
  extended byantlr.CharScanner
      extended byorg.antlr.stringtemplate.language.AngleBracketTemplateLexer
All Implemented Interfaces:
AngleBracketTemplateLexerTokenTypes, antlr.TokenStream

public class AngleBracketTemplateLexer
extends antlr.CharScanner
implements AngleBracketTemplateLexerTokenTypes, antlr.TokenStream

Break up an input text stream into chunks of either plain text or template actions in "<...>". Treat IF and ENDIF tokens specially.


Field Summary
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
 
Fields inherited from class antlr.CharScanner
EOF_CHAR
 
Fields inherited from interface org.antlr.stringtemplate.language.AngleBracketTemplateLexerTokenTypes
ACTION, COMMENT, ELSE, ENDIF, EOF, ESC, EXPR, IF, INDENT, LITERAL, NEWLINE, NULL_TREE_LOOKAHEAD, SUBTEMPLATE
 
Constructor Summary
AngleBracketTemplateLexer(antlr.InputBuffer ib)
           
AngleBracketTemplateLexer(java.io.InputStream in)
           
AngleBracketTemplateLexer(antlr.LexerSharedInputState state)
           
AngleBracketTemplateLexer(java.io.Reader in)
           
AngleBracketTemplateLexer(StringTemplate self, java.io.Reader r)
           
 
Method Summary
 void mACTION(boolean _createToken)
           
 void mLITERAL(boolean _createToken)
           
 void mNEWLINE(boolean _createToken)
           
 antlr.Token nextToken()
           
 void reportError(antlr.RecognitionException e)
           
 
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, 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
 

Field Detail

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4

_tokenSet_5

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

AngleBracketTemplateLexer

public AngleBracketTemplateLexer(StringTemplate self,
                                 java.io.Reader r)

AngleBracketTemplateLexer

public AngleBracketTemplateLexer(java.io.InputStream in)

AngleBracketTemplateLexer

public AngleBracketTemplateLexer(java.io.Reader in)

AngleBracketTemplateLexer

public AngleBracketTemplateLexer(antlr.InputBuffer ib)

AngleBracketTemplateLexer

public AngleBracketTemplateLexer(antlr.LexerSharedInputState state)
Method Detail

reportError

public void reportError(antlr.RecognitionException e)

nextToken

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

mLITERAL

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

mNEWLINE

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

mACTION

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