org.antlr.stringtemplate.language
Class DefaultTemplateLexer
java.lang.Object
antlr.CharScanner
org.antlr.stringtemplate.language.DefaultTemplateLexer
- All Implemented Interfaces:
- TemplateParserTokenTypes, antlr.TokenStream
- public class DefaultTemplateLexer
- extends antlr.CharScanner
- implements TemplateParserTokenTypes, antlr.TokenStream
Break up an input text stream into chunks of either plain text
or template actions in "$...$". Treat IF and ENDIF tokens
specially.
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.antlr.stringtemplate.language.TemplateParserTokenTypes |
ACTION, COMMENT, ELSE, ENDIF, EOF, ESC, EXPR, IF, IF_EXPR, INDENT, LITERAL, NESTED_PARENS, NEWLINE, NULL_TREE_LOOKAHEAD, SUBTEMPLATE, TEMPLATE |
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, recover, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentIndent
protected java.lang.String currentIndent
self
protected StringTemplate self
_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
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
DefaultTemplateLexer
public DefaultTemplateLexer(StringTemplate self,
java.io.Reader r)
DefaultTemplateLexer
public DefaultTemplateLexer(java.io.InputStream in)
DefaultTemplateLexer
public DefaultTemplateLexer(java.io.Reader in)
DefaultTemplateLexer
public DefaultTemplateLexer(antlr.InputBuffer ib)
DefaultTemplateLexer
public DefaultTemplateLexer(antlr.LexerSharedInputState state)
reportError
public void reportError(antlr.RecognitionException e)
upcomingELSE
protected boolean upcomingELSE(int i)
throws antlr.CharStreamException
- Throws:
antlr.CharStreamException
upcomingENDIF
protected boolean upcomingENDIF(int i)
throws antlr.CharStreamException
- Throws:
antlr.CharStreamException
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
mINDENT
protected final void mINDENT(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
mCOMMENT
protected final void mCOMMENT(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mIF_EXPR
protected final void mIF_EXPR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mEXPR
protected final void mEXPR(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mESC
protected final void mESC(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mSUBTEMPLATE
protected final void mSUBTEMPLATE(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mTEMPLATE
protected final void mTEMPLATE(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException
mNESTED_PARENS
protected final void mNESTED_PARENS(boolean _createToken)
throws antlr.RecognitionException,
antlr.CharStreamException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException