@Test(expected=WrongExpressionArityException.class) public void knownOverloadTooManyParams() { new Initializer().overloads(MUL_INTS).init(); registry.getScalarsResolver().get(MUL_NAME, prepVals(TINT, TINT, TINT)); }
public OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs) { Iterable<? extends ScalarsGroup<V>> scalarsGroup = overloadsRegistry.get(name); if (scalarsGroup == null) { throw new NoSuchFunctionException(name); } return inputBasedResolution(name, inputs, scalarsGroup); }
OverloadResolver { public OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs) { Iterable<? extends ScalarsGroup<V>> scalarsGroup = overloadsRegistry.get(name); if (scalarsGroup == null) { throw new NoSuchFunctionException(name); } return inputBasedResolution(name, inputs, scalarsGroup); } }
OverloadResolver { public OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs) { Iterable<? extends ScalarsGroup<V>> scalarsGroup = overloadsRegistry.get(name); if (scalarsGroup == null) { throw new NoSuchFunctionException(name); } return inputBasedResolution(name, inputs, scalarsGroup); } OverloadResolver(ResolvablesRegistry<V> overloadsRegistry, TCastResolver castsResolver); }
OverloadResolver { public OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs) { Iterable<? extends ScalarsGroup<V>> scalarsGroup = overloadsRegistry.get(name); if (scalarsGroup == null) { throw new NoSuchFunctionException(name); } return inputBasedResolution(name, inputs, scalarsGroup); } OverloadResolver(ResolvablesRegistry<V> overloadsRegistry, TCastResolver castsResolver); boolean isDefined(String name); OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs); }
OverloadResolver { public OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs) { Iterable<? extends ScalarsGroup<V>> scalarsGroup = overloadsRegistry.get(name); if (scalarsGroup == null) { throw new NoSuchFunctionException(name); } return inputBasedResolution(name, inputs, scalarsGroup); } OverloadResolver(ResolvablesRegistry<V> overloadsRegistry, TCastResolver castsResolver); boolean isDefined(String name); OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs);  }