|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotatedMethod<T>
AnnotatedType provides a uniform access to the annotations on an annotated class defined either in Java or XML
Field Summary | |
---|---|
static java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
MAPPED_PARAMETER_ANNOTATIONS
|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Method Summary | |
---|---|
java.lang.reflect.Method |
getAnnotatedMethod()
|
java.util.List<AnnotatedParameter<?>> |
getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets the list of annotated parameters for a given annotation |
AnnotatedType<?> |
getDeclaringClass()
Gets the declaring class |
java.util.List<? extends AnnotatedParameter<?>> |
getParameters()
Gets the abstracted parameters of the method |
java.lang.Class<?>[] |
getParameterTypesAsArray()
Get the parameter types as an array |
java.lang.String |
getPropertyName()
Gets the property name |
MethodSignature |
getSignature()
|
T |
invoke(java.lang.Object instance,
java.lang.Object... parameters)
Invokes the method |
T |
invokeOnInstance(java.lang.Object instance,
java.lang.Object... parameters)
Invokes the method on the class of the passed instance, not the declaring class. |
boolean |
isEquivalent(java.lang.reflect.Method method)
Checks if a this is equivalent to a JLR method |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember |
---|
getMember |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic |
Field Detail |
---|
static final java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> MAPPED_PARAMETER_ANNOTATIONS
Method Detail |
---|
java.util.List<? extends AnnotatedParameter<?>> getParameters()
java.util.List<AnnotatedParameter<?>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
metaAnnotationType
- The annotation to match
java.lang.Class<?>[] getParameterTypesAsArray()
T invoke(java.lang.Object instance, java.lang.Object... parameters) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
instance
- The instance to invokeparameters
- The method parameters
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
T invokeOnInstance(java.lang.Object instance, java.lang.Object... parameters) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
instance
- The instance to invokemanager
- The Web Beans manager
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
AnnotatedType<?> getDeclaringClass()
getDeclaringClass
in interface AnnotatedMember<T,java.lang.reflect.Method>
java.lang.String getPropertyName()
boolean isEquivalent(java.lang.reflect.Method method)
method
- The JLR method
java.lang.reflect.Method getAnnotatedMethod()
MethodSignature getSignature()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |