Search in sources :

Example 1 with GenericsFactory

use of sun.reflect.generics.factory.GenericsFactory in project jdk8u_jdk by JetBrains.

the class AnnotationParser method parseSig.

private static Class<?> parseSig(String sig, Class<?> container) {
    if (sig.equals("V"))
        return void.class;
    SignatureParser parser = SignatureParser.make();
    TypeSignature typeSig = parser.parseTypeSig(sig);
    GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container));
    Reifier reify = Reifier.make(factory);
    typeSig.accept(reify);
    Type result = reify.getResult();
    return toClass(result);
}
Also used : TypeSignature(sun.reflect.generics.tree.TypeSignature) Reifier(sun.reflect.generics.visitor.Reifier) GenericsFactory(sun.reflect.generics.factory.GenericsFactory) SignatureParser(sun.reflect.generics.parser.SignatureParser)

Aggregations

GenericsFactory (sun.reflect.generics.factory.GenericsFactory)1 SignatureParser (sun.reflect.generics.parser.SignatureParser)1 TypeSignature (sun.reflect.generics.tree.TypeSignature)1 Reifier (sun.reflect.generics.visitor.Reifier)1