Package de.hsh.graja.core
Class Submission
java.lang.Object
de.hsh.graja.core.Submission
- All Implemented Interfaces:
Serializable
Collection of java source files.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSubmission
(Path classPath) Creates a collection by walking throughclassPath
and including all files with extension.java
. -
Method Summary
Modifier and TypeMethodDescriptiongetSourceFiles
(SubmissionFileSkip sfs, ContentLogger log, IncludeSpec includeSpec)
-
Constructor Details
-
Submission
Creates a collection by walking throughclassPath
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 emptylog
- may be null, then no logging of skipped files will take place- Returns:
- a newly instantiated list of source files
-
getRelativePathsOfSourceFiles
- Parameters:
sfs
- may be null or emptylog
- may be null, then no logging of skipped files will take place- Returns:
- copy of paths of all source files relative to the classpath
-