org.antlr.stringtemplate.language
Class DefaultTemplateLexer
java.lang.Object
antlr.CharScanner
org.antlr.stringtemplate.language.DefaultTemplateLexer
- All Implemented Interfaces:
- TemplateParserTokenTypes
public class DefaultTemplateLexer
- extends antlr.CharScanner
- implements TemplateParserTokenTypes
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 interface org.antlr.stringtemplate.language.TemplateParserTokenTypes |
ACTION, COMMENT, ELSE, ELSEIF, ENDIF, EOF, ESC, ESC_CHAR, EXPR, HEX, IF, IF_EXPR, INDENT, LITERAL, NESTED_PARENS, NEWLINE, NULL_TREE_LOOKAHEAD, REGION_DEF, REGION_REF, SUBTEMPLATE, TEMPLATE |
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 BitSet _tokenSet_0
_tokenSet_1
public static final BitSet _tokenSet_1
_tokenSet_2
public static final BitSet _tokenSet_2
_tokenSet_3
public static final BitSet _tokenSet_3
_tokenSet_4
public static final BitSet _tokenSet_4
_tokenSet_5
public static final BitSet _tokenSet_5
_tokenSet_6
public static final BitSet _tokenSet_6
_tokenSet_7
public static final BitSet _tokenSet_7
_tokenSet_8
public static final BitSet _tokenSet_8
_tokenSet_9
public static final BitSet _tokenSet_9
_tokenSet_10
public static final BitSet _tokenSet_10
_tokenSet_11
public static final BitSet _tokenSet_11
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(InputBuffer ib)
DefaultTemplateLexer
public DefaultTemplateLexer(LexerSharedInputState state)
reportError
public void reportError(RecognitionException e)
upcomingELSE
protected boolean upcomingELSE(int i)
throws CharStreamException
- Throws:
CharStreamException
upcomingENDIF
protected boolean upcomingENDIF(int i)
throws CharStreamException
- Throws:
CharStreamException
upcomingAtEND
protected boolean upcomingAtEND(int i)
throws CharStreamException
- Throws:
CharStreamException
upcomingNewline
protected boolean upcomingNewline(int i)
throws CharStreamException
- Throws:
CharStreamException
nextToken
public Token nextToken()
throws TokenStreamException
- Throws:
TokenStreamException
mLITERAL
public final void mLITERAL(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mINDENT
protected final void mINDENT(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mNEWLINE
public final void mNEWLINE(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mACTION
public final void mACTION(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mESC_CHAR
protected final char mESC_CHAR(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mCOMMENT
protected final void mCOMMENT(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mIF_EXPR
protected final void mIF_EXPR(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mEXPR
protected final void mEXPR(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mESC
protected final void mESC(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mSUBTEMPLATE
protected final void mSUBTEMPLATE(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mTEMPLATE
protected final void mTEMPLATE(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mNESTED_PARENS
protected final void mNESTED_PARENS(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException
mHEX
protected final void mHEX(boolean _createToken)
throws RecognitionException,
CharStreamException,
TokenStreamException
- Throws:
RecognitionException
CharStreamException
TokenStreamException