|
||||||||||
| 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 |
| Nested classes/interfaces inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
|---|
AbstractAnnotatedItem.AnnotationMap |
| 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 | |
|---|---|
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<java.lang.Object>> |
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<java.lang.Object>> |
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 delegate) |
T |
invoke(java.lang.Object instance,
Manager manager)
Invokes the method on an instance with current parameters from manager |
T |
invoke(java.lang.Object instance,
java.lang.Object... parameters)
Invokes the method on an instance with given parameters |
T |
invokeOnInstance(java.lang.Object instance,
Manager manager)
Invokes the method on the class of the passed instance, not the declaring class. |
T |
invokeWithSpecialValue(java.lang.Object instance,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
java.lang.Object specialVal,
Manager manager)
Invokes the observer method |
java.lang.String |
toDetailedString()
|
java.lang.String |
toString()
Gets a string representation of the method |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
|---|
getName, getValue, isFinal, isStatic |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
|---|
buildAnnotationMap, buildAnnotationMap, getAnnotation, getAnnotationMap, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getParameterValues, getParameterValues, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isProxyable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
getAnnotation, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getName, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isFinal, isProxyable, isStatic |
| Constructor Detail |
|---|
public AnnotatedMethodImpl(java.lang.reflect.Method method,
AnnotatedType<?> declaringClass)
method - The underlying methoddeclaringClass - The declaring class abstraction| Method Detail |
|---|
public java.lang.reflect.Method getAnnotatedMethod()
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<java.lang.Object>> getParameters()
getParameters in interface AnnotatedMethod<T>AnnotatedMethod.getParameters()public java.lang.Class<?>[] getParameterTypesAsArray()
AnnotatedMethod
getParameterTypesAsArray in interface AnnotatedMethod<T>public java.util.List<AnnotatedParameter<java.lang.Object>> 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 int hashCode()
hashCode in class AbstractAnnotatedItem<T,java.lang.reflect.Method>
public T invoke(java.lang.Object instance,
Manager manager)
invoke in interface AnnotatedMethod<T>instance - The instance to invoke onmanager - The Web Beans manager
org.jboss.webbeans.introspector.AnnotatedMethod#invoke(ManagerImpl,
Object)
public T invokeOnInstance(java.lang.Object instance,
Manager manager)
AnnotatedMethod
invokeOnInstance in interface AnnotatedMethod<T>instance - The instance to invokemanager - The Web Beans manager
public T invokeWithSpecialValue(java.lang.Object instance,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
java.lang.Object specialVal,
Manager manager)
AnnotatedMethod
invokeWithSpecialValue in interface AnnotatedMethod<T>instance - The instance to invokemanager - The Web Beans manager
public T invoke(java.lang.Object instance,
java.lang.Object... parameters)
invoke in interface AnnotatedMethod<T>instance - The instance to invoke onparameters - The parameters
AnnotatedMethod.invoke(Object,
Object...)public 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>public java.lang.String toDetailedString()
toDetailedString in class AbstractAnnotatedMember<T,java.lang.reflect.Method>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||