Package com.darkcollective.relix.symbol
Enum Class Provenance
- All Implemented Interfaces:
Serializable,Comparable<Provenance>,Constable
Records whether a symbol was provided by the runtime or declared by a user.
Provenance affects display (error messages distinguish built-in vs user symbols), default shadow policy, and tooling (e.g. documentation generators may suppress built-in symbols from user-facing output).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ProvenanceReturns the enum constant of this class with the specified name.static Provenance[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUILTIN
The symbol is supplied by the relix runtime — a built-in function or a predefined relation. Built-in symbols default toShadowPolicy.FORBIDDENto prevent accidental redefinition. -
USER
The symbol was declared by the user in a.relixsource file. User symbols default toShadowPolicy.PERMITTED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-