Inferring a class with generics in JvmModelInferrer [message #1807431] |
Wed, 29 May 2019 17:13  |
Eclipse User |
|
|
|
Hello, I would like to infer an interface with the following example generics inside a JvmModelInferrer. I see that the toClass method has a: Procedure1<? super JvmGenericType> initializer parameter, but I can't seem to figure out how to use it properly. How could I complete the generator code snippet below to infer the following interface with generics?
Snippet:
it.members += toClass(element, "Foo", GENERICS_INFO_HERE) [
it.visibility = JvmVisibility.PUBLIC;
it.interface = true;
...
]
Java code to infer:
public interface Foo<X extends com.example.A, Y> {
public void test(X x, Y y);
}
Thanks!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04278 seconds