Interface IToken<TConstant extends IConstant,​TOperator extends IOperator>

  • Type Parameters:
    TConstant - Type of the implementation for constant symbols.
    TOperator - Type of the implementation for operator symbols.

    public interface IToken<TConstant extends IConstant,​TOperator extends IOperator>
    The representation of a token encountered in an infix expression.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getData

        Object getData()
        Returns:
        The data of this token, type depends on the getKind(). Use getConstant() etc. to cast the data to the correct type.
      • getKind

        ETokenKind getKind()
        Returns:
        The type of this token, such as whether it is a variable or an operator.
      • getSourcePosition

        ISourcePosition getSourcePosition()
        Returns:
        The starting position of this token in the source code.