public class Function extends Object
| Constructor and Description |
|---|
Function(String name,
int argumentCount)
Constructor.
|
Function(String name,
int minArgumentCount,
int maxArgumentCount)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumArgumentCount()
Gets the function's maximum argument count.
|
int |
getMinimumArgumentCount()
Gets the function's minimum argument count.
|
String |
getName()
Gets the function's name.
|
public Function(String name, int argumentCount)
name - The function's nameargumentCount - The function's argument count.IllegalArgumentException - if argumentCount is lower than 0 or if the function name is null or empty.public Function(String name, int minArgumentCount, int maxArgumentCount)
name - The function's nameminArgumentCount - The function's minimum argument count.maxArgumentCount - The function's maximum argument count (Integer.MAX_VALUE to specify no upper limit).IllegalArgumentException - if minArgumentCount is less than 0 or greater than maxArgumentCount or if the function name is null or empty.public String getName()
public int getMinimumArgumentCount()
public int getMaximumArgumentCount()
3.0.5