Class EnhancedAnnotatedConstructorImpl<T>
java.lang.Object
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated<T,S>
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember<T,X,S>
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedCallable<T,T,Constructor<T>>
org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotatedConstructorImpl<T>
- Type Parameters:
T- exact type
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Annotated,jakarta.enterprise.inject.spi.AnnotatedCallable<T>,jakarta.enterprise.inject.spi.AnnotatedConstructor<T>,jakarta.enterprise.inject.spi.AnnotatedMember<T>,EnhancedAnnotated<T,,Constructor<T>> EnhancedAnnotatedCallable<T,,T, Constructor<T>> EnhancedAnnotatedConstructor<T>,EnhancedAnnotatedMember<T,T, Constructor<T>>
public class EnhancedAnnotatedConstructorImpl<T>
extends AbstractEnhancedAnnotatedCallable<T,T,Constructor<T>>
implements EnhancedAnnotatedConstructor<T>
Represents an annotated constructor
This class is immutable, and therefore threadsafe
- Author:
- Pete Muir, Ales Justin
-
Field Summary
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe overridden equals operationGets the constructorGets the delegate (constructor)Gets the abstracted parametersgetEnhancedParameters(Class<? extends Annotation> annotationType) Gets parameter abstractions with a given annotation type.inthashCode()booleanstatic <T> EnhancedAnnotatedConstructor<T>of(jakarta.enterprise.inject.spi.AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) jakarta.enterprise.inject.spi.AnnotatedConstructor<T>slim()Returns a lightweight implementation ofAnnotatedConstructorwith minimal memory footprint.toString()Gets a string representation of the constructorMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedCallable
validateParameterCountMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransientMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated
addMetaAnnotations, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive, processMetaAnnotations, processMetaAnnotations, processMetaAnnotationsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedConstructor
getAnnotations, getJavaMemberMethods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMember
isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
Method Details
-
of
public static <T> EnhancedAnnotatedConstructor<T> of(jakarta.enterprise.inject.spi.AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer) -
getAnnotatedConstructor
Gets the constructor- Returns:
- The constructor
-
getDelegate
Gets the delegate (constructor)- Specified by:
getDelegatein classAbstractEnhancedAnnotated<T,Constructor<T>> - Returns:
- The delegate
-
getEnhancedParameters
Gets the abstracted parameters If the parameters are null, initialize them first- Specified by:
getEnhancedParametersin interfaceEnhancedAnnotatedCallable<T,T, Constructor<T>> - Returns:
- A list of annotated parameter abstractions
- See Also:
-
getEnhancedParameters
public List<EnhancedAnnotatedParameter<?,T>> getEnhancedParameters(Class<? extends Annotation> annotationType) Gets parameter abstractions with a given annotation type. If the parameters are null, they are initializes first. The results of the method are not cached, as it is not called at runtime- Specified by:
getEnhancedParametersin interfaceEnhancedAnnotatedCallable<T,T, Constructor<T>> - Parameters:
annotationType- The annotation type to match- Returns:
- A list of matching parameter abstractions. An empty list is returned if there are no matches.
- See Also:
-
equals
The overridden equals operation -
hashCode
public int hashCode() -
toString
Gets a string representation of the constructor- Overrides:
toStringin classAbstractEnhancedAnnotatedMember<T,T, Constructor<T>> - Returns:
- A string representation
-
getSignature
- Specified by:
getSignaturein interfaceEnhancedAnnotatedConstructor<T>
-
getParameters
- Specified by:
getParametersin interfacejakarta.enterprise.inject.spi.AnnotatedCallable<T>
-
isGeneric
public boolean isGeneric()- Specified by:
isGenericin interfaceEnhancedAnnotated<T,Constructor<T>>
-
slim
Description copied from interface:EnhancedAnnotatedConstructorReturns a lightweight implementation ofAnnotatedConstructorwith minimal memory footprint.- Specified by:
slimin interfaceEnhancedAnnotated<T,Constructor<T>> - Specified by:
slimin interfaceEnhancedAnnotatedCallable<T,T, Constructor<T>> - Specified by:
slimin interfaceEnhancedAnnotatedConstructor<T>- Specified by:
slimin interfaceEnhancedAnnotatedMember<T,T, Constructor<T>> - Returns:
- the slim version of this
AnnotatedConstructor
-