Class 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.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • _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

        protected TemplateParser​(antlr.TokenBuffer tokenBuf,
                                 int k)
      • TemplateParser

        public TemplateParser​(antlr.TokenBuffer tokenBuf)
      • TemplateParser

        protected TemplateParser​(antlr.TokenStream lexer,
                                 int k)
      • TemplateParser

        public TemplateParser​(antlr.TokenStream lexer)
      • TemplateParser

        public TemplateParser​(antlr.ParserSharedInputState state)
    • Method Detail

      • reportError

        public void reportError​(antlr.RecognitionException e)
        Overrides:
        reportError in class antlr.Parser
      • 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