org.jboss.weld.introspector.jlr
Class WeldAnnotationImpl<T extends Annotation>
java.lang.Object
org.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,Class<T>>
org.jboss.weld.introspector.jlr.WeldClassImpl<T>
org.jboss.weld.introspector.jlr.WeldAnnotationImpl<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedType<T>, WeldAnnotated<T,Class<T>>, WeldAnnotation<T>, WeldClass<T>
public class WeldAnnotationImpl<T extends Annotation>
- extends WeldClassImpl<T>
- implements WeldAnnotation<T>
Represents an annotated annotation
This class is immutable and therefore threadsafe
- Author:
- Pete Muir
Methods inherited from class org.jboss.weld.introspector.jlr.WeldClassImpl |
asWeldSubclass, cast, getAnnotatedClass, getConstructors, getDeclaredFields, getDeclaredMetaAnnotations, getDeclaredWeldConstructor, getDeclaredWeldField, getDeclaredWeldFields, getDeclaredWeldMethod, getDeclaredWeldMethod, getDeclaredWeldMethods, getDeclaredWeldMethods, getDeclaredWeldMethodsWithAnnotatedParameters, getFields, getMethods, getName, getNoArgsWeldConstructor, getPackage, getSimpleName, getWeldConstructors, getWeldFields, getWeldFields, getWeldMethod, getWeldMethod, getWeldMethods, getWeldMethods, getWeldSuperclass, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isFinal, isGeneric, isLocalClass, isMemberClass, isPackagePrivate, isPrivate, isPublic, isSerializable, isStatic, of, of, of |
Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated |
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive |
Methods inherited from interface org.jboss.weld.introspector.WeldClass |
asWeldSubclass, cast, getDeclaredMetaAnnotations, getDeclaredWeldConstructor, getDeclaredWeldField, getDeclaredWeldFields, getDeclaredWeldMethod, getDeclaredWeldMethod, getDeclaredWeldMethods, getDeclaredWeldMethods, getDeclaredWeldMethodsWithAnnotatedParameters, getNoArgsWeldConstructor, getSimpleName, getWeldConstructors, getWeldFields, getWeldFields, getWeldMethod, getWeldMethod, getWeldMethods, getWeldMethods, getWeldSuperclass, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isLocalClass, isMemberClass, isParameterizedType, isSerializable |
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStatic |
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedType |
getConstructors, getFields, getJavaClass, getMethods |
Methods inherited from interface javax.enterprise.inject.spi.Annotated |
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
WeldAnnotationImpl
protected WeldAnnotationImpl(Class<T> annotationType,
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
create
public static <A extends Annotation> WeldAnnotation<A> create(Class<A> annotationType,
ClassTransformer classTransformer)
getMembers
public Set<WeldMethod<?,?>> getMembers()
- Gets all members of the annotation
Initializes the members first if they are null
- Specified by:
getMembers
in interface WeldAnnotation<T extends Annotation>
- Returns:
- The set of abstracted members
- See Also:
WeldAnnotation.getMembers()
getMembers
public Set<WeldMethod<?,?>> getMembers(Class<? extends Annotation> annotationType)
- Returns the annotated members with a given annotation type
If the annotated members are null, they are initialized first.
- Specified by:
getMembers
in interface WeldAnnotation<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:
WeldAnnotation.getMembers(Class)
toString
public String toString()
- Gets a string representation of the annotation
- Overrides:
toString
in class WeldClassImpl<T extends Annotation>
- Returns:
- A string representation
getDelegate
public Class<T> getDelegate()
- Description copied from class:
WeldClassImpl
- Gets the delegate (class)
- Overrides:
getDelegate
in class WeldClassImpl<T extends Annotation>
- Returns:
- The class
Copyright © 2013 Seam Framework. All Rights Reserved.