public interface GenericTypeAdapter
Modifier and Type | Method and Description |
---|---|
CtTypeReference<?> |
adaptType(CtTypeInformation type)
adapts `type` to the
CtTypeReference
of the scope of this GenericTypeAdapter
This mapping function is able to resolve CtTypeParameter of:A) input type or any super class or any enclosing class of input type or it's super class B) super interfaces of input type or super interfaces of it's super classes. The type reference is adapted recursive including all it's actual type arguments and bounds. |
CtFormalTypeDeclarer |
getAdaptationScope() |
GenericTypeAdapter |
getEnclosingGenericTypeAdapter() |
CtFormalTypeDeclarer getAdaptationScope()
CtTypeReference<?> adaptType(CtTypeInformation type)
CtTypeReference
of the scope of this GenericTypeAdapter
This mapping function is able to resolve CtTypeParameter
of:type
- to be adapted typeCtTypeReference
adapted to scope of this ClassTypingContext
or null if type cannot be adapted to this `scope`.GenericTypeAdapter getEnclosingGenericTypeAdapter()
GenericTypeAdapter
, which adapts generic types of enclosing typeCopyright © 2007–2021 Inria. All rights reserved.