@Immutable public final class Position extends Object
Modifier and Type | Field and Description |
---|---|
static Position |
EMPTY_CONTENT_POSITION
The position is used when there is no content.
|
Constructor and Description |
---|
Position(int indexInContent,
int line,
int column) |
Modifier and Type | Method and Description |
---|---|
Position |
add(Position position)
Return a new position that is the addition of this position and that supplied.
|
int |
getColumn()
Get the 1-based column number of the character.
|
int |
getIndexInContent()
Get the 0-based index of this position in the content character array.
|
int |
getLine()
Get the 1-based line number of the character.
|
int |
hashCode() |
String |
toString() |
public static final Position EMPTY_CONTENT_POSITION
public int getIndexInContent()
public int getColumn()
public int getLine()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.