1 22 package org.jboss.reflect.plugins.introspection; 23 24 import java.lang.reflect.Method ; 25 26 import org.jboss.reflect.plugins.MethodInfoImpl; 27 import org.jboss.reflect.spi.AnnotationValue; 28 import org.jboss.reflect.spi.ClassInfo; 29 import org.jboss.reflect.spi.ParameterInfo; 30 import org.jboss.reflect.spi.TypeInfo; 31 32 38 public class ReflectMethodInfoImpl extends MethodInfoImpl 39 { 40 41 private static final long serialVersionUID = -7215834088396065347L; 42 43 44 protected Method method; 45 46 49 public ReflectMethodInfoImpl() 50 { 51 } 52 53 65 public ReflectMethodInfoImpl(AnnotationValue[] annotations, String name, TypeInfo returnType, TypeInfo[] parameterTypes, AnnotationValue[][] parameterAnnotations, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring) 66 { 67 super(annotations, name, returnType, parameterTypes, parameterAnnotations, exceptionTypes, modifiers, declaring); 68 } 69 70 81 public ReflectMethodInfoImpl(AnnotationValue[] annotations, String name, TypeInfo returnType, ParameterInfo[] parameters, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring) 82 { 83 super(annotations, name, returnType, parameters, exceptionTypes, modifiers, declaring); 84 } 85 86 91 public void setMethod(Method method) 92 { 93 this.method = method; 94 } 95 96 101 public Method getMethod() 102 { 103 return method; 104 } 105 106 public Object invoke(Object target, Object [] args) throws Throwable 107 { 108 return ReflectionUtils.invoke(method, target, args); 109 } 110 } 111 | Popular Tags |