public class NumberOfArgumentsValidator extends Object
FunctionOperand
.Constructor and Description |
---|
NumberOfArgumentsValidator(int expected,
I18nHelper i18nHelper) |
NumberOfArgumentsValidator(int minExpected,
int maxExpected,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
MessageSet |
validate(FunctionOperand operand) |
public NumberOfArgumentsValidator(int expected, I18nHelper i18nHelper)
expected
- the number of arguments expected. Input operands must have this exact number of arguments. Cannot be negative.i18nHelper
- used for printing errors.public NumberOfArgumentsValidator(int minExpected, int maxExpected, I18nHelper i18nHelper)
minExpected
- the minimum number of arguments expected (inclusive). Cannot be negative.maxExpected
- the maximum number of arguments expected (inclusive). Cannot be negative.i18nHelper
- used for printing errors.public MessageSet validate(FunctionOperand operand)
operand
- the function operand to validateCopyright © 2002-2024 Atlassian. All Rights Reserved.