Class EnhancedAnnotatedParameterImpl<T,X>
java.lang.Object
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated<T,Object>
org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotatedParameterImpl<T,X>
- Type Parameters:
T-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Annotated,jakarta.enterprise.inject.spi.AnnotatedParameter<X>,EnhancedAnnotated<T,,Object> EnhancedAnnotatedParameter<T,X>
public class EnhancedAnnotatedParameterImpl<T,X>
extends AbstractEnhancedAnnotated<T,Object>
implements EnhancedAnnotatedParameter<T,X>
Represents a parameter
This class is immutable and therefore threadsafe
- Author:
- Pete Muir
-
Field Summary
Fields inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnhancedAnnotatedParameterImpl(jakarta.enterprise.inject.spi.AnnotatedParameter<X> annotatedParameter, EnhancedAnnotatedCallable<?, X, ?> declaringMember, Map<Class<? extends Annotation>, Annotation> annotationMap, ClassTransformer classTransformer) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjakarta.enterprise.inject.spi.AnnotatedCallable<X>getName()Gets the name of the parameterintbooleanisFinal()Indicates if the parameter is finalbooleanbooleanbooleanbooleanisPublic()Indicates if this annotated item is publicbooleanisStatic()Indicates if the parameter is staticstatic <T,X> EnhancedAnnotatedParameter<T, X> of(jakarta.enterprise.inject.spi.AnnotatedParameter<X> annotatedParameter, EnhancedAnnotatedCallable<?, X, ?> declaringMember, ClassTransformer classTransformer) jakarta.enterprise.inject.spi.AnnotatedParameter<X>slim()Returns a lightweight implementation ofAnnotatedParameterwith minimal memory footprint.toString()Gets a string representation of the parameterMethods 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, equals, finalize, getClass, hashCode, 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.AnnotatedParameter
getAnnotations, getJavaParameterMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, isParameterizedType, isPrimitive
-
Constructor Details
-
EnhancedAnnotatedParameterImpl
protected EnhancedAnnotatedParameterImpl(jakarta.enterprise.inject.spi.AnnotatedParameter<X> annotatedParameter, EnhancedAnnotatedCallable<?, X, ?> declaringMember, Map<Class<? extends Annotation>, Annotation> annotationMap, ClassTransformer classTransformer) Constructor- Parameters:
annotations- The annotations arraytype- The type of the parameter
-
-
Method Details
-
of
public static <T,X> EnhancedAnnotatedParameter<T,X> of(jakarta.enterprise.inject.spi.AnnotatedParameter<X> annotatedParameter, EnhancedAnnotatedCallable<?, X, ?> declaringMember, ClassTransformer classTransformer) -
isFinal
public boolean isFinal()Indicates if the parameter is final- Specified by:
isFinalin interfaceEnhancedAnnotated<T,X> - Returns:
- True if final, false otherwise
- See Also:
-
isStatic
public boolean isStatic()Indicates if the parameter is static- Specified by:
isStaticin interfaceEnhancedAnnotated<T,X> - Returns:
- True if static, false otherwise
- See Also:
-
isPublic
public boolean isPublic()Description copied from interface:EnhancedAnnotatedIndicates if this annotated item is public- Specified by:
isPublicin interfaceEnhancedAnnotated<T,X> - Returns:
- if public, returns true
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceEnhancedAnnotated<T,X>
-
isPackagePrivate
public boolean isPackagePrivate()- Specified by:
isPackagePrivatein interfaceEnhancedAnnotated<T,X>
-
isGeneric
public boolean isGeneric()- Specified by:
isGenericin interfaceEnhancedAnnotated<T,X>
-
getPackage
- Specified by:
getPackagein interfaceEnhancedAnnotated<T,X>
-
getName
Gets the name of the parameter- Specified by:
getNamein interfaceEnhancedAnnotated<T,X> - Returns:
- The name
- Throws:
IllegalArgumentException- (not supported)- See Also:
-
toString
Gets a string representation of the parameter -
getDeclaringCallable
- Specified by:
getDeclaringCallablein interfacejakarta.enterprise.inject.spi.AnnotatedParameter<T>
-
getDeclaringEnhancedCallable
- Specified by:
getDeclaringEnhancedCallablein interfaceEnhancedAnnotatedParameter<T,X>
-
getPosition
public int getPosition()- Specified by:
getPositionin interfacejakarta.enterprise.inject.spi.AnnotatedParameter<T>
-
getDelegate
- Specified by:
getDelegatein classAbstractEnhancedAnnotated<T,Object>
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceEnhancedAnnotatedParameter<T,X>
-
slim
Description copied from interface:EnhancedAnnotatedParameterReturns a lightweight implementation ofAnnotatedParameterwith minimal memory footprint.- Specified by:
slimin interfaceEnhancedAnnotated<T,X> - Specified by:
slimin interfaceEnhancedAnnotatedParameter<T,X> - Returns:
- the slim version of this
AnnotatedParameter
-