Package org.exbin.bined.extended.layout
Interface PositionIterator
-
@ParametersAreNonnullByDefault public interface PositionIterator
Iterator for layout character position iteration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBytePosition()
Returns byte on row offset position.int
getCodeOffset()
Returns offset in the code position.int
getHalfCharPosition()
Returns character position with half width character size.int
getPosition()
Returns current iteration step position.org.exbin.bined.basic.BasicCodeAreaSection
getSection()
Returns section for the current positionboolean
isEndReached()
Returns true if end of document is reached.SpaceType
nextSpaceType()
Returns space type after current position.void
reset()
Resets iterator to the begining of the document.void
skip(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
-
-