Interface PositionIterator


  • @ParametersAreNonnullByDefault
    public interface PositionIterator
    Iterator for layout character position iteration.
    • Method Detail

      • reset

        void reset()
        Resets iterator to the begining of the document.
      • nextSpaceType

        @Nonnull
        SpaceType nextSpaceType()
        Returns space type after current position.
        Returns:
        space type
      • getPosition

        int getPosition()
        Returns current iteration step position.
        Returns:
        iteration step position
      • getBytePosition

        int getBytePosition()
        Returns byte on row offset position.
        Returns:
        byte on row offset position
      • getCodeOffset

        int getCodeOffset()
        Returns offset in the code position.
        Returns:
        offset in the code position
      • getHalfCharPosition

        int getHalfCharPosition()
        Returns character position with half width character size.
        Returns:
        half character position
      • getSection

        @Nonnull
        org.exbin.bined.basic.BasicCodeAreaSection getSection()
        Returns section for the current position
        Returns:
        code area section
      • isEndReached

        boolean isEndReached()
        Returns true if end of document is reached.
        Returns:
        true if end of document is reached
      • skip

        void skip​(int count)
        Skips given number of positions.
        Parameters:
        count - number of positions