Class SourceCode.CodeLoader

    • Constructor Detail

      • CodeLoader

        public CodeLoader()
    • Method Detail

      • getCodeSlice

        public List<String> getCodeSlice​(int startLine,
                                         int endLine)
        Loads a range of lines.
        Parameters:
        startLine - Start line (inclusive, 1-based)
        endLine - End line (inclusive, 1-based)
      • getFileName

        public abstract String getFileName()
      • load

        protected List<String> load​(int startLine,
                                    int endLine)
        Loads a range of lines.
        Parameters:
        startLine - Start line (inclusive, 1-based)
        endLine - End line (inclusive, 1-based)