|
||||||||||
| 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 - public 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_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
protected |
WeldClassImpl(java.lang.Class<T> rawType,
java.lang.reflect.Type type,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
AnnotationStore annotationStore,
ClassTransformer classTransformer)
|
| Method Summary | ||
|---|---|---|
|
asWeldSubclass(WeldClass<U> clazz)
|
|
|
cast(java.lang.Object object)
|
|
java.lang.Class<? extends T> |
getAnnotatedClass()
Gets the implementing class |
|
java.util.Set<WeldConstructor<T>> |
getAnnotatedWeldConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets constructors with given annotation type |
|
java.util.Set<WeldField<?,?>> |
getAnnotatedWeldFields(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 |
|
java.util.Set<WeldMethod<?,?>> |
getAnnotatedWeldMethods(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 |
|
java.util.Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> |
getConstructors()
|
|
java.util.Set<WeldField<?,T>> |
getDeclaredAnnotatedWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this class only. |
|
java.util.Set<WeldMethod<?,T>> |
getDeclaredAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all methods annotated with annotationType |
|
java.util.Set<WeldField<?,?>> |
getDeclaredFields()
|
|
WeldConstructor<T> |
getDeclaredWeldConstructor(ConstructorSignature signature)
Get the constructor which matches the argument list provided |
|
|
getDeclaredWeldField(java.lang.String fieldName,
WeldClass<F> expectedType)
Get a field by name |
|
WeldMethod<?,?> |
getDeclaredWeldMethod(java.lang.reflect.Method method)
|
|
|
getDeclaredWeldMethod(MethodSignature signature,
WeldClass<M> expectedReturnType)
Get a method by name |
|
java.util.Set<WeldMethod<?,?>> |
getDeclaredWeldMethods()
Gets all fields on the type |
|
java.util.Set<WeldMethod<?,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<WeldField<?,?>> |
getMetaAnnotatedWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets abstracted fields with requested meta-annotation type present If the meta-annotations map is null, it is initializes. |
|
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()
|
|
|
getWBMethod(MethodSignature signature)
Get a method by name |
|
java.util.Set<WeldConstructor<T>> |
getWeldConstructors()
Gets the abstracted constructors of the class Initializes the constructors if they are null |
|
java.util.Set<WeldConstructor<?>> |
getWeldConstructorsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with constructors annotated with annotationType |
|
java.util.Set<WeldField<?,?>> |
getWeldFields()
Gets the abstracted fields of the class Initializes the fields if they are null |
|
WeldMethod<?,?> |
getWeldMethod(java.lang.reflect.Method methodDescriptor)
Find the annotated method for a given methodDescriptor |
|
java.util.Set<WeldMethod<?,?>> |
getWeldMethods()
Gets all fields on the type |
|
java.util.Set<WeldMethod<?,?>> |
getWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets all with parameters annotated with annotationType |
|
WeldClass<?> |
getWeldSuperclass()
Gets the superclass abstraction of the type |
|
boolean |
isAbstract()
|
|
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 |
isNonStaticMemberClass()
Determine if this is a non-static member class |
|
boolean |
isPackagePrivate()
|
|
boolean |
isPrivate()
|
|
boolean |
isPublic()
Indicates if this annotated item is public |
|
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)
|
|
java.lang.String |
toString()
Gets a string representation of the class |
|
| Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated |
|---|
equals, getActualTypeArguments, getAnnotation, getAnnotations, getAnnotationStore, getBaseType, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getQualifiers, getTypeClosure, hashCode, isAnnotationPresent, isDeclaredAnnotationPresent, isParameterizedType, 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, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getQualifiers, isDeclaredAnnotationPresent, 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,
AnnotationStore annotationStore,
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 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<F> expectedType)
WeldClass
getDeclaredWeldField in interface WeldClass<T>F - the expected type of the fieldfieldName - the field nameexpectedType - the expected type of the field
public java.util.Set<WeldField<?,T>> getDeclaredAnnotatedWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getDeclaredAnnotatedWeldFields in interface WeldClass<T>annotationType - The annotation to match
public java.util.Set<WeldConstructor<T>> getWeldConstructors()
getWeldConstructors in interface WeldClass<T>public WeldConstructor<T> getDeclaredWeldConstructor(ConstructorSignature signature)
WeldClass
getDeclaredWeldConstructor in interface WeldClass<T>public java.util.Set<WeldField<?,?>> getMetaAnnotatedWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
getMetaAnnotatedWeldFields in interface WeldClass<T>metaAnnotationType - The meta-annotation type to match
public java.util.Set<WeldField<?,?>> getAnnotatedWeldFields(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedWeldFields in interface WeldClass<T>annotationType - The annotation type to match
public boolean isNonStaticMemberClass()
WeldClass
isNonStaticMemberClass in interface WeldClass<T>public boolean isAbstract()
isAbstract in interface WeldClass<T>public boolean isEnum()
isEnum in interface WeldClass<T>public java.util.Set<WeldMethod<?,?>> getAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedWeldMethods in interface WeldClass<T>annotationType - The annotation type to match
WeldClass.getAnnotatedWeldMethods(Class)public java.util.Set<WeldMethod<?,T>> getDeclaredAnnotatedWeldMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getDeclaredAnnotatedWeldMethods in interface WeldClass<T>annotationType - The annotation to match
public java.util.Set<WeldConstructor<T>> getAnnotatedWeldConstructors(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedWeldConstructors in interface WeldClass<T>annotationType - The annotation type to match
WeldClass.getAnnotatedWeldConstructors(Class)public WeldConstructor<T> getNoArgsWeldConstructor()
WeldClass
getNoArgsWeldConstructor in interface WeldClass<T>public java.util.Set<WeldMethod<?,?>> getWeldMethodsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getWeldMethodsWithAnnotatedParameters in interface WeldClass<T>annotationType - The annotation to match
public java.util.Set<WeldConstructor<?>> getWeldConstructorsWithAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldClass
getWeldConstructorsWithAnnotatedParameters in interface WeldClass<T>annotationType - The annotation to match
public java.util.Set<WeldMethod<?,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<M> expectedReturnType)
WeldClass
getDeclaredWeldMethod in interface WeldClass<T>M - the expected return typesignature - the name of the methodexpectedReturnType - the expected return type
public <M> WeldMethod<M,?> getWBMethod(MethodSignature signature)
WeldClass
getWBMethod in interface WeldClass<T>M - the expected return typesignature - the name of the method
public java.lang.String toString()
toString in class AbstractWeldAnnotated<T,java.lang.Class<T>>public 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||