Class 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ć
    • Constructor Detail

      • Range

        public Range​(@NotNull
                     @NotNull Node node)
    • Method Detail

      • toString

        public String toString()
        Returns a string representation of this range in the format:
        
              [startPoint] - [endPoint]
         
        Overrides:
        toString in class Object
        Returns:
        A string representation of this range