Uses of Class
com.github.javaparser.Position
-
Packages that use Position Package Description com.github.javaparser com.github.javaparser.ast.nodeTypes com.github.javaparser.printer -
-
Uses of Position in com.github.javaparser
Fields in com.github.javaparser declared as Position Modifier and Type Field Description Position
Range. begin
Position
Range. end
static Position
Position. HOME
The first position in the file.Methods in com.github.javaparser that return Position Modifier and Type Method Description Position
UnicodeEscapeProcessingProvider.LineCounter. getPosition()
The current position.Position
Position. nextLine()
Position
Position. orIfInvalid(Position alternativePosition)
static Position
Position. pos(int line, int column)
Deprecated.Use the constructor (e.g.Position
Position. right(int characters)
default Position
UnicodeEscapeProcessingProvider.PositionMapping.PositionUpdate. transform(Position pos)
The transformed position.Position
UnicodeEscapeProcessingProvider.PositionMapping. transform(Position pos)
Transforms the givenPosition
.Position
Position. withColumn(int column)
Position
Position. withLine(int line)
Methods in com.github.javaparser with parameters of type Position Modifier and Type Method Description int
Position. compareTo(Position otherPosition)
boolean
Range. contains(Position position)
Does this loosely contain the other range?boolean
Position. isAfter(Position otherPosition)
boolean
Range. isAfter(Position position)
boolean
Position. isAfterOrEqual(Position otherPosition)
boolean
Position. isBefore(Position otherPosition)
boolean
Range. isBefore(Position position)
boolean
Position. isBeforeOrEqual(Position otherPosition)
UnicodeEscapeProcessingProvider.PositionMapping.PositionUpdate
UnicodeEscapeProcessingProvider.PositionMapping. lookup(Position position)
Looks up theUnicodeEscapeProcessingProvider.PositionMapping.PositionUpdate
for the given Position.Position
Position. orIfInvalid(Position alternativePosition)
static Range
Range. range(Position begin, Position end)
Create a new `Range` object using the given begin and end position.boolean
Range. strictlyContains(Position position)
Does this strictly contain position.default Position
UnicodeEscapeProcessingProvider.PositionMapping.PositionUpdate. transform(Position pos)
The transformed position.Position
UnicodeEscapeProcessingProvider.PositionMapping. transform(Position pos)
Transforms the givenPosition
.Range
Range. withBegin(Position begin)
Range
Range. withEnd(Position end)
Constructors in com.github.javaparser with parameters of type Position Constructor Description Range(Position begin, Position end)
A range of characters in a source file, from "begin" to "end". -
Uses of Position in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type Position 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. -
Uses of Position in com.github.javaparser.printer
Methods in com.github.javaparser.printer that return Position Modifier and Type Method Description Position
SourcePrinter. getCursor()
Return the current cursor position (line, column) in the source printer buffer.
-