Refine search
public static <T> EnhancedAnnotatedConstructor<T> of(AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { return new EnhancedAnnotatedConstructorImpl<T>(annotatedConstructor, buildAnnotationMap(annotatedConstructor.getAnnotations()), buildAnnotationMap(annotatedConstructor.getAnnotations()), declaringClass, classTransformer); }
/** * The overridden equals operation * * @param other The instance to compare to * @return True if equal, false otherwise */ @Override public boolean equals(Object other) { if (super.equals(other) && other instanceof EnhancedAnnotatedConstructor<?>) { EnhancedAnnotatedConstructor<?> that = (EnhancedAnnotatedConstructor<?>) other; return this.getJavaMember().equals(that.getJavaMember()) && this.getEnhancedParameters().equals(that.getEnhancedParameters()); } return false; }
@Override public int hashCode() { int hash = 1; hash = hash * 31 + getJavaMember().hashCode(); hash = hash * 31 + getEnhancedParameters().hashCode(); return hash; }
/** * Constructor * <p/> * Initializes the superclass with the build annotations map * * @param constructor The constructor method * @param declaringClass The declaring class */ private EnhancedAnnotatedConstructorImpl(AnnotatedConstructor<T> annotatedConstructor, Map<Class<? extends Annotation>, Annotation> annotationMap, Map<Class<? extends Annotation>, Annotation> declaredAnnotationMap, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { super(annotatedConstructor, annotationMap, declaredAnnotationMap, classTransformer, declaringClass); this.slim = annotatedConstructor; ArrayList<EnhancedAnnotatedParameter<?, T>> parameters = new ArrayList<EnhancedAnnotatedParameter<?, T>>(); validateParameterCount(annotatedConstructor); for (AnnotatedParameter<T> annotatedParameter : annotatedConstructor.getParameters()) { EnhancedAnnotatedParameter<?, T> parameter = EnhancedAnnotatedParameterImpl.of(annotatedParameter, this, classTransformer); parameters.add(parameter); } this.parameters = immutableListView(parameters); this.signature = new ConstructorSignatureImpl(this); }
EnhancedAnnotatedConstructor<T> weldConstructor = EnhancedAnnotatedConstructorImpl.of(constructor, this, classTransformer); this.constructors.add(weldConstructor); this.declaredConstructorsBySignature.put(weldConstructor.getSignature(), weldConstructor);
public boolean isGeneric() { return getJavaMember().getTypeParameters().length > 0; }
/** * Constructor * <p/> * Initializes the superclass with the build annotations map * * @param constructor The constructor method * @param declaringClass The declaring class */ private EnhancedAnnotatedConstructorImpl(AnnotatedConstructor<T> annotatedConstructor, Map<Class<? extends Annotation>, Annotation> annotationMap, Map<Class<? extends Annotation>, Annotation> declaredAnnotationMap, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { super(annotatedConstructor, annotationMap, declaredAnnotationMap, classTransformer, declaringClass); this.slim = annotatedConstructor; ArrayList<EnhancedAnnotatedParameter<?, T>> parameters = new ArrayList<EnhancedAnnotatedParameter<?, T>>(); validateParameterCount(annotatedConstructor); for (AnnotatedParameter<T> annotatedParameter : annotatedConstructor.getParameters()) { EnhancedAnnotatedParameter<?, T> parameter = EnhancedAnnotatedParameterImpl.of(annotatedParameter, this, classTransformer); parameters.add(parameter); } this.parameters = immutableListView(parameters); this.signature = new ConstructorSignatureImpl(this); }
@Override public int hashCode() { int hash = 1; hash = hash * 31 + getJavaMember().hashCode(); hash = hash * 31 + getEnhancedParameters().hashCode(); return hash; }
EnhancedAnnotatedConstructor<T> weldConstructor = EnhancedAnnotatedConstructorImpl.of(constructor, this, classTransformer); this.constructors.add(weldConstructor); this.declaredConstructorsBySignature.put(weldConstructor.getSignature(), weldConstructor);
public boolean isGeneric() { return getJavaMember().getTypeParameters().length > 0; }
/** * Constructor * <p/> * Initializes the superclass with the build annotations map * * @param constructor The constructor method * @param declaringClass The declaring class */ private EnhancedAnnotatedConstructorImpl(AnnotatedConstructor<T> annotatedConstructor, Map<Class<? extends Annotation>, Annotation> annotationMap, Map<Class<? extends Annotation>, Annotation> declaredAnnotationMap, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { super(annotatedConstructor, annotationMap, declaredAnnotationMap, classTransformer, declaringClass); this.slim = annotatedConstructor; ArrayList<EnhancedAnnotatedParameter<?, T>> parameters = new ArrayList<EnhancedAnnotatedParameter<?, T>>(); validateParameterCount(annotatedConstructor); for (AnnotatedParameter<T> annotatedParameter : annotatedConstructor.getParameters()) { EnhancedAnnotatedParameter<?, T> parameter = EnhancedAnnotatedParameterImpl.of(annotatedParameter, this, classTransformer); parameters.add(parameter); } this.parameters = immutableListView(parameters); this.signature = new ConstructorSignatureImpl(this); }
public static <T> EnhancedAnnotatedConstructor<T> of(AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { return new EnhancedAnnotatedConstructorImpl<T>(annotatedConstructor, buildAnnotationMap(annotatedConstructor.getAnnotations()), buildAnnotationMap(annotatedConstructor.getAnnotations()), declaringClass, classTransformer); }
/** * The overridden equals operation * * @param other The instance to compare to * @return True if equal, false otherwise */ @Override public boolean equals(Object other) { if (super.equals(other) && other instanceof EnhancedAnnotatedConstructor<?>) { EnhancedAnnotatedConstructor<?> that = (EnhancedAnnotatedConstructor<?>) other; return this.getJavaMember().equals(that.getJavaMember()) && this.getEnhancedParameters().equals(that.getEnhancedParameters()); } return false; }
@Override public int hashCode() { int hash = 1; hash = hash * 31 + getJavaMember().hashCode(); hash = hash * 31 + getEnhancedParameters().hashCode(); return hash; }
EnhancedAnnotatedConstructor<T> weldConstructor = EnhancedAnnotatedConstructorImpl.of(constructor, this, classTransformer); this.constructors.add(weldConstructor); this.declaredConstructorsBySignature.put(weldConstructor.getSignature(), weldConstructor);
public boolean isGeneric() { return getJavaMember().getTypeParameters().length > 0; }
/** * Constructor * <p/> * Initializes the superclass with the build annotations map * * @param constructor The constructor method * @param declaringClass The declaring class */ private EnhancedAnnotatedConstructorImpl(AnnotatedConstructor<T> annotatedConstructor, Map<Class<? extends Annotation>, Annotation> annotationMap, Map<Class<? extends Annotation>, Annotation> declaredAnnotationMap, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { super(annotatedConstructor, annotationMap, declaredAnnotationMap, classTransformer, declaringClass); this.slim = annotatedConstructor; ArrayList<EnhancedAnnotatedParameter<?, T>> parameters = new ArrayList<EnhancedAnnotatedParameter<?, T>>(); validateParameterCount(annotatedConstructor); for (AnnotatedParameter<T> annotatedParameter : annotatedConstructor.getParameters()) { EnhancedAnnotatedParameter<?, T> parameter = EnhancedAnnotatedParameterImpl.of(annotatedParameter, this, classTransformer); parameters.add(parameter); } this.parameters = immutableListView(parameters); this.signature = new ConstructorSignatureImpl(this); }
public static <T> EnhancedAnnotatedConstructor<T> of(AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) { return new EnhancedAnnotatedConstructorImpl<T>(annotatedConstructor, buildAnnotationMap(annotatedConstructor.getAnnotations()), buildAnnotationMap(annotatedConstructor.getAnnotations()), declaringClass, classTransformer); }
/** * The overridden equals operation * * @param other The instance to compare to * @return True if equal, false otherwise */ @Override public boolean equals(Object other) { if (super.equals(other) && other instanceof EnhancedAnnotatedConstructor<?>) { EnhancedAnnotatedConstructor<?> that = (EnhancedAnnotatedConstructor<?>) other; return this.getJavaMember().equals(that.getJavaMember()) && this.getEnhancedParameters().equals(that.getEnhancedParameters()); } return false; }
@Override public int hashCode() { int hash = 1; hash = hash * 31 + getJavaMember().hashCode(); hash = hash * 31 + getEnhancedParameters().hashCode(); return hash; }