Class MustacheSpecialState

  • All Implemented Interfaces:
    ITokenizerState

    public class MustacheSpecialState
    extends Object
    implements ITokenizerState
    Implements a quote string state object for Mustache templates.
    • Constructor Detail

      • MustacheSpecialState

        public MustacheSpecialState()
    • Method Detail

      • nextToken

        public Token nextToken​(IScanner scanner,
                               ITokenizer tokenizer)
                        throws Exception
        Gets the next token from the stream started from the character linked to this state.
        Specified by:
        nextToken in interface ITokenizerState
        Parameters:
        scanner - A textual string to be tokenized.
        tokenizer - A tokenizer class that controls the process.
        Returns:
        The next token from the top of the stream.
        Throws:
        Exception