PathSpec

sealed class PathSpec

A YAML-mappable object which represents a path (either a file or directory).

The YAML specification is as follows:

PathSpec: String|PathSpecObj

PathSpecObj:
file: String?
dir: String?

This class is deserialized using PathSpec.Deserializer to maintain compatibility for String-based path fields.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
class Deserializer : StdDeserializer<PathSpec>
Link copied to clipboard
data class Directories(val pathSpec: String) : PathSpec

A PathSpec representing directory(s).

Link copied to clipboard
data class Files(val pathSpec: String) : PathSpec

A PathSpec representing file(s).

Link copied to clipboard
data class Unresolved(val pathSpec: String) : PathSpec

An unresolved PathSpec.

Properties

Link copied to clipboard
abstract val pathSpec: String

The path represented as a String.