Phase

enum Phase(val slug: String, val at: Patch.End, val affects: Set<Patch.End>) : Enum<Patch.Phase>

Which advice blueprint is woven. at is where the decision is made, affects which ends a write of it can be seen at; conflictsWith derives from those two and nothing else. Named slug and not tag, which on Patches means the caller's coexistence discriminator.

Constructors

Link copied to clipboard
private constructor(slug: String, at: Patch.End, affects: Set<Patch.End>)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether this phase can change what the method does. Those bind a return type as a constant, so they must resolve to exactly one method.

Functions

Link copied to clipboard

Whether two patches on one method would behave differently depending on weave order — which is install order, which a script cannot control across evals. Reflexive for writable phases, so a method carries at most one of each.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.