|
Re: JvmTypeReference isAssignable [message #1739375 is a reply to message #1739341] |
Sun, 31 July 2016 07:26 |
|
Dear Didier.
I do the following in my inferrer:
class JvmInferrer {
@Inject
private CommonTypeComputationServices services;
public LightweightTypeReference toLightweightTypeReference(
JvmTypeReference typeRef) {
return toLightweightTypeReference(typeRef, false);
]
public LightweightTypeReference toLightweightTypeReference(
JvmTypeReference typeRef,
boolean keepUnboundWildcardInformation) {
if (typeRef == null) return null;
StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, typeRef);
LightweightTypeReferenceFactory factory = new LightweightTypeReferenceFactory(owner,
keepUnboundWildcardInformation);
return factory.toLightweightReference(typeRef);
}
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds