vertx-codegen icon indicating copy to clipboard operation
vertx-codegen copied to clipboard

Extended function support

Open vietj opened this issue 6 years ago • 1 comments

Currently we support java.util.function.Function, we could extend it to support any functional interface declaring one parameter and a non void return type, so Function, IntToLongFunction.

This will require to have proper support in code generators (JavaScript, Ceylon and Scala).

vietj avatar Mar 06 '18 09:03 vietj

@vietj I will try to look into it. There's a lot stuff going on in the code and I need some time to figure it out.

One idea from the first look is to create FunctionalInterfaceTypeInfo class which will handle all functional interfaces both parameterized and not.

inikolaev avatar Mar 12 '18 09:03 inikolaev