Package org.exbin.bined.extended.layout
Interface PositionIterator
-
@ParametersAreNonnullByDefault public interface PositionIteratorIterator for layout character position iteration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBytePosition()Returns byte on row offset position.intgetCodeOffset()Returns offset in the code position.intgetHalfCharPosition()Returns character position with half width character size.intgetPosition()Returns current iteration step position.org.exbin.bined.basic.BasicCodeAreaSectiongetSection()Returns section for the current positionbooleanisEndReached()Returns true if end of document is reached.SpaceTypenextSpaceType()Returns space type after current position.voidreset()Resets iterator to the begining of the document.voidskip(int count)Skips given number of positions.
-
-
-
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
-
-