public interface ParseWindow
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(int pos,
String line) |
String |
getFocusLine()
Returns the line currently focused by this window.
|
int |
getFocusLineNumber()
Returns the number of the current line within the whole document.
|
String |
getFutureLine(int distance)
Looks ahead from the current line and retrieves a line that will be the
focus line after the window has slided forward.
|
String |
slideForward()
Slides the window forward one line.
|
String getFocusLine()
slideForward() but calling
this method does not slide the window forward a step.int getFocusLineNumber()
String slideForward()
String getFutureLine(int distance)
distance - the number of lines to look ahead. Must be greater or equal 0.
0 returns the focus line. 1 returns the first line after the
current focus line and so on. Note that all lines up to the
returned line will be held in memory until the window has
slided past them, so be careful not to look ahead too far!void addLine(int pos,
String line)
Copyright © 2016. All rights reserved.