Package ch.njol.skript.util
Interface Contract
- All Known Implementing Classes:
FunctionReference
public interface Contract
The 'contract' of a function or another callable.
This is a non-exhaustive helper for type hints, singularity, etc. that may change based on the arguments
passed to a callable, in order for it to make better judgements on correct use at parse time.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Class
<?> getReturnType
(Expression<?>... arguments) boolean
isSingle
(Expression<?>... arguments)
-
Method Details
-
isSingle
- Returns:
- Whether, given these parameters, this will return a single value
- See Also:
-
getReturnType
- Returns:
- What this will return, given these parameters
- See Also:
-