Class MustacheToken


  • public class MustacheToken
    extends Object
    • Constructor Detail

      • MustacheToken

        public MustacheToken​(MustacheTokenType type,
                             String value,
                             int line,
                             int column)
        Creates an instance of a mustache token.
        Parameters:
        type - a token type.
        value - a token value.
        line - a line number where the token is.
        column - a column numer where the token is.
    • Method Detail

      • getValue

        public String getValue()
        Gets the token value or variable name.
      • getTokens

        public List<MustacheToken> getTokens()
        Gets a list of subtokens is this token a section.
      • getLine

        public int getLine()
        The line number where the token is.
      • getColumn

        public int getColumn()
        The column number where the token is.