Class SourcePath

java.lang.Object
de.firemage.autograder.core.file.SourcePath
All Implemented Interfaces:
Serializable, Comparable<SourcePath>

public final class SourcePath extends Object implements Comparable<SourcePath>, Serializable
This represents a path to a source folder or file.

Why does this class exist and why not just use Path?

SourceInfo does not always represent files that have a real path on the file-system. It is possible to load source code from memory, so those files would not have a path. Additionally, it would be possible to have paths with ".." that have to be normalized first, which makes comparisons harder.

See Also: