Class BackedAnnotatedCallable<X,E extends Executable>
- java.lang.Object
-
- org.jboss.weld.annotated.slim.BaseAnnotated
-
- org.jboss.weld.annotated.slim.backed.BackedAnnotated
-
- org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember<X>
-
- org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable<X,E>
-
- All Implemented Interfaces:
Annotated,AnnotatedCallable<X>,AnnotatedMember<X>
- Direct Known Subclasses:
BackedAnnotatedConstructor,BackedAnnotatedMethod
public abstract class BackedAnnotatedCallable<X,E extends Executable> extends BackedAnnotatedMember<X> implements AnnotatedCallable<X>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember
BackedAnnotatedMember.BackedAnnotatedMemberSerializationProxy<X,A extends AnnotatedMember<? super X>>
-
-
Constructor Summary
Constructors Constructor Description BackedAnnotatedCallable(E executable, Type baseType, BackedAnnotatedType<X> declaringType, SharedObjectCache sharedObjectCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)protected AnnotatedElementgetAnnotatedElement()<T extends Annotation>
TgetAnnotation(Class<T> annotationType)Get program element annotation of a certain annotation type.EgetJavaMember()Get the underlyingMember.List<AnnotatedParameter<X>>getParameters()Get the parameters of the callable member.inthashCode()protected List<AnnotatedParameter<X>>initParameters(E member, SharedObjectCache sharedObjectCache)booleanisAnnotationPresent(Class<? extends Annotation> annotationType)Determine if the program element has an annotation of a certain annotation type.-
Methods inherited from class org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember
getDeclaringType, getReflectionCache, isStatic
-
Methods inherited from class org.jboss.weld.annotated.slim.backed.BackedAnnotated
getAnnotations, getTypeClosure, initTypeClosure
-
Methods inherited from class org.jboss.weld.annotated.slim.BaseAnnotated
getBaseType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotations, getAnnotations, getBaseType, getTypeClosure
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
getDeclaringType, isStatic
-
-
-
-
Constructor Detail
-
BackedAnnotatedCallable
public BackedAnnotatedCallable(E executable, Type baseType, BackedAnnotatedType<X> declaringType, SharedObjectCache sharedObjectCache)
-
-
Method Detail
-
initParameters
protected List<AnnotatedParameter<X>> initParameters(E member, SharedObjectCache sharedObjectCache)
-
getJavaMember
public E getJavaMember()
Description copied from interface:AnnotatedMemberGet the underlying
Member.- Specified by:
getJavaMemberin interfaceAnnotatedMember<X>- Returns:
- the
Member
-
getParameters
public List<AnnotatedParameter<X>> getParameters()
Description copied from interface:AnnotatedCallableGet the parameters of the callable member.
- Specified by:
getParametersin interfaceAnnotatedCallable<X>- Returns:
- the parameters
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Description copied from interface:AnnotatedGet program element annotation of a certain annotation type. The behavior of this method is intended to be the same behavior as
AnnotatedElement.getAnnotation(Class), where repeatable annotations are not supported.- Specified by:
getAnnotationin interfaceAnnotated- Type Parameters:
T- the type of the annotation- Parameters:
annotationType- the class of the annotation type- Returns:
- the first program element annotation of the given annotation type, or a null value
-
getAnnotatedElement
protected AnnotatedElement getAnnotatedElement()
- Specified by:
getAnnotatedElementin classBackedAnnotated
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Description copied from interface:AnnotatedDetermine if the program element has an annotation of a certain annotation type. The behavior of this method is similar to
AnnotatedElement.isAnnotationPresent(Class)for the underlying program element.- Specified by:
isAnnotationPresentin interfaceAnnotated- Parameters:
annotationType- the annotation type to check for- Returns:
- true if the program element has an annotation of the given annotation type, or false otherwise
-
-