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

  • Type Parameters:
    TConstant - Type of the implementation for constant symbols.
    TOperator - Type of the implementation for operator symbols.
    All Superinterfaces:
    org.apache.commons.lang3.builder.Builder<ISymbolTable<TConstant,​TOperator>>

    public interface ISymbolTableBuilder<TConstant extends IConstant,​TOperator extends IOperator>
    extends org.apache.commons.lang3.builder.Builder<ISymbolTable<TConstant,​TOperator>>
    Builder for configuring a ISymbolTable.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • binaryOperatorExample

        ISymbolTableBuilder<TConstant,​TOperator> binaryOperatorExample​(TOperator example)
        Parameters:
        example - An example for a binary operator, used e.g. as an example in error messages.
        Returns:
        this for chaining.
      • unaryPostfixOperatorExample

        ISymbolTableBuilder<TConstant,​TOperator> unaryPostfixOperatorExample​(TOperator example)
        Parameters:
        example - An example for a postfix operator, used e.g. as an example in error messages.
        Returns:
        this for chaining.
      • unaryPrefixOperatorExample

        ISymbolTableBuilder<TConstant,​TOperator> unaryPrefixOperatorExample​(TOperator example)
        Parameters:
        example - An example for a prefix operator, used e.g. as an example in error messages.
        Returns:
        this for chaining.
      • endsIdentifier

        ISymbolTableBuilder<TConstant,​TOperator> endsIdentifier​(char c,
                                                                      boolean endsIdentifier)
        Parameters:
        c - Character code, must be in the range [0,255].
        endsIdentifier - Whether that character ends identifiers and starts a new identifier.
        Returns:
        this for chaining.
      • clearEndsIdentifier

        ISymbolTableBuilder<TConstant,​TOperator> clearEndsIdentifier()
        Returns:
        Removes all identifier end characters so that the resulting symbol table contains no characters that mark the end of an identifier.