Consider @JExtract swift attribute to control jextract behavior
Opened this issue · 1 comments
ktoso commented
Some behaviors of jextract may be useful to configure on a decl by decl basis.
For example, we might want to say JExtract(as: .javaLong) var int: UInt32 which would then apply the "widen" conversion when extracting this integer to a getter/setter in Java (void setInt(long value)) in order to support the unsigned positive range of those numbers.
This has the downside of having to modify the Swift sources but may be nice for some developers.
The same attribute should be usable for other extract behavior changes like renaming etc.