Package source

Class SourceLine


  • public final class SourceLine
    extends java.lang.Object
    The SourceLine class is used to store information about each individual line in the source code.

    It holds information about the start index, end index, and total length of each line.

    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      SourceLine​(int start, int length)
      Constructs a SourceLine object for storing information about each line of source code.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SourceLine

        public SourceLine​(int start,
                          int length)
        Constructs a SourceLine object for storing information about each line of source code.

        The end index is automatically calculated by adding the start and length together.

        Parameters:
        start - The start index of the line, relative to the source code
        length - The length of the line