|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,java.lang.Class<T>>
org.jboss.weld.introspector.jlr.WeldClassImpl<T>
T - the type of the classpublic class WeldClassImpl<T>
Represents an annotated class This class is immutable, and therefore threadsafe
| Field Summary |
|---|
| Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated |
|---|
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
protected |
WeldClassImpl(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
java.util.Set<java.lang.reflect.Type> typeClosure,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
ClassTransformer classTransformer)
|
| Method Summary | ||
|---|---|---|
|
asWeldSubclass(WeldClass<U> clazz)
|
|
|
cast(java.lang.Object object)
|
|
boolean |
equals(java.lang.Object other)
Compares two AbstractAnnotatedItems |
|
java.lang.Class<? extends T> |
getAnnotatedClass()
Gets the implementing class |
|
java.util.Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> |
getConstructors()
|
|
java.util.Set<WeldField<?,?>> |
getDeclaredFields()
|
|
java.util.Set<java.lang.annotation.Annotation> |
getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets all annotations which are declared on this annotated item with the given meta annotation type |
|
WeldConstructor<T> |
getDeclaredWeldConstructor(ConstructorSignature signature)
Get the constructor which matches the argument list provided |
|
|
getDeclaredWeldField(java.lang.String fieldName)
Get a field by name |
|
java.util.Set<WeldField<?,? super T>> |
getDeclaredWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this class only. |
|
WeldMethod<?,?> |
getDeclaredWeldMethod(java.lang.reflect.Method method)
|
|
|
getDeclaredWeldMethod(MethodSignature signature)
Get a method by name |
|
java.util.Set<WeldMethod<?,?>> |
getDeclaredWeldMethods()
Gets all fields on the type |
|
java.util.Set<WeldMethod<?,? super T>> |
getDeclaredWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all methods annotated with annotationType |
|
java.util.Set<WeldMethod<?,? super T>> |
getDeclaredWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType |
|
java.lang.Class<T> |
getDelegate()
Gets the delegate (class) |
|
java.util.Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> |
getFields()
|
|
java.util.Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> |
getMethods()
|
|
java.lang.String |
getName()
Gets the name of the type |
|
WeldConstructor<T> |
getNoArgsWeldConstructor()
Gets the no-args constructor |
|
java.lang.Package |
getPackage()
|
|
java.lang.String |
getSimpleName()
|
|
java.util.Set<WeldConstructor<T>> |
getWeldConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets constructors with given annotation type |
|
java.util.Set<WeldField<?,?>> |
getWeldFields()
Gets the abstracted fields of the class Initializes the fields if they are null |
|
java.util.Set<WeldField<?,?>> |
getWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the abstracted field annotated with a specific annotation type If the fields map is null, initialize it first |
|
WeldMethod<?,?> |
getWeldMethod(java.lang.reflect.Method methodDescriptor)
Find the annotated method for a given methodDescriptor |
|
|
getWeldMethod(MethodSignature signature)
Get a method by name |
|
java.util.Set<WeldMethod<?,?>> |
getWeldMethods()
Gets all fields on the type |
|
java.util.Set<WeldMethod<?,?>> |
getWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the abstracted methods that have a certain annotation type present If the annotated methods map is null, initialize it first |
|
WeldClass<?> |
getWeldSuperclass()
Gets the superclass abstraction of the type |
|
boolean |
isAbstract()
|
|
boolean |
isAnonymousClass()
|
|
boolean |
isDiscovered()
|
|
boolean |
isEnum()
|
|
boolean |
isEquivalent(java.lang.Class<?> clazz)
Check if this is equivalent to a java class |
|
boolean |
isFinal()
Indicates if the type if final |
|
boolean |
isLocalClass()
|
|
boolean |
isMemberClass()
|
|
boolean |
isPackagePrivate()
|
|
boolean |
isPrivate()
|
|
boolean |
isPublic()
Indicates if this annotated item is public |
|
boolean |
isSerializable()
|
|
boolean |
isStatic()
Indicates if the type is static |
|
static
|
of(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
ClassTransformer classTransformer)
|
|
static
|
of(java.lang.Class<T> clazz,
ClassTransformer classTransformer)
|
|
static
|
of(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
ClassTransformer classTransformer)
|
|
java.lang.String |
toString()
Gets a string representation of the class |
|
| Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated |
|---|
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, hashCode, isAnnotationPresent, isParameterizedType, isPrimitive, isProxyable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.weld.introspector.WeldClass |
|---|
isParameterizedType |
| Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
|---|
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, isPrimitive, isProxyable |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedType |
|---|
getJavaClass |
| Methods inherited from interface javax.enterprise.inject.spi.Annotated |
|---|
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
| Constructor Detail |
|---|
protected WeldClassImpl(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
java.util.Set<java.lang.reflect.Type> typeClosure,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
ClassTransformer classTransformer)
| Method Detail |
|---|
public static <T> WeldClass<T> of(java.lang.Class<T> clazz,
ClassTransformer classTransformer)
public static <T> WeldClass<T> of(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
ClassTransformer classTransformer)
public static <T> WeldClass<T> of(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
ClassTransformer classTransformer)
public boolean equals(java.lang.Object other)
AbstractWeldAnnotated
equals in class AbstractWeldAnnotated<T,java.lang.Class<T>>other - The other item
public java.lang.Class<? extends T> getAnnotatedClass()
public java.lang.Class<T> getDelegate()
getDelegate in class AbstractWeldAnnotated<T,java.lang.Class<T>>public java.util.Set<WeldField<?,?>> getWeldFields()
getWeldFields in interface WeldClass<T>public java.util.Set<WeldField<?,?>> getDeclaredFields()
public <F> WeldField<F,?> getDeclaredWeldField(java.lang.String fieldName)
WeldClass
getDeclaredWeldField in interface WeldClass<T>F - the expected type of the fieldfieldName - the field name
public java.util.Set<WeldField<?,? super T>> getDeclaredWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getDeclaredWeldFields in interface WeldClass<T>annotationType - The annotation to match
public WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
WeldClass
getDeclaredWeldConstructor in interface WeldClass<T>public java.util.Set<WeldField<?,?>> getWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getWeldFields in interface WeldClass<T>annotationType - The annotation type to match
public boolean isLocalClass()
isLocalClass in interface WeldClass<T>public boolean isAnonymousClass()
isAnonymousClass in interface WeldClass<T>public boolean isMemberClass()
isMemberClass in interface WeldClass<T>public boolean isAbstract()
isAbstract in interface WeldClass<T>public boolean isEnum()
isEnum in interface WeldClass<T>public boolean isSerializable()
isSerializable in interface WeldClass<T>public java.util.Set<WeldMethod<?,?>> getWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getWeldMethods in interface WeldClass<T>annotationType - The annotation type to match
WeldClass.getWeldMethods(Class)public java.util.Set<WeldMethod<?,? super T>> getDeclaredWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getDeclaredWeldMethods in interface WeldClass<T>annotationType - The annotation to match
public java.util.Set<WeldConstructor<T>> getWeldConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getWeldConstructors in interface WeldClass<T>annotationType - The annotation type to match
WeldClass.getWeldConstructors(Class)public WeldConstructor<T> getNoArgsWeldConstructor()
WeldClass
getNoArgsWeldConstructor in interface WeldClass<T>public java.util.Set<WeldMethod<?,? super T>> getDeclaredWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getDeclaredWeldMethodsWithAnnotatedParameters in interface WeldClass<T>annotationType - The annotation to match
public WeldMethod<?,?> getWeldMethod(java.lang.reflect.Method methodDescriptor)
WeldClass
getWeldMethod in interface WeldClass<T>public java.util.Set<WeldMethod<?,?>> getWeldMethods()
WeldClass
getWeldMethods in interface WeldClass<T>public WeldMethod<?,?> getDeclaredWeldMethod(java.lang.reflect.Method method)
getDeclaredWeldMethod in interface WeldClass<T>public java.util.Set<WeldMethod<?,?>> getDeclaredWeldMethods()
WeldClass
getDeclaredWeldMethods in interface WeldClass<T>public <M> WeldMethod<M,?> getDeclaredWeldMethod(MethodSignature signature)
WeldClass
getDeclaredWeldMethod in interface WeldClass<T>M - the expected return typesignature - the name of the method
public <M> WeldMethod<M,?> getWeldMethod(MethodSignature signature)
WeldClass
getWeldMethod in interface WeldClass<T>M - the expected return typesignature - the name of the method
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getSimpleName()
getSimpleName in interface WeldClass<T>public boolean isStatic()
isStatic in interface WeldAnnotated<T,java.lang.Class<T>>WeldAnnotated.isStatic()public boolean isFinal()
isFinal in interface WeldAnnotated<T,java.lang.Class<T>>WeldAnnotated.isFinal()public boolean isPublic()
WeldAnnotated
isPublic in interface WeldAnnotated<T,java.lang.Class<T>>public java.lang.String getName()
getName in interface WeldAnnotated<T,java.lang.Class<T>>WeldAnnotated.getName()public WeldClass<?> getWeldSuperclass()
getWeldSuperclass in interface WeldClass<T>public boolean isEquivalent(java.lang.Class<?> clazz)
WeldClass
isEquivalent in interface WeldClass<T>clazz - The Java class
public boolean isPrivate()
isPrivate in interface WeldAnnotated<T,java.lang.Class<T>>public boolean isPackagePrivate()
isPackagePrivate in interface WeldAnnotated<T,java.lang.Class<T>>public java.lang.Package getPackage()
getPackage in interface WeldAnnotated<T,java.lang.Class<T>>public <U> WeldClass<? extends U> asWeldSubclass(WeldClass<U> clazz)
asWeldSubclass in interface WeldClass<T>public <S> S cast(java.lang.Object object)
cast in interface WeldClass<T>public java.util.Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> getConstructors()
getConstructors in interface javax.enterprise.inject.spi.AnnotatedType<T>public java.util.Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> getFields()
getFields in interface javax.enterprise.inject.spi.AnnotatedType<T>public java.util.Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getMethods()
getMethods in interface javax.enterprise.inject.spi.AnnotatedType<T>public java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
WeldClass
getDeclaredMetaAnnotations in interface WeldClass<T>public boolean isDiscovered()
isDiscovered in interface WeldClass<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||