public final class Position extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Position |
EMPTY_CONTENT_POSITION
The position is used when there is no content.
|
| 构造器和说明 |
|---|
Position(int indexInContent,
int line,
int column) |
| 限定符和类型 | 方法和说明 |
|---|---|
Position |
add(Position position)
Return a new position that is the addition of this position and that supplied.
|
int |
column()
Get the 1-based column number of the character.
|
boolean |
equals(Object obj) |
int |
hashCode() |
int |
index()
Get the 0-based index of this position in the content character array.
|
int |
line()
Get the 1-based line number of the character.
|
String |
toString() |
public static final Position EMPTY_CONTENT_POSITION
public int index()
public int column()
public int line()
Copyright © 2025 The Apache Software Foundation. All rights reserved.