/** * Return the number of arguments this binding consumes. * * @return -1 if unknown or unavailable */ int getConsumedCount() { return getBinding().getConsumedCount(this); }
if (behavior != BindingBehavior.CONSUMES && binding.getConsumedCount(this) != -1) { throw new ParametricException( "getConsumedCount() does not return -1 for binding " + if (behavior != BindingBehavior.PROVIDES && binding.getConsumedCount(this) == 0) { throw new ParametricException( "getConsumedCount() must not return 0 for binding " +