public final class JandexUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<org.jboss.jandex.Type> |
resolveTypeParameters(org.jboss.jandex.DotName input,
org.jboss.jandex.DotName target,
org.jboss.jandex.IndexView index)
Returns the captured generic types of an interface given a class that at some point in the class
hierarchy implements the interface.
|
public static List<org.jboss.jandex.Type> resolveTypeParameters(org.jboss.jandex.DotName input, org.jboss.jandex.DotName target, org.jboss.jandex.IndexView index)
class MyList implements List<String> {
...
}
If we call
JandexUtil.resolveTypeParameters(DotName.createSimple(MyList.class.getName()),
DotName.createSimple(List.class.getName()), index)
then the result will contain a single element of class ClassType whose name() would return a DotName for StringCopyright © 2020 JBoss by Red Hat. All rights reserved.