Package ch.njol.skript.lang.function
Enum Class FunctionRegistry.RetrievalResult
java.lang.Object
java.lang.Enum<FunctionRegistry.RetrievalResult>
ch.njol.skript.lang.function.FunctionRegistry.RetrievalResult
- All Implemented Interfaces:
Serializable,Comparable<FunctionRegistry.RetrievalResult>,Constable
- Enclosing class:
FunctionRegistry
The result of attempting to retrieve a function.
Depending on the type, a
FunctionRegistry.Retrieval will feature different data.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere are multiple functions or signatures that may fit the provided name and argument types.A single function or signature has been found which matches the name and argument types.The specified function or signature has not been registered. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FunctionRegistry.RetrievalResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_REGISTERED
The specified function or signature has not been registered. -
AMBIGUOUS
There are multiple functions or signatures that may fit the provided name and argument types. -
EXACT
A single function or signature has been found which matches the name and argument types.
-
-
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
-