private BeanSpec(BeanSpec source, String name) { this.originalName = source.name; this.name = name; this.injector = source.injector; this.type = source.type; this.rawType = source.rawType; this.isArray = source.isArray; this.qualifiers.addAll(source.qualifiers); this.elementLoaders.addAll(source.elementLoaders); this.filters.addAll(source.filters); this.transformers.addAll(source.transformers); this.valueLoader = source.valueLoader; this.annotations.putAll(source.annotations); this.annoData.addAll(source.annoData); this.allAnnotations.putAll(source.allAnnotations); this.tagAnnotations.putAll(source.tagAnnotations); this.hc = calcHashCode(); this.modifiers = source.modifiers; this.rawType = source.rawType; this.typeParams = source.typeParams; }
private BeanSpec(BeanSpec source, String name) { this.originalName = source.name; this.name = name; this.injector = source.injector; this.type = source.type; this.rawType = source.rawType; this.isArray = source.isArray; this.qualifiers.addAll(source.qualifiers); this.elementLoaders.addAll(source.elementLoaders); this.filters.addAll(source.filters); this.transformers.addAll(source.transformers); this.valueLoader = source.valueLoader; this.annotations.putAll(source.annotations); this.annoData.addAll(source.annoData); this.allAnnotations.putAll(source.allAnnotations); this.tagAnnotations.putAll(source.tagAnnotations); this.hc = calcHashCode(); this.modifiers = source.modifiers; this.rawType = source.rawType; this.typeParams = source.typeParams; }
private BeanSpec(BeanSpec source, Type convertTo) { this.originalName = source.name; this.name = source.name; this.injector = source.injector; this.type = convertTo; if (convertTo == ArrayList.class) { this.rawType = ArrayList.class; this.typeParams = (List) C.list(this.rawType); } this.isArray = rawType().isArray(); this.qualifiers.addAll(source.qualifiers); this.elementLoaders.addAll(source.elementLoaders); this.filters.addAll(source.filters); this.transformers.addAll(source.transformers); this.valueLoader = source.valueLoader; this.annotations.putAll(source.annotations); this.annoData.addAll(source.annoData); this.allAnnotations.putAll(source.allAnnotations); this.tagAnnotations.putAll(source.tagAnnotations); this.hc = calcHashCode(); this.modifiers = source.modifiers; this.fieldTypeImplLookup = source.fieldTypeImplLookup; }
private BeanSpec(BeanSpec source, Type convertTo) { this.originalName = source.name; this.name = source.name; this.injector = source.injector; this.type = convertTo; if (convertTo == ArrayList.class) { this.rawType = ArrayList.class; this.typeParams = (List) C.list(this.rawType); } this.isArray = rawType().isArray(); this.qualifiers.addAll(source.qualifiers); this.elementLoaders.addAll(source.elementLoaders); this.filters.addAll(source.filters); this.transformers.addAll(source.transformers); this.valueLoader = source.valueLoader; this.annotations.putAll(source.annotations); this.annoData.addAll(source.annoData); this.allAnnotations.putAll(source.allAnnotations); this.tagAnnotations.putAll(source.tagAnnotations); this.hc = calcHashCode(); this.modifiers = source.modifiers; this.fieldTypeImplLookup = source.fieldTypeImplLookup; }
private BeanSpec(Type type, Annotation[] annotations, String name, Injector injector, int modifiers, Map<String, Class> typeParamImplLookup) { this.injector = injector; this.type = type; this.originalName = name; this.name = name; this.rawType = rawTypeOf(type, typeParamImplLookup); this.typeParams(typeParamImplLookup); if (null != typeParamImplLookup && type instanceof TypeVariable && rawType.getTypeParameters().length > 0 && !typeParamImplLookup.isEmpty()) { this.fieldTypeImplLookup = Generics.subLookup(typeParamImplLookup, ((TypeVariable) type).getName()); } this.isArray = rawType.isArray(); this.resolveTypeAnnotations(injector); this.resolveAnnotations(annotations, injector, typeParamImplLookup); this.hc = calcHashCode(); this.modifiers = modifiers; }
private BeanSpec(Type type, Annotation[] annotations, String name, Injector injector, int modifiers, Map<String, Class> typeParamImplLookup) { this.injector = injector; this.type = type; this.originalName = name; this.name = name; this.rawType = rawTypeOf(type, typeParamImplLookup); this.typeParams(typeParamImplLookup); if (null != typeParamImplLookup && type instanceof TypeVariable && rawType.getTypeParameters().length > 0 && !typeParamImplLookup.isEmpty()) { this.fieldTypeImplLookup = Generics.subLookup(typeParamImplLookup, ((TypeVariable) type).getName()); } this.isArray = rawType.isArray(); this.resolveTypeAnnotations(injector); this.resolveAnnotations(annotations, injector, typeParamImplLookup); this.hc = calcHashCode(); this.modifiers = modifiers; }