|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,S>
org.jboss.webbeans.introspector.ForwardingAnnotatedMember<T,java.lang.reflect.Method>
org.jboss.webbeans.introspector.ForwardingAnnotatedMethod<T>
public abstract class ForwardingAnnotatedMethod<T>
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedMethod |
---|
MAPPED_PARAMETER_ANNOTATIONS |
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Constructor Summary | |
---|---|
ForwardingAnnotatedMethod()
|
Method Summary | |
---|---|
protected abstract AnnotatedMethod<T> |
delegate()
Gets the annotated item |
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 class org.jboss.webbeans.introspector.ForwardingAnnotatedMember |
---|
getMember |
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem |
---|
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
---|
public ForwardingAnnotatedMethod()
Method Detail |
---|
protected abstract AnnotatedMethod<T> delegate()
ForwardingAnnotatedItem
delegate
in class ForwardingAnnotatedMember<T,java.lang.reflect.Method>
public java.lang.reflect.Method getAnnotatedMethod()
getAnnotatedMethod
in interface AnnotatedMethod<T>
public java.util.List<AnnotatedParameter<?>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
AnnotatedMethod
getAnnotatedParameters
in interface AnnotatedMethod<T>
metaAnnotationType
- The annotation to match
public AnnotatedType<?> getDeclaringClass()
AnnotatedMethod
getDeclaringClass
in interface AnnotatedMember<T,java.lang.reflect.Method>
getDeclaringClass
in interface AnnotatedMethod<T>
public java.lang.Class<?>[] getParameterTypesAsArray()
AnnotatedMethod
getParameterTypesAsArray
in interface AnnotatedMethod<T>
public java.util.List<? extends AnnotatedParameter<?>> getParameters()
AnnotatedMethod
getParameters
in interface AnnotatedMethod<T>
public java.lang.String getPropertyName()
AnnotatedMethod
getPropertyName
in interface AnnotatedMethod<T>
public T invoke(java.lang.Object instance, java.lang.Object... parameters) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
AnnotatedMethod
invoke
in interface AnnotatedMethod<T>
instance
- The instance to invokeparameters
- The method parameters
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public 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
AnnotatedMethod
invokeOnInstance
in interface AnnotatedMethod<T>
instance
- The instance to invoke
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
public boolean isEquivalent(java.lang.reflect.Method method)
AnnotatedMethod
isEquivalent
in interface AnnotatedMethod<T>
method
- The JLR method
public MethodSignature getSignature()
getSignature
in interface AnnotatedMethod<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |