Java Code Examples for sun.reflect.generics.visitor.Reifier#make()

The following examples show how to use sun.reflect.generics.visitor.Reifier#make() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnnotationParser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 2
Source File: AnnotationParser.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 3
Source File: AnnotationParser.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
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);
}
 
Example 4
Source File: AnnotationParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 5
Source File: AnnotationParser.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 6
Source File: AnnotationParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 7
Source File: AnnotationParser.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 8
Source File: AnnotationParser.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 9
Source File: AbstractRepository.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns a <tt>Reifier</tt> used to convert parts of the
 * AST into reflective objects.
 * @return  a <tt>Reifier</tt> used to convert parts of the
 * AST into reflective objects
 */
protected Reifier getReifier(){return Reifier.make(getFactory());}
 
Example 10
Source File: AbstractRepository.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns a {@code Reifier} used to convert parts of the
 * AST into reflective objects.
 * @return a {@code Reifier} used to convert parts of the
 * AST into reflective objects
 */
protected Reifier getReifier(){return Reifier.make(getFactory());}
 
Example 11
Source File: AbstractRepository.java    From java-n-IDE-for-Android with Apache License 2.0 2 votes vote down vote up
/**
 * Returns a <tt>Reifier</tt> used to convert parts of the
 * AST into reflective objects.
 * @return  a <tt>Reifier</tt> used to convert parts of the
 * AST into reflective objects
 */
protected Reifier getReifier(){return Reifier.make(getFactory());}
 
Example 12
Source File: AbstractRepository.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Returns a {@code Reifier} used to convert parts of the
 * AST into reflective objects.
 * @return a {@code Reifier} used to convert parts of the
 * AST into reflective objects
 */
protected Reifier getReifier(){return Reifier.make(getFactory());}
 
Example 13
Source File: LazyReflectiveObjectGenerator.java    From TencentKona-8 with GNU General Public License v2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 14
Source File: LazyReflectiveObjectGenerator.java    From jdk8u60 with GNU General Public License v2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 15
Source File: LazyReflectiveObjectGenerator.java    From java-n-IDE-for-Android with Apache License 2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 16
Source File: LazyReflectiveObjectGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 17
Source File: LazyReflectiveObjectGenerator.java    From jdk8u-jdk with GNU General Public License v2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 18
Source File: LazyReflectiveObjectGenerator.java    From Bytecoder with Apache License 2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 19
Source File: LazyReflectiveObjectGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());} 
Example 20
Source File: LazyReflectiveObjectGenerator.java    From dragonwell8_jdk with GNU General Public License v2.0 votes vote down vote up
protected Reifier getReifier(){return Reifier.make(getFactory());}