T
- public class WeldMethodImpl<T,X> extends AbstractWeldCallable<T,X,Method> implements WeldMethod<T,X>
MAPPED_PARAMETER_ANNOTATIONS
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Modifier and Type | Method and Description |
---|---|
Method |
getDelegate() |
List<javax.enterprise.inject.spi.AnnotatedParameter<X>> |
getParameters() |
Class<?>[] |
getParameterTypesAsArray()
Get the parameter types as an array
|
String |
getPropertyName()
Gets the property name
|
MethodSignature |
getSignature() |
List<WeldParameter<?,X>> |
getWeldParameters()
Gets the abstracted parameters of the method
|
List<WeldParameter<?,X>> |
getWeldParameters(Class<? extends Annotation> annotationType)
Gets the list of annotated parameters for a given annotation
|
T |
invoke(Object instance,
Object... parameters)
Invokes the method
|
T |
invokeOnInstance(Object instance,
Object... parameters)
Invokes the method on the class of the passed instance, not the declaring
class.
|
boolean |
isEquivalent(Method method)
Checks if a this is equivalent to a JLR method
|
boolean |
isGeneric() |
static <T,X> WeldMethodImpl<T,X> |
of(javax.enterprise.inject.spi.AnnotatedMethod<? super X> method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer) |
static <T,X> WeldMethodImpl<T,X> |
of(Method method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer) |
String |
toString()
Gets a string representation of the member
|
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransient
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDeclaringType
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
public static <T,X> WeldMethodImpl<T,X> of(Method method, WeldClass<X> declaringClass, ClassTransformer classTransformer)
public static <T,X> WeldMethodImpl<T,X> of(javax.enterprise.inject.spi.AnnotatedMethod<? super X> method, WeldClass<X> declaringClass, ClassTransformer classTransformer)
public Method getDelegate()
getDelegate
in class AbstractWeldAnnotated<T,Method>
public List<WeldParameter<?,X>> getWeldParameters()
WeldCallable
getWeldParameters
in interface WeldCallable<T,X,Method>
public Class<?>[] getParameterTypesAsArray()
WeldMethod
getParameterTypesAsArray
in interface WeldMethod<T,X>
public List<WeldParameter<?,X>> getWeldParameters(Class<? extends Annotation> annotationType)
WeldCallable
getWeldParameters
in interface WeldCallable<T,X,Method>
annotationType
- The annotation to matchpublic boolean isEquivalent(Method method)
WeldMethod
isEquivalent
in interface WeldMethod<T,X>
method
- The JLR methodpublic T invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
WeldMethod
invokeOnInstance
in interface WeldMethod<T,X>
instance
- The instance to invokeIllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public T invoke(Object instance, Object... parameters) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
WeldMethod
invoke
in interface WeldMethod<T,X>
instance
- The instance to invokeparameters
- The method parametersIllegalArgumentException
IllegalAccessException
InvocationTargetException
public String getPropertyName()
WeldMethod
getPropertyName
in interface WeldMethod<T,X>
public String toString()
AbstractWeldMember
toString
in class AbstractWeldMember<T,X,Method>
public MethodSignature getSignature()
getSignature
in interface WeldMethod<T,X>
public List<javax.enterprise.inject.spi.AnnotatedParameter<X>> getParameters()
getParameters
in interface javax.enterprise.inject.spi.AnnotatedCallable<X>
public boolean isGeneric()
isGeneric
in interface WeldAnnotated<T,Method>
Copyright © 2013 Seam Framework. All rights reserved.