sun.reflect.generics.factory.GenericsFactory Java Examples
The following examples show how to use
sun.reflect.generics.factory.GenericsFactory.
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: WildcardTypeImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private WildcardTypeImpl(FieldTypeSignature[] ubs, FieldTypeSignature[] lbs, GenericsFactory f) { super(f); upperBoundASTs = ubs; lowerBoundASTs = lbs; }
Example #2
Source File: AnnotationParser.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
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 jdk8u60 with GNU General Public License v2.0 | 5 votes |
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: TypeVariableImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Factory method. * @param decl - the reflective object that declared the type variable * that this method should create * @param name - the name of the type variable to be returned * @param bs - an array of ASTs representing the bounds for the type * variable to be created * @param f - a factory that can be used to manufacture reflective * objects that represent the bounds of this type variable * @return A type variable with name, bounds, declaration and factory * specified */ public static <T extends GenericDeclaration> TypeVariableImpl<T> make(T decl, String name, FieldTypeSignature[] bs, GenericsFactory f) { if (!((decl instanceof Class) || (decl instanceof Method) || (decl instanceof Constructor))) { throw new AssertionError("Unexpected kind of GenericDeclaration" + decl.getClass().toString()); } return new TypeVariableImpl<T>(decl, name, bs, f); }
Example #5
Source File: TypeVariableImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Factory method. * @param decl - the reflective object that declared the type variable * that this method should create * @param name - the name of the type variable to be returned * @param bs - an array of ASTs representing the bounds for the type * variable to be created * @param f - a factory that can be used to manufacture reflective * objects that represent the bounds of this type variable * @return A type variable with name, bounds, declaration and factory * specified */ public static <T extends GenericDeclaration> TypeVariableImpl<T> make(T decl, String name, FieldTypeSignature[] bs, GenericsFactory f) { if (!((decl instanceof Class) || (decl instanceof Method) || (decl instanceof Constructor))) { throw new AssertionError("Unexpected kind of GenericDeclaration" + decl.getClass().toString()); } return new TypeVariableImpl<T>(decl, name, bs, f); }
Example #6
Source File: TypeVariableImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private TypeVariableImpl(D decl, String n, FieldTypeSignature[] bs, GenericsFactory f) { super(f); genericDeclaration = decl; name = n; boundASTs = bs; }
Example #7
Source File: AnnotationParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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: TypeVariableImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private TypeVariableImpl(D decl, String n, FieldTypeSignature[] bs, GenericsFactory f) { super(f); genericDeclaration = decl; name = n; boundASTs = bs; }
Example #9
Source File: WildcardTypeImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private WildcardTypeImpl(FieldTypeSignature[] ubs, FieldTypeSignature[] lbs, GenericsFactory f) { super(f); upperBoundASTs = ubs; lowerBoundASTs = lbs; }
Example #10
Source File: AnnotationParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 #11
Source File: FieldRepository.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected FieldRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #12
Source File: LazyReflectiveObjectGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected LazyReflectiveObjectGenerator(GenericsFactory f) { factory = f; }
Example #13
Source File: LazyReflectiveObjectGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { return factory; }
Example #14
Source File: Class.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { // create scope and factory return CoreReflectionFactory.make(this, ClassScope.make(this)); }
Example #15
Source File: Constructor.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { // create scope and factory return CoreReflectionFactory.make(this, ConstructorScope.make(this)); }
Example #16
Source File: Method.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { // create scope and factory return CoreReflectionFactory.make(this, MethodScope.make(this)); }
Example #17
Source File: Field.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { Class<?> c = getDeclaringClass(); // create scope and factory return CoreReflectionFactory.make(c, ClassScope.make(c)); }
Example #18
Source File: ClassRepository.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private ClassRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #19
Source File: ConstructorRepository.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected ConstructorRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #20
Source File: Class.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
private GenericsFactory getFactory() { // create scope and factory return CoreReflectionFactory.make(this, ClassScope.make(this)); }
Example #21
Source File: LazyReflectiveObjectGenerator.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
private GenericsFactory getFactory() { return factory; }
Example #22
Source File: GenericDeclRepository.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected GenericDeclRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #23
Source File: FieldRepository.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected FieldRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #24
Source File: GenericDeclRepository.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected GenericDeclRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #25
Source File: LazyReflectiveObjectGenerator.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { return factory; }
Example #26
Source File: ClassRepository.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private ClassRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #27
Source File: Class.java From JDKSourceCode1.8 with MIT License | 4 votes |
private GenericsFactory getFactory() { // create scope and factory return CoreReflectionFactory.make(this, ClassScope.make(this)); }
Example #28
Source File: ClassRepository.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private ClassRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }
Example #29
Source File: Field.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private GenericsFactory getFactory() { Class<?> c = getDeclaringClass(); // create scope and factory return CoreReflectionFactory.make(c, ClassScope.make(c)); }
Example #30
Source File: MethodRepository.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private MethodRepository(String rawSig, GenericsFactory f) { super(rawSig, f); }