|
||||||||||
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,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.WeldCallable |
---|
MAPPED_PARAMETER_ANNOTATIONS |
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated |
---|
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS |
Method Summary | ||
---|---|---|
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
|
of(javax.enterprise.inject.spi.AnnotatedMethod<? super X> method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer)
|
|
static
|
of(Method method,
WeldClass<X> declaringClass,
ClassTransformer classTransformer)
|
|
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 |
---|
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.weld.introspector.WeldMember |
---|
getDeclaringType |
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
---|
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, 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(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 match
public boolean isEquivalent(Method method)
WeldMethod
isEquivalent
in interface WeldMethod<T,X>
method
- The JLR method
public T invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
WeldMethod
invokeOnInstance
in interface WeldMethod<T,X>
instance
- The instance to invoke
IllegalArgumentException
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 parameters
IllegalArgumentException
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |