|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,S>
org.jboss.weld.introspector.jlr.AbstractWeldMember<T,X,S>
org.jboss.weld.introspector.jlr.AbstractWeldCallable<T,X,java.lang.reflect.Method>
org.jboss.weld.introspector.jlr.WeldMethodImpl<T,X>
T - public class WeldMethodImpl<T,X>
Represents an annotated method This class is immutable and therefore threadsafe
| Field Summary |
|---|
| Fields inherited from interface org.jboss.weld.introspector.WeldMethod |
|---|
MAPPED_PARAMETER_ANNOTATIONS |
| Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated |
|---|
MAPPED_METAANNOTATIONS |
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object other)
Compares two AbstractAnnotatedItems |
|
java.lang.reflect.Method |
getAnnotatedMethod()
|
|
java.util.List<WeldParameter<?,X>> |
getAnnotatedWBParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets the list of annotated parameters for a given annotation |
|
java.lang.reflect.Method |
getDelegate()
|
|
java.util.List<javax.enterprise.inject.spi.AnnotatedParameter<X>> |
getParameters()
|
|
java.lang.Class<?>[] |
getParameterTypesAsArray()
Get the parameter types as an array |
|
java.lang.String |
getPropertyName()
Gets the property name |
|
MethodSignature |
getSignature()
|
|
java.util.List<WeldParameter<?,X>> |
getWBParameters()
Gets the abstracted parameters 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(javax.enterprise.inject.spi.AnnotatedMethod<T> method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer)
|
|
static
|
of(java.lang.reflect.Method method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer)
|
|
java.lang.String |
toString()
Gets a string representation of the member |
|
| Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldMember |
|---|
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransient |
| Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated |
|---|
getActualTypeArguments, getAnnotation, getAnnotations, getAnnotationStore, getBaseType, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getQualifiers, getTypeClosure, isAnnotationPresent, isDeclaredAnnotationPresent, isParameterizedType, isProxyable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.weld.introspector.WeldMember |
|---|
getDeclaringType, getJavaMember |
| Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
|---|
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, getQualifiers, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, isPublic, isStatic |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMethod |
|---|
getJavaMember |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember |
|---|
isStatic |
| Methods inherited from interface javax.enterprise.inject.spi.Annotated |
|---|
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
| Method Detail |
|---|
public static <T,X> WeldMethodImpl<T,X> of(java.lang.reflect.Method method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer)
public static <T,X> WeldMethodImpl<T,X> of(javax.enterprise.inject.spi.AnnotatedMethod<T> method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer)
public java.lang.reflect.Method getAnnotatedMethod()
getAnnotatedMethod in interface WeldMethod<T,X>public java.lang.reflect.Method getDelegate()
getDelegate in class AbstractWeldAnnotated<T,java.lang.reflect.Method>public java.util.List<WeldParameter<?,X>> getWBParameters()
WeldCallable
getWBParameters in interface WeldCallable<T,X,java.lang.reflect.Method>public java.lang.Class<?>[] getParameterTypesAsArray()
WeldMethod
getParameterTypesAsArray in interface WeldMethod<T,X>public java.util.List<WeldParameter<?,X>> getAnnotatedWBParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
WeldCallable
getAnnotatedWBParameters in interface WeldCallable<T,X,java.lang.reflect.Method>annotationType - The annotation to match
public boolean equals(java.lang.Object other)
AbstractWeldAnnotated
equals in class AbstractWeldAnnotated<T,java.lang.reflect.Method>other - The other item
public boolean isEquivalent(java.lang.reflect.Method method)
WeldMethod
isEquivalent in interface WeldMethod<T,X>method - The JLR method
public int hashCode()
AbstractWeldAnnotated
hashCode in class AbstractWeldAnnotated<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
WeldMethod
invokeOnInstance in interface WeldMethod<T,X>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
WeldMethod
invoke in interface WeldMethod<T,X>instance - The instance to invokeparameters - The method parameters
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetExceptionpublic java.lang.String getPropertyName()
WeldMethod
getPropertyName in interface WeldMethod<T,X>public java.lang.String toString()
AbstractWeldMember
toString in class AbstractWeldMember<T,X,java.lang.reflect.Method>public MethodSignature getSignature()
getSignature in interface WeldMethod<T,X>public java.util.List<javax.enterprise.inject.spi.AnnotatedParameter<X>> getParameters()
getParameters in interface javax.enterprise.inject.spi.AnnotatedCallable<X>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||