Package source
Class SourceLine
- java.lang.Object
-
- source.SourceLine
-
public final class SourceLine extends java.lang.ObjectThe 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.
-
-
-
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 codelength- The length of the line
-
-