|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember<T,java.lang.reflect.Method>
org.jboss.webbeans.introspector.jlr.AnnotatedMethodImpl<T>
T - public class AnnotatedMethodImpl<T>
Represents an annotated method This class is immutable and therefore threadsafe
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
|---|
AbstractAnnotatedMember.AnnotatedParameterMap |
| 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 | |
|---|---|
protected |
AnnotatedMethodImpl(java.lang.reflect.Method method,
AnnotatedType<?> declaringClass)
Constructor Initializes the superclass with the built annotation map, sets the method and declaring class abstraction and detects the actual type arguments |
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object other)
Compares two annotated methods (delegates) |
|
java.lang.reflect.Type[] |
getActualTypeArguments()
Gets the actual type arguments |
|
java.lang.reflect.Method |
getAnnotatedMethod()
Gets the annotated method |
|
java.util.List<AnnotatedParameter<?>> |
getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the parameter abstractions with a given annotation type If the parameter abstractions are null, they are initialized first |
|
AnnotatedType<?> |
getDeclaringClass()
Gets the declaring class |
|
java.lang.reflect.Method |
getDelegate()
Gets the delegate |
|
java.util.List<AnnotatedParameter<?>> |
getParameters()
Gets the annotated parameters If the parameters are null, they are initialized first |
|
java.lang.Class<?>[] |
getParameterTypesAsArray()
Get the parameter types as an array |
|
java.lang.String |
getPropertyName()
Gets the name of the property |
|
java.lang.Class<T> |
getType()
Gets the type of the method |
|
int |
hashCode()
Gets the hash code of the actual type |
|
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 |
|
static
|
of(java.lang.reflect.Method method,
AnnotatedType<?> declaringClass)
|
|
java.lang.String |
toString()
Gets a string representation of the method |
|
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
|---|
getMember, getName, getValue, isFinal, isPublic, isStatic, isTransient |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
|---|
getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isProxyable |
| 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 |
|---|
getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic |
| Constructor Detail |
|---|
protected AnnotatedMethodImpl(java.lang.reflect.Method method,
AnnotatedType<?> declaringClass)
method - The underlying methoddeclaringClass - The declaring class abstraction| Method Detail |
|---|
public static <T> AnnotatedMethodImpl<T> of(java.lang.reflect.Method method,
AnnotatedType<?> declaringClass)
public java.lang.reflect.Method getAnnotatedMethod()
getAnnotatedMethod in interface AnnotatedMethod<T>public java.lang.reflect.Method getDelegate()
getDelegate in class AbstractAnnotatedItem<T,java.lang.reflect.Method>public java.lang.Class<T> getType()
getType in interface AnnotatedItem<T,java.lang.reflect.Method>public java.lang.reflect.Type[] getActualTypeArguments()
getActualTypeArguments in interface AnnotatedItem<T,java.lang.reflect.Method>AnnotatedItem.getActualTypeArguments()public java.util.List<AnnotatedParameter<?>> getParameters()
getParameters in interface AnnotatedMethod<T>AnnotatedMethod.getParameters()public java.lang.Class<?>[] getParameterTypesAsArray()
AnnotatedMethod
getParameterTypesAsArray in interface AnnotatedMethod<T>public java.util.List<AnnotatedParameter<?>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedParameters in interface AnnotatedMethod<T>annotationType - The annotation type to match
public boolean equals(java.lang.Object other)
equals in class AbstractAnnotatedItem<T,java.lang.reflect.Method>other - The other item
public boolean isEquivalent(java.lang.reflect.Method method)
AnnotatedMethod
isEquivalent in interface AnnotatedMethod<T>method - The JLR method
public int hashCode()
AbstractAnnotatedItem
hashCode in class AbstractAnnotatedItem<T,java.lang.reflect.Method>
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 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.InvocationTargetExceptionpublic java.lang.String getPropertyName()
getPropertyName in interface AnnotatedMethod<T>AnnotatedMethod.getPropertyName()public AnnotatedType<?> getDeclaringClass()
getDeclaringClass in interface AnnotatedMethod<T>AnnotatedMethod.getDeclaringClass()public java.lang.String toString()
toString in class AbstractAnnotatedMember<T,java.lang.reflect.Method>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||