Class Submission

java.lang.Object
de.hsh.graja.core.Submission
All Implemented Interfaces:
Serializable

public class Submission extends Object implements Serializable
Collection of java source files.
See Also:
  • Constructor Details

    • Submission

      public Submission(Path classPath) throws IOException
      Creates a collection by walking through classPath and including all files with extension .java.
      Parameters:
      classPath - the folder where the submission files can be found.
      Throws:
      IOException
  • Method Details

    • getSourceFiles

      public List<File> getSourceFiles(SubmissionFileSkip sfs, ContentLogger log, IncludeSpec includeSpec)
      Parameters:
      sfs - may be null or empty
      log - may be null, then no logging of skipped files will take place
      Returns:
      a newly instantiated list of source files
    • getRelativePathsOfSourceFiles

      public List<Path> getRelativePathsOfSourceFiles(SubmissionFileSkip sfs, ContentLogger log)
      Parameters:
      sfs - may be null or empty
      log - may be null, then no logging of skipped files will take place
      Returns:
      copy of paths of all source files relative to the classpath