Class EnhancedAnnotationImpl<T extends Annotation>
java.lang.Object
org.jboss.weld.annotated.enhanced.jlr.AbstractEnhancedAnnotated<T,Class<T>>
org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotatedTypeImpl<T>
org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotationImpl<T>
- Type Parameters:
T-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Annotated,jakarta.enterprise.inject.spi.AnnotatedType<T>,EnhancedAnnotated<T,,Class<T>> EnhancedAnnotatedType<T>,EnhancedAnnotation<T>
public class EnhancedAnnotationImpl<T extends Annotation>
extends EnhancedAnnotatedTypeImpl<T>
implements EnhancedAnnotation<T>
Represents an annotated annotation
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
ConstructorsModifierConstructorDescriptionprotectedEnhancedAnnotationImpl(SlimAnnotatedType<T> annotatedType, Map<Class<? extends Annotation>, Annotation> annotationMap, Map<Class<? extends Annotation>, Annotation> declaredAnnotationMap, ClassTransformer classTransformer) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
EnhancedAnnotation<A>create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer) booleanGets the delegate (class)Set<EnhancedAnnotatedMethod<?,?>> Gets all members of the annotationSet<EnhancedAnnotatedMethod<?,?>> getMembers(Class<? extends Annotation> annotationType) Returns the annotated members with a given annotation typeprotected Set<EnhancedAnnotatedMethod<?,? super T>> getOverriddenMethods(EnhancedAnnotatedType<T> annotatedType, Set<EnhancedAnnotatedMethod<?, ? super T>> methods, boolean skipOverridingBridgeMethods) inthashCode()toString()Gets a string representation of the annotationMethods inherited from class org.jboss.weld.annotated.enhanced.jlr.EnhancedAnnotatedTypeImpl
asEnhancedSubclass, buildAnnotatedMethodMultimap, buildAnnotatedParameterMethodMultimap, cast, getAnnotatedClass, getConstructors, getDeclaredEnhancedConstructor, getDeclaredEnhancedField, getDeclaredEnhancedFields, getDeclaredEnhancedFields, getDeclaredEnhancedMethod, getDeclaredEnhancedMethods, getDeclaredEnhancedMethods, getDeclaredEnhancedMethodsWithAnnotatedParameters, getDeclaredMetaAnnotations, getEnhancedConstructors, getEnhancedConstructors, getEnhancedFields, getEnhancedFields, getEnhancedMethod, getEnhancedMethods, getEnhancedMethods, getEnhancedMethodsWithAnnotatedParameters, getEnhancedSuperclass, getFields, getMethods, getName, getNoArgsEnhancedConstructor, getOverriddenMethods, getPackage, getSimpleName, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isFinal, isGeneric, isLocalClass, isMemberClass, isPackagePrivate, isPrivate, isPublic, isSealed, isSerializable, isStatic, of, slimMethods 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.AnnotatedType
getAnnotations, getConstructors, getFields, getJavaClass, getMethodsMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStaticMethods inherited from interface org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType
asEnhancedSubclass, cast, getDeclaredEnhancedConstructor, getDeclaredEnhancedField, getDeclaredEnhancedFields, getDeclaredEnhancedFields, getDeclaredEnhancedMethod, getDeclaredEnhancedMethods, getDeclaredEnhancedMethods, getDeclaredEnhancedMethodsWithAnnotatedParameters, getDeclaredMetaAnnotations, getEnhancedConstructors, getEnhancedConstructors, getEnhancedFields, getEnhancedFields, getEnhancedMethod, getEnhancedMethods, getEnhancedMethods, getEnhancedMethodsWithAnnotatedParameters, getEnhancedSuperclass, getNoArgsEnhancedConstructor, getSimpleName, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isLocalClass, isMemberClass, isParameterizedType, isSealed, isSerializable, slim
-
Constructor Details
-
EnhancedAnnotationImpl
protected EnhancedAnnotationImpl(SlimAnnotatedType<T> annotatedType, Map<Class<? extends Annotation>, Annotation> annotationMap, Map<Class<? extends Annotation>, Annotation> declaredAnnotationMap, ClassTransformer classTransformer) Constructor Initializes the superclass with the built annotation map- Parameters:
annotationType- The annotation type
-
-
Method Details
-
create
public static <A extends Annotation> EnhancedAnnotation<A> create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer) -
getOverriddenMethods
protected Set<EnhancedAnnotatedMethod<?,? super T>> getOverriddenMethods(EnhancedAnnotatedType<T> annotatedType, Set<EnhancedAnnotatedMethod<?, ? super T>> methods, boolean skipOverridingBridgeMethods) - Overrides:
getOverriddenMethodsin classEnhancedAnnotatedTypeImpl<T extends Annotation>skipOverridingBridgeMethods- If set totruethe returning set will not contain methods overriden by a bridge method- Returns:
- the set of overriden methods
-
getMembers
Gets all members of the annotation Initializes the members first if they are null- Specified by:
getMembersin interfaceEnhancedAnnotation<T extends Annotation>- Returns:
- The set of abstracted members
- See Also:
-
getMembers
Returns the annotated members with a given annotation type If the annotated members are null, they are initialized first.- Specified by:
getMembersin interfaceEnhancedAnnotation<T extends Annotation>- Parameters:
annotationType- The annotation type to match- Returns:
- The set of abstracted members with the given annotation type present. An empty set is returned if no matches are found
- See Also:
-
toString
Gets a string representation of the annotation- Overrides:
toStringin classEnhancedAnnotatedTypeImpl<T extends Annotation>- Returns:
- A string representation
-
getDelegate
Description copied from class:EnhancedAnnotatedTypeImplGets the delegate (class)- Overrides:
getDelegatein classEnhancedAnnotatedTypeImpl<T extends Annotation>- Returns:
- The class
-
hashCode
public int hashCode()- Overrides:
hashCodein classEnhancedAnnotatedTypeImpl<T extends Annotation>
-
equals
- Overrides:
equalsin classEnhancedAnnotatedTypeImpl<T extends Annotation>
-