public abstract class ForwardingWeldClass<T> extends ForwardingWeldAnnotated<T,Class<T>> implements EnhancedAnnotatedType<T>
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS| Constructor and Description |
|---|
ForwardingWeldClass() |
| Modifier and Type | Method and Description |
|---|---|
<U> EnhancedAnnotatedType<? extends U> |
asEnhancedSubclass(EnhancedAnnotatedType<U> clazz) |
<S> S |
cast(Object object) |
protected abstract EnhancedAnnotatedType<T> |
delegate() |
Set<AnnotatedConstructor<T>> |
getConstructors()
Get the constructors of the type.
|
EnhancedAnnotatedConstructor<T> |
getDeclaredEnhancedConstructor(ConstructorSignature signature)
Get the constructor which matches the argument list provided
|
<F> EnhancedAnnotatedField<F,?> |
getDeclaredEnhancedField(String fieldName)
Get a field by name
|
Collection<EnhancedAnnotatedField<?,? super T>> |
getDeclaredEnhancedFields()
Gets all fields declared on this class only.
|
Collection<EnhancedAnnotatedField<?,? super T>> |
getDeclaredEnhancedFields(Class<? extends Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this
class only.
|
EnhancedAnnotatedMethod<?,?> |
getDeclaredEnhancedMethod(Method method)
Deprecated.
|
<M> EnhancedAnnotatedMethod<M,?> |
getDeclaredEnhancedMethod(MethodSignature signature)
Get a method by name
|
<M> EnhancedAnnotatedMethod<M,?> |
getDeclaredEnhancedMethod(MethodSignature signature,
EnhancedAnnotatedType<M> expectedReturnType) |
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getDeclaredEnhancedMethods()
Gets all methods on the type
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getDeclaredEnhancedMethods(Class<? extends Annotation> annotationType)
Gets all methods annotated with annotationType
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getDeclaredEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
Gets declared with parameters annotated with annotationType
|
Collection<Annotation> |
getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
Gets all annotations which are declared on this annotated item with the
given meta annotation type
|
Collection<EnhancedAnnotatedConstructor<T>> |
getEnhancedConstructors()
Gets all constructors
|
Collection<EnhancedAnnotatedConstructor<T>> |
getEnhancedConstructors(Class<? extends Annotation> annotationType)
Gets all constructors which are annotated with annotationType
|
Collection<EnhancedAnnotatedField<?,? super T>> |
getEnhancedFields()
Gets all fields on the type
|
Collection<EnhancedAnnotatedField<?,?>> |
getEnhancedFields(Class<? extends Annotation> annotationType)
Gets all fields which are annotated with the given annotation type on this
class and all super classes
|
EnhancedAnnotatedMethod<?,?> |
getEnhancedMethod(Method method)
Deprecated.
|
<M> EnhancedAnnotatedMethod<M,?> |
getEnhancedMethod(MethodSignature signature)
Get a method by name
|
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getEnhancedMethods()
Gets all methods on the type including those declared on a superclass of
EnhancedAnnotated.getJavaClass(). |
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getEnhancedMethods(Class<? extends Annotation> annotationType)
Gets all methods annotated with annotationType including those declared on a superclass of
EnhancedAnnotated.getJavaClass(). |
Collection<EnhancedAnnotatedMethod<?,? super T>> |
getEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
Gets all methods with parameters annotated with annotationType including those declared on a superclass of
EnhancedAnnotated.getJavaClass(). |
EnhancedAnnotatedType<? super T> |
getEnhancedSuperclass()
Gets the superclass.
|
Set<AnnotatedField<? super T>> |
getFields()
Get the fields of the type.
|
Set<AnnotatedMethod<? super T>> |
getMethods()
Get the methods of the type.
|
EnhancedAnnotatedConstructor<T> |
getNoArgsEnhancedConstructor()
Gets the no-args constructor
|
String |
getSimpleName() |
boolean |
isAbstract() |
boolean |
isAnonymousClass() |
boolean |
isDiscovered() |
boolean |
isEnum() |
boolean |
isEquivalent(Class<?> clazz)
Check if this is equivalent to a java class
|
boolean |
isLocalClass() |
boolean |
isMemberClass() |
boolean |
isParameterizedType() |
boolean |
isSerializable() |
SlimAnnotatedType<T> |
slim()
Returns a lightweight implementation of
Annotated with minimal memory footprint. |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStaticequals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStaticgetJavaClassgetAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentprotected abstract EnhancedAnnotatedType<T> delegate()
delegate in class ForwardingWeldAnnotated<T,Class<T>>public Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethods()
EnhancedAnnotatedTypegetDeclaredEnhancedMethods in interface EnhancedAnnotatedType<T>public <M> EnhancedAnnotatedMethod<M,?> getDeclaredEnhancedMethod(MethodSignature signature)
EnhancedAnnotatedTypegetDeclaredEnhancedMethod in interface EnhancedAnnotatedType<T>M - the expected return typesignature - the name of the methodpublic Set<AnnotatedConstructor<T>> getConstructors()
AnnotatedTypeGet the constructors of the type. If an empty set is returned, a default constructor with no parameters will be assumed.
getConstructors in interface AnnotatedType<T>public Set<AnnotatedMethod<? super T>> getMethods()
AnnotatedTypeGet the methods of the type.
getMethods in interface AnnotatedType<T>public Set<AnnotatedField<? super T>> getFields()
AnnotatedTypeGet the fields of the type.
getFields in interface AnnotatedType<T>public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypegetEnhancedConstructors in interface EnhancedAnnotatedType<T>annotationType - The annotation type to matchpublic Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors()
EnhancedAnnotatedTypegetEnhancedConstructors in interface EnhancedAnnotatedType<T>public Collection<EnhancedAnnotatedField<?,?>> getEnhancedFields(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypegetEnhancedFields in interface EnhancedAnnotatedType<T>annotationType - The annotation to matchpublic Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethods(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypeEnhancedAnnotated.getJavaClass(). Overridden methods are not returned.getEnhancedMethods in interface EnhancedAnnotatedType<T>annotationType - The annotation to matchpublic EnhancedAnnotatedConstructor<T> getNoArgsEnhancedConstructor()
EnhancedAnnotatedTypegetNoArgsEnhancedConstructor in interface EnhancedAnnotatedType<T>public Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethods()
EnhancedAnnotatedTypeEnhancedAnnotated.getJavaClass(). Overridden methods are not returned.getEnhancedMethods in interface EnhancedAnnotatedType<T>public Collection<EnhancedAnnotatedField<?,? super T>> getDeclaredEnhancedFields(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypegetDeclaredEnhancedFields in interface EnhancedAnnotatedType<T>annotationType - The annotation to matchpublic Collection<EnhancedAnnotatedField<?,? super T>> getDeclaredEnhancedFields()
EnhancedAnnotatedTypegetDeclaredEnhancedFields in interface EnhancedAnnotatedType<T>public Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethods(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypegetDeclaredEnhancedMethods in interface EnhancedAnnotatedType<T>annotationType - The annotation to matchpublic Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypegetDeclaredEnhancedMethodsWithAnnotatedParameters in interface EnhancedAnnotatedType<T>annotationType - The annotation to matchpublic Collection<EnhancedAnnotatedField<?,? super T>> getEnhancedFields()
EnhancedAnnotatedTypegetEnhancedFields in interface EnhancedAnnotatedType<T>@Deprecated public EnhancedAnnotatedMethod<?,?> getEnhancedMethod(Method method)
EnhancedAnnotatedTypegetEnhancedMethod in interface EnhancedAnnotatedType<T>public <M> EnhancedAnnotatedMethod<M,?> getEnhancedMethod(MethodSignature signature)
EnhancedAnnotatedTypegetEnhancedMethod in interface EnhancedAnnotatedType<T>M - the expected return typesignature - the name of the methodpublic EnhancedAnnotatedType<? super T> getEnhancedSuperclass()
EnhancedAnnotatedTypegetEnhancedSuperclass in interface EnhancedAnnotatedType<T>public boolean isLocalClass()
isLocalClass in interface EnhancedAnnotatedType<T>public boolean isMemberClass()
isMemberClass in interface EnhancedAnnotatedType<T>public boolean isAnonymousClass()
isAnonymousClass in interface EnhancedAnnotatedType<T>public boolean isParameterizedType()
isParameterizedType in interface EnhancedAnnotated<T,Class<T>>isParameterizedType in interface EnhancedAnnotatedType<T>isParameterizedType in class ForwardingWeldAnnotated<T,Class<T>>public boolean isAbstract()
isAbstract in interface EnhancedAnnotatedType<T>public boolean isEnum()
isEnum in interface EnhancedAnnotatedType<T>public boolean isSerializable()
isSerializable in interface EnhancedAnnotatedType<T>@Deprecated public EnhancedAnnotatedMethod<?,?> getDeclaredEnhancedMethod(Method method)
getDeclaredEnhancedMethod in interface EnhancedAnnotatedType<T>public <F> EnhancedAnnotatedField<F,?> getDeclaredEnhancedField(String fieldName)
EnhancedAnnotatedTypegetDeclaredEnhancedField in interface EnhancedAnnotatedType<T>F - the expected type of the fieldfieldName - the field namepublic <M> EnhancedAnnotatedMethod<M,?> getDeclaredEnhancedMethod(MethodSignature signature, EnhancedAnnotatedType<M> expectedReturnType)
public EnhancedAnnotatedConstructor<T> getDeclaredEnhancedConstructor(ConstructorSignature signature)
EnhancedAnnotatedTypegetDeclaredEnhancedConstructor in interface EnhancedAnnotatedType<T>public <U> EnhancedAnnotatedType<? extends U> asEnhancedSubclass(EnhancedAnnotatedType<U> clazz)
asEnhancedSubclass in interface EnhancedAnnotatedType<T>public <S> S cast(Object object)
cast in interface EnhancedAnnotatedType<T>public boolean isEquivalent(Class<?> clazz)
EnhancedAnnotatedTypeisEquivalent in interface EnhancedAnnotatedType<T>clazz - The Java classpublic String getSimpleName()
getSimpleName in interface EnhancedAnnotatedType<T>public Collection<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
EnhancedAnnotatedTypegetDeclaredMetaAnnotations in interface EnhancedAnnotatedType<T>public boolean isDiscovered()
isDiscovered in interface EnhancedAnnotatedType<T>public SlimAnnotatedType<T> slim()
EnhancedAnnotatedAnnotated with minimal memory footprint.slim in interface EnhancedAnnotated<T,Class<T>>slim in interface EnhancedAnnotatedType<T>slim in class ForwardingWeldAnnotated<T,Class<T>>Annotatedpublic Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
EnhancedAnnotatedTypeEnhancedAnnotated.getJavaClass(). Overridden methods are not returned.getEnhancedMethodsWithAnnotatedParameters in interface EnhancedAnnotatedType<T>annotationType - The annotation to matchCopyright © 2014. All Rights Reserved.