public interface ArgumentConstraint
| Modifier and Type | Method and Description |
|---|---|
<T> void |
check(Adapter<T> runtime,
Iterator<FunctionArgument<T>> arguments)
Check that the argument list complies with the constraints.
|
String |
expectedType() |
int |
maxArity() |
int |
minArity() |
<T> void check(Adapter<T> runtime, Iterator<FunctionArgument<T>> arguments)
Most constraints will consume one or more elements from the iterator, but constraints that represents optional arguments may choose not to.
ArityException - when there are not enough arguments left to satisfy the constraintArgumentTypeException - when an argument does not satisfy the constraintint minArity()
int maxArity()
String expectedType()
Copyright © 2016. All rights reserved.