org.antlr.stringtemplate.language
Class TemplateParser

java.lang.Object
  extended byantlr.Parser
      extended byantlr.LLkParser
          extended byorg.antlr.stringtemplate.language.TemplateParser
All Implemented Interfaces:
TemplateParserTokenTypes

public class TemplateParser
extends antlr.LLkParser
implements TemplateParserTokenTypes

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
           
 
Fields inherited from interface org.antlr.stringtemplate.language.TemplateParserTokenTypes
ACTION, COMMENT, ELSE, ENDIF, EOF, ESC, EXPR, IF, INDENT, LITERAL, NEWLINE, NULL_TREE_LOOKAHEAD, SUBTEMPLATE
 
Constructor Summary
TemplateParser(antlr.ParserSharedInputState state)
           
TemplateParser(antlr.TokenBuffer tokenBuf)
           
TemplateParser(antlr.TokenStream lexer)
           
 
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, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

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

TemplateParser

public TemplateParser(antlr.TokenBuffer tokenBuf)

TemplateParser

public TemplateParser(antlr.TokenStream lexer)

TemplateParser

public TemplateParser(antlr.ParserSharedInputState state)
Method Detail

reportError

public void reportError(antlr.RecognitionException e)

template

public final void template(StringTemplate self)
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

action

public final void action(StringTemplate self)
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException