Class MustacheToken

java.lang.Object
org.pipservices3.expressions.mustache.parsers.MustacheToken

public class MustacheToken extends Object
  • Constructor Details

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

    • getType

      public MustacheTokenType getType()
      Gets the token type.
    • 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.