Serializable
, Position
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 | 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 numberBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.