Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.printer |
Modifier and Type | Field | Description |
---|---|---|
Position |
Range.begin |
|
Position |
Range.end |
|
static Position |
Position.HOME |
The first position in the file
|
Modifier and Type | Method | Description |
---|---|---|
Position |
Position.orIfInvalid(Position anotherPosition) |
|
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 | 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) |
|
Position |
Position.orIfInvalid(Position anotherPosition) |
|
static Range |
Range.range(Position begin,
Position end) |
|
Range |
Range.withBegin(Position begin) |
|
Range |
Range.withEnd(Position end) |
Constructor | Description |
---|---|
Range(Position begin,
Position end) |
Modifier and Type | Method | Description |
---|---|---|
default Optional<Position> |
NodeWithRange.getBegin() |
The begin position of this node in the source file.
|
default Optional<Position> |
NodeWithRange.getEnd() |
The end position of this node in the source file.
|
Modifier and Type | Method | Description |
---|---|---|
default boolean |
NodeWithRange.isPositionedAfter(Position position) |
Deprecated.
use isAfter() on range
|
default boolean |
NodeWithRange.isPositionedBefore(Position position) |
Deprecated.
use isBefore() on range
|
Modifier and Type | Method | Description |
---|---|---|
Position |
SourcePrinter.getCursor() |
|
Position |
SourcePrinter.peekMethodChainPosition() |
|
Position |
SourcePrinter.popMethodChainPosition() |
Modifier and Type | Method | Description |
---|---|---|
void |
SourcePrinter.pushMethodChainPosition(Position position) |
|
void |
SourcePrinter.resetMethodChainPosition(Position position) |
Copyright © 2007–2019. All rights reserved.