Java Code Examples for sun.reflect.generics.factory.CoreReflectionFactory#make()

The following examples show how to use sun.reflect.generics.factory.CoreReflectionFactory#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 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 2
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 3
Source File: Method.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 4
Source File: Class.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ClassScope.make(this));
}
 
Example 5
Source File: Method.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 6
Source File: Field.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    Class<?> c = getDeclaringClass();
    // create scope and factory
    return CoreReflectionFactory.make(c, ClassScope.make(c));
}
 
Example 7
Source File: Method.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 8
Source File: Class.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ClassScope.make(this));
}
 
Example 9
Source File: Field.java    From Java8CN with Apache License 2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    Class<?> c = getDeclaringClass();
    // create scope and factory
    return CoreReflectionFactory.make(c, ClassScope.make(c));
}
 
Example 10
Source File: Field.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    Class<?> c = getDeclaringClass();
    // create scope and factory
    return CoreReflectionFactory.make(c, ClassScope.make(c));
}
 
Example 11
Source File: Class.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ClassScope.make(this));
}
 
Example 12
Source File: Field.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
private GenericsFactory getFactory() {
    Class<?> c = getDeclaringClass();
    // create scope and factory
    return CoreReflectionFactory.make(c, ClassScope.make(c));
}
 
Example 13
Source File: Constructor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ConstructorScope.make(this));
}
 
Example 14
Source File: Method.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 15
Source File: Method.java    From Java8CN with Apache License 2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 16
Source File: Constructor.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ConstructorScope.make(this));
}
 
Example 17
Source File: Method.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 18
Source File: Constructor.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ConstructorScope.make(this));
}
 
Example 19
Source File: Method.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, MethodScope.make(this));
}
 
Example 20
Source File: Constructor.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private GenericsFactory getFactory() {
    // create scope and factory
    return CoreReflectionFactory.make(this, ConstructorScope.make(this));
}