Interface TokenAppendable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void append​(TokenSequence data)
      Appends all tokens in the specified sequence to this sequence.
      void append​(TokenSequence data, int start, int length)
      Appends a subsequence of tokens in the specified sequence to this sequence.
      void append​(TokenValued value)
      Appends the specified token value to this sequence.
      void append​(TokenValued value, long count)
      Appends the specified token value to this sequence multiple times.
    • Method Detail

      • append

        void append​(TokenValued value)
        Appends the specified token value to this sequence.

        The data types of the sequence and the value must be compatible. If the types are not identical, appropriate coercion will be attempted.

        Parameters:
        value - the token value to append
      • append

        void append​(TokenValued value,
                    long count)
        Appends the specified token value to this sequence multiple times.

        The data types of the sequence and the value must be compatible. If the types are not identical, appropriate coercion will be attempted.

        Parameters:
        value - the token value to append
        count - the number of copies to append
      • append

        void append​(TokenSequence data)
        Appends all tokens in the specified sequence to this sequence.

        The data types of the sequences must be compatible. If not identical, appropriate coercion will be attempted.

        Parameters:
        data - the sequence to append
      • append

        void append​(TokenSequence data,
                    int start,
                    int length)
        Appends a subsequence of tokens in the specified sequence to this sequence.

        The data types of the sequences must be compatible. If not identical, appropriate coercion will be attempted.

        Parameters:
        data - the sequence containing tokens to append
        start - the starting index of the subsequence in the source
        length - the length of the subsequence