|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.Parser
antlr.LLkParser
org.antlr.stringtemplate.language.TemplateParser
public class TemplateParser
A parser used to break up a single template into chunks, text literals and attribute expressions.
Field Summary | |
---|---|
static java.lang.String[] |
_tokenNames
|
static antlr.collections.impl.BitSet |
_tokenSet_0
|
static antlr.collections.impl.BitSet |
_tokenSet_1
|
protected StringTemplate |
self
|
Fields inherited from class antlr.Parser |
---|
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface org.antlr.stringtemplate.language.TemplateParserTokenTypes |
---|
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 | |
---|---|
|
TemplateParser(antlr.ParserSharedInputState state)
|
|
TemplateParser(antlr.TokenBuffer tokenBuf)
|
protected |
TemplateParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
TemplateParser(antlr.TokenStream lexer)
|
protected |
TemplateParser(antlr.TokenStream lexer,
int k)
|
Method Summary | |
---|---|
void |
action(StringTemplate self)
|
void |
reportError(antlr.RecognitionException e)
|
void |
template(StringTemplate self)
|
Methods inherited from class antlr.LLkParser |
---|
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
---|
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StringTemplate self
public static final java.lang.String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_1
Constructor Detail |
---|
protected TemplateParser(antlr.TokenBuffer tokenBuf, int k)
public TemplateParser(antlr.TokenBuffer tokenBuf)
protected TemplateParser(antlr.TokenStream lexer, int k)
public TemplateParser(antlr.TokenStream lexer)
public TemplateParser(antlr.ParserSharedInputState state)
Method Detail |
---|
public void reportError(antlr.RecognitionException e)
reportError
in class antlr.Parser
public final void template(StringTemplate self) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void action(StringTemplate self) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |