Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast |
Modifier and Type | Field and Description |
---|---|
static Position |
Position.ABSOLUTE_END |
static Position |
Position.ABSOLUTE_START |
Position |
Range.begin |
Position |
Range.end |
static Position |
Position.HOME
The first position in the file
|
static Position |
Position.UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Position |
Position.pos(int line,
int column)
Convenient factory method.
|
Position |
Position.withColumn(int column) |
Position |
Position.withLine(int line) |
Modifier and Type | Method and Description |
---|---|
int |
Position.compareTo(Position o) |
boolean |
Position.isAfter(Position position) |
boolean |
Range.isAfter(Position position) |
boolean |
Position.isBefore(Position position) |
boolean |
Range.isBefore(Position position) |
static Range |
Range.range(Position begin,
Position end) |
Range |
Range.withBegin(Position begin) |
Range |
Range.withEnd(Position end) |
Constructor and Description |
---|
Range(Position begin,
Position end) |
Modifier and Type | Method and Description |
---|---|
Position |
Node.getBegin()
The begin position of this node in the source file.
|
Position |
Node.getEnd()
The end position of this node in the source file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Node.isPositionedAfter(Position position) |
boolean |
Node.isPositionedBefore(Position position) |
void |
Node.setBegin(Position begin)
Sets the begin position of this node in the source file.
|
void |
Node.setEnd(Position end)
Sets the end position of this node in the source file.
|
Copyright © 2007–2016. All rights reserved.