Package ch.usi.si.seart.treesitter
Class Range
- java.lang.Object
-
- ch.usi.si.seart.treesitter.Range
-
public class Range extends Object
Represents the portions of source code taken up by a node within a file or snippet. Each range consists of a:- start byte offset
- end byte offset
- start point
- end point
- Since:
- 1.0.0
- Author:
- Ozren Dabić
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRange.BuilderFacilitates the construction ofRangeinstances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Range.Builderbuilder()Obtain a newRange.Builderinstance for constructing a range.Range.BuildertoBuilder()Obtain a newRange.Builderinitialized with the current range's attributes.StringtoString()Returns a string representation of this range in the format:
-
-
-
Method Detail
-
builder
public static Range.Builder builder()
Obtain a newRange.Builderinstance for constructing a range.- Returns:
- a new range builder
-
toBuilder
public Range.Builder toBuilder()
Obtain a newRange.Builderinitialized with the current range's attributes.- Returns:
- a new range builder
- Since:
- 1.12.0
-
-