|
Re: JvmTypeReference isAssignable [message #1739375 is a reply to message #1739341] |
Sun, 31 July 2016 07:26 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
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.05196 seconds