Class MustacheToken
- java.lang.Object
-
- org.pipservices3.expressions.mustache.parsers.MustacheToken
-
public class MustacheToken extends Object
-
-
Constructor Summary
Constructors Constructor Description MustacheToken(MustacheTokenType type, String value, int line, int column)Creates an instance of a mustache token.
-
Method Summary
Modifier and Type Method Description intgetColumn()The column number where the token is.intgetLine()The line number where the token is.List<MustacheToken>getTokens()Gets a list of subtokens is this token a section.MustacheTokenTypegetType()Gets the token type.StringgetValue()Gets the token value or variable name.
-
-
-
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
-
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.
-
-