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:
Annotated,AnnotatedCallable<T>,AnnotatedConstructor<T>,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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)The overridden equals operationConstructor<T>getAnnotatedConstructor()Gets the constructorConstructor<T>getDelegate()Gets the delegate (constructor)List<EnhancedAnnotatedParameter<?,T>>getEnhancedParameters()Gets the abstracted parametersList<EnhancedAnnotatedParameter<?,T>>getEnhancedParameters(Class<? extends Annotation> annotationType)Gets parameter abstractions with a given annotation type.List<AnnotatedParameter<T>>getParameters()Get the parameters of the callable member.ConstructorSignaturegetSignature()inthashCode()booleanisGeneric()static <T> EnhancedAnnotatedConstructor<T>of(AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer)AnnotatedConstructor<T>slim()Returns a lightweight implementation ofAnnotatedConstructorwith minimal memory footprint.StringtoString()Gets a string representation of the constructor-
Methods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedCallable
validateParameterCount
-
Methods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotatedMember
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransient
-
Methods inherited from class org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated
addMetaAnnotations, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive, processMetaAnnotations, processMetaAnnotations, processMetaAnnotations
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedConstructor
getAnnotations, getJavaMember
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
-
Methods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedMember
getDeclaringType
-
-
-
-
Method Detail
-
of
public static <T> EnhancedAnnotatedConstructor<T> of(AnnotatedConstructor<T> annotatedConstructor, EnhancedAnnotatedType<T> declaringClass, ClassTransformer classTransformer)
-
getAnnotatedConstructor
public Constructor<T> getAnnotatedConstructor()
Gets the constructor- Returns:
- The constructor
-
getDelegate
public Constructor<T> getDelegate()
Gets the delegate (constructor)- Specified by:
getDelegatein classAbstractEnhancedAnnotated<T,Constructor<T>>- Returns:
- The delegate
-
getEnhancedParameters
public List<EnhancedAnnotatedParameter<?,T>> 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:
EnhancedAnnotatedCallable.getEnhancedParameters()
-
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:
EnhancedAnnotatedCallable.getEnhancedParameters(Class)
-
equals
public boolean equals(Object other)
The overridden equals operation
-
toString
public String toString()
Gets a string representation of the constructor- Overrides:
toStringin classAbstractEnhancedAnnotatedMember<T,T,Constructor<T>>- Returns:
- A string representation
-
getSignature
public ConstructorSignature getSignature()
- Specified by:
getSignaturein interfaceEnhancedAnnotatedConstructor<T>
-
getParameters
public List<AnnotatedParameter<T>> getParameters()
Description copied from interface:AnnotatedCallableGet the parameters of the callable member.
- Specified by:
getParametersin interfaceAnnotatedCallable<T>- Returns:
- the parameters
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceEnhancedAnnotated<T,Constructor<T>>
-
slim
public AnnotatedConstructor<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
-
-