Defines an expression token holder.
Description
The ExpressionToken class defines an expression token holder.
Constructors
Creates an instance of this token and initializes it with specified values.
public
ExpressionToken(ExpressionTokenType type, Variant value, int line, int column)
- type: ExpressionTokenType - type of the token.
- value: Variant - value of the token.
- line: int - line number where the token is.
- column: int - column number where the token is.
Properties
_column
The column number where the token is.
private final
int _column
- returns: number - column number.
_line
The line number where the token is.
private final
int _line
- returns: number - column number.
_type
Type of the token.
private final
ExpressionTokenType _type
_value
Value of the token.
private final
Variant _value
Instance methods
getType
Gets the type.
public
ExpressionTokenType getType()
- returns: ExpressionTokenType - type
getValue
Gets the value.
public
Variant getValue()
- returns: Variant - value
getLine
Gets the type.
public
ExpressionTokenType getLine()
- returns: ExpressionTokenType - line
getColumn
Gets the type.
public
int getColumn()
- returns: int - line