public final class PositionRef extends Object implements Serializable, Position
Position
object.
There is also support for serialization of positions.Position.Bias
Modifier and Type | Method and Description |
---|---|
CloneableEditorSupport |
getCloneableEditorSupport() |
int |
getColumn()
Get the column number where this position points to.
|
int |
getLine()
Get the line number where this position points to.
|
int |
getOffset() |
Position |
getPosition() |
Position.Bias |
getPositionBias() |
String |
toString() |
public CloneableEditorSupport getCloneableEditorSupport()
public Position.Bias getPositionBias()
public Position getPosition() throws IOException
IOException
- when an exception occured during reading the file.public int getOffset()
public int getLine() throws IOException
IOException
- if the document could not be opened to check the line numberpublic int getColumn() throws IOException
IOException
- if the document could not be opened to check the column number