Interface ScalarTokenSequence

    • Method Detail

      • getToken

        ScalarValued getToken​(int index)
        Description copied from interface: TokenSequence
        Gets the value at the specified position.
        Specified by:
        getToken in interface TokenSequence
        Parameters:
        index - the index of the token
        Returns:
        the value
      • newValueIterator

        ScalarValuedIterator newValueIterator()
        Description copied from interface: TokenSequence
        Creates an iterator over the non-null values of this sequence. The iterator will automatically be reset as modifications are made to the sequence.
        Specified by:
        newValueIterator in interface TokenSequence
        Returns:
        an newly-created iterator over the non-null values of this sequence.
      • isNull

        boolean isNull()
        Returns whether all elements are null.
        Returns:
        whether all elements are null.
      • isZero

        boolean isZero​(int index)
        Indicates whether the specified token has a zero value.
        Parameters:
        index - the index of the token
        Returns:
        true if the element is zero, false otherwise