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<javax.enterprise.inject.spi.AnnotatedConstructor<T>> |
getConstructors() |
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<javax.enterprise.inject.spi.AnnotatedField<? super T>> |
getFields() |
Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> |
getMethods() |
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, isStatic
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStatic
protected abstract EnhancedAnnotatedType<T> delegate()
delegate
in class ForwardingWeldAnnotated<T,Class<T>>
public Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethods()
EnhancedAnnotatedType
getDeclaredEnhancedMethods
in interface EnhancedAnnotatedType<T>
public <M> EnhancedAnnotatedMethod<M,?> getDeclaredEnhancedMethod(MethodSignature signature)
EnhancedAnnotatedType
getDeclaredEnhancedMethod
in interface EnhancedAnnotatedType<T>
M
- the expected return typesignature
- the name of the methodpublic Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> getConstructors()
getConstructors
in interface javax.enterprise.inject.spi.AnnotatedType<T>
public Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getMethods()
getMethods
in interface javax.enterprise.inject.spi.AnnotatedType<T>
public Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> getFields()
getFields
in interface javax.enterprise.inject.spi.AnnotatedType<T>
public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
getEnhancedConstructors
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation type to matchpublic Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors()
EnhancedAnnotatedType
getEnhancedConstructors
in interface EnhancedAnnotatedType<T>
public Collection<EnhancedAnnotatedField<?,?>> getEnhancedFields(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
getEnhancedFields
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation to matchpublic Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethods(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
EnhancedAnnotated.getJavaClass()
. Overridden methods are not returned.getEnhancedMethods
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation to matchpublic EnhancedAnnotatedConstructor<T> getNoArgsEnhancedConstructor()
EnhancedAnnotatedType
getNoArgsEnhancedConstructor
in interface EnhancedAnnotatedType<T>
public Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethods()
EnhancedAnnotatedType
EnhancedAnnotated.getJavaClass()
. Overridden methods are not returned.getEnhancedMethods
in interface EnhancedAnnotatedType<T>
public Collection<EnhancedAnnotatedField<?,? super T>> getDeclaredEnhancedFields(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
getDeclaredEnhancedFields
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation to matchpublic Collection<EnhancedAnnotatedField<?,? super T>> getDeclaredEnhancedFields()
EnhancedAnnotatedType
getDeclaredEnhancedFields
in interface EnhancedAnnotatedType<T>
public Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethods(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
getDeclaredEnhancedMethods
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation to matchpublic Collection<EnhancedAnnotatedMethod<?,? super T>> getDeclaredEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
getDeclaredEnhancedMethodsWithAnnotatedParameters
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation to matchpublic Collection<EnhancedAnnotatedField<?,? super T>> getEnhancedFields()
EnhancedAnnotatedType
getEnhancedFields
in interface EnhancedAnnotatedType<T>
@Deprecated public EnhancedAnnotatedMethod<?,?> getEnhancedMethod(Method method)
EnhancedAnnotatedType
getEnhancedMethod
in interface EnhancedAnnotatedType<T>
public <M> EnhancedAnnotatedMethod<M,?> getEnhancedMethod(MethodSignature signature)
EnhancedAnnotatedType
getEnhancedMethod
in interface EnhancedAnnotatedType<T>
M
- the expected return typesignature
- the name of the methodpublic EnhancedAnnotatedType<? super T> getEnhancedSuperclass()
EnhancedAnnotatedType
getEnhancedSuperclass
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)
EnhancedAnnotatedType
getDeclaredEnhancedField
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)
EnhancedAnnotatedType
getDeclaredEnhancedConstructor
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)
EnhancedAnnotatedType
isEquivalent
in interface EnhancedAnnotatedType<T>
clazz
- The Java classpublic String getSimpleName()
getSimpleName
in interface EnhancedAnnotatedType<T>
public Collection<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType)
EnhancedAnnotatedType
getDeclaredMetaAnnotations
in interface EnhancedAnnotatedType<T>
public boolean isDiscovered()
isDiscovered
in interface EnhancedAnnotatedType<T>
public SlimAnnotatedType<T> slim()
EnhancedAnnotated
Annotated
with minimal memory footprint.slim
in interface EnhancedAnnotated<T,Class<T>>
slim
in interface EnhancedAnnotatedType<T>
slim
in class ForwardingWeldAnnotated<T,Class<T>>
Annotated
public Collection<EnhancedAnnotatedMethod<?,? super T>> getEnhancedMethodsWithAnnotatedParameters(Class<? extends Annotation> annotationType)
EnhancedAnnotatedType
EnhancedAnnotated.getJavaClass()
. Overridden methods are not returned.getEnhancedMethodsWithAnnotatedParameters
in interface EnhancedAnnotatedType<T>
annotationType
- The annotation to matchCopyright © 2016. All rights reserved.