Package ch.njol.skript.lang.function
Class Signature<T>
java.lang.Object
ch.njol.skript.lang.function.Signature<T>
Function signature: name, parameter types and a return type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets maximum number of parameters that the function described by this signature is able to take.int
Gets minimum number of parameters that the function described by this signature is able to take.getName()
Parameter<?>
getParameter(int index)
Parameter<?>[]
int
hashCode()
boolean
isSingle()
-
Constructor Details
-
Signature
-
Signature
-
-
Method Details
-
getName
-
getParameter
-
getParameters
-
getReturnType
-
isSingle
public boolean isSingle() -
getOriginClassPath
-
getMaxParameters
public int getMaxParameters()Gets maximum number of parameters that the function described by this signature is able to take.- Returns:
- Maximum number of parameters.
-
getMinParameters
public int getMinParameters()Gets minimum number of parameters that the function described by this signature is able to take. Parameters that have default values and do not have any parameters that are mandatory after them, are optional.- Returns:
- Minimum number of parameters required.
-
hashCode
public int hashCode()
-