|
|
|
Re: JVM Inferrer -- Possible to generate two declared types that reference each other? [message #1834254 is a reply to message #1834253] |
Thu, 05 November 2020 21:16   |
Ben Holland Messages: 34 Registered: April 2019 |
Member |
|
|
I'm actually somewhat confused now. I see that I can inject the IQualifiedNameProvider instance like in the JVM Language example, but it looks like the toClass method just calls toString on the QualifiedName. So if I create my own string own string or use the QualifiedName provider the result should be the same right?
public JvmGenericType toClass(/* @Nullable */ EObject sourceElement, /* @Nullable */ QualifiedName name, /* @Nullable */ Procedure1<? super JvmGenericType> initializer) {
return toClass(sourceElement, name != null ? name.toString() : null, initializer);
}
public JvmGenericType toClass(/* @Nullable */ EObject sourceElement, /* @Nullable */ String name, /* @Nullable */ Procedure1<? super JvmGenericType> initializer) {
final JvmGenericType result = createJvmGenericType(sourceElement, name);
if (result == null)
return null;
associate(sourceElement, result);
return initializeSafely(result, initializer);
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01760 seconds