Class AngleBracketTemplateLexer
- java.lang.Object
-
- antlr.CharScanner
-
- org.antlr.stringtemplate.language.AngleBracketTemplateLexer
-
- All Implemented Interfaces:
antlr.TokenStream,AngleBracketTemplateLexerTokenTypes
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
Fields Modifier and Type Field Description static antlr.collections.impl.BitSet_tokenSet_0static antlr.collections.impl.BitSet_tokenSet_1static antlr.collections.impl.BitSet_tokenSet_10static antlr.collections.impl.BitSet_tokenSet_11static antlr.collections.impl.BitSet_tokenSet_12static antlr.collections.impl.BitSet_tokenSet_13static antlr.collections.impl.BitSet_tokenSet_2static antlr.collections.impl.BitSet_tokenSet_3static antlr.collections.impl.BitSet_tokenSet_4static antlr.collections.impl.BitSet_tokenSet_5static antlr.collections.impl.BitSet_tokenSet_6static antlr.collections.impl.BitSet_tokenSet_7static antlr.collections.impl.BitSet_tokenSet_8static antlr.collections.impl.BitSet_tokenSet_9protected java.lang.StringcurrentIndentprotected StringTemplateself-
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.AngleBracketTemplateLexerTokenTypes
ACTION, COMMENT, ELSE, ELSEIF, ENDIF, EOF, ESC, ESC_CHAR, EXPR, HEX, IF, IF_EXPR, INDENT, LINE_BREAK, LITERAL, NESTED_PARENS, NEWLINE, NULL_TREE_LOOKAHEAD, REGION_DEF, REGION_REF, SUBTEMPLATE, TEMPLATE
-
-
Constructor Summary
Constructors Constructor Description AngleBracketTemplateLexer(antlr.InputBuffer ib)AngleBracketTemplateLexer(antlr.LexerSharedInputState state)AngleBracketTemplateLexer(java.io.InputStream in)AngleBracketTemplateLexer(java.io.Reader in)AngleBracketTemplateLexer(StringTemplate self, java.io.Reader r)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmACTION(boolean _createToken)protected voidmCOMMENT(boolean _createToken)protected voidmESC(boolean _createToken)protected charmESC_CHAR(boolean _createToken)protected voidmEXPR(boolean _createToken)protected voidmHEX(boolean _createToken)protected voidmIF_EXPR(boolean _createToken)protected voidmINDENT(boolean _createToken)protected voidmLINE_BREAK(boolean _createToken)voidmLITERAL(boolean _createToken)protected voidmNESTED_PARENS(boolean _createToken)voidmNEWLINE(boolean _createToken)protected voidmSUBTEMPLATE(boolean _createToken)protected voidmTEMPLATE(boolean _createToken)antlr.TokennextToken()voidreportError(antlr.RecognitionException e)protected booleanupcomingAtEND(int i)protected booleanupcomingELSE(int i)protected booleanupcomingENDIF(int i)protected booleanupcomingNewline(int i)-
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, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
-
-
-
-
Field Detail
-
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
-
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
-
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
-
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
-
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
-
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13
-
-
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)
- Overrides:
reportErrorin classantlr.CharScanner
-
upcomingELSE
protected boolean upcomingELSE(int i) throws antlr.CharStreamException- Throws:
antlr.CharStreamException
-
upcomingENDIF
protected boolean upcomingENDIF(int i) throws antlr.CharStreamException- Throws:
antlr.CharStreamException
-
upcomingAtEND
protected boolean upcomingAtEND(int i) throws antlr.CharStreamException- Throws:
antlr.CharStreamException
-
upcomingNewline
protected boolean upcomingNewline(int i) throws antlr.CharStreamException- Throws:
antlr.CharStreamException
-
nextToken
public antlr.Token nextToken() throws antlr.TokenStreamException- Specified by:
nextTokenin interfaceantlr.TokenStream- Throws:
antlr.TokenStreamException
-
mLITERAL
public final void mLITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mINDENT
protected final void mINDENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mNEWLINE
public final void mNEWLINE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mACTION
public final void mACTION(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mLINE_BREAK
protected final void mLINE_BREAK(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mESC_CHAR
protected final char mESC_CHAR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mCOMMENT
protected final void mCOMMENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mIF_EXPR
protected final void mIF_EXPR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mEXPR
protected final void mEXPR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mESC
protected final void mESC(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mSUBTEMPLATE
protected final void mSUBTEMPLATE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mTEMPLATE
protected final void mTEMPLATE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mNESTED_PARENS
protected final void mNESTED_PARENS(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mHEX
protected final void mHEX(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
-