java.lang.Object
io.cucumber.gherkin.Locations
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intColumns are index-1 based.private static final Integer[]Cache of Long objects for the range 0-4095. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static io.cucumber.messages.types.LocationatColumn(io.cucumber.messages.types.Location location, int column) (package private) static io.cucumber.messages.types.LocationatLine(int line) private static IntegergetInteger(int i)
-
Field Details
-
COLUMN_OFFSET
static final int COLUMN_OFFSETColumns are index-1 based.- See Also:
-
ints
Cache of Long objects for the range 0-4095. This is used to avoid creating a huge amount of Long objects in getLocation(). We can't use Long.valueOf() because it caches only the first 128 values, and typical feature files have much more lines.
-
-
Constructor Details
-
Locations
private Locations()
-
-
Method Details
-
getInteger
-
atColumn
static io.cucumber.messages.types.Location atColumn(io.cucumber.messages.types.Location location, int column) -
atLine
static io.cucumber.messages.types.Location atLine(int line)
-