1 16 17 package org.apache.axis.utils.cache; 18 19 import java.lang.reflect.Method ; 20 import java.util.Vector ; 21 22 27 public class JavaMethod { 28 29 private Method [] methods = null; 31 32 37 public JavaMethod(Class jc, String name) { 38 Method [] methods = jc.getMethods(); 39 Vector workinglist = new Vector (); 40 41 for (int i=0; i<methods.length; i++) { 44 if (methods[i].getName().equals(name)) { 45 workinglist.addElement(methods[i]); 46 } 47 } 48 49 if (workinglist.size() > 0) { 51 this.methods = new Method [workinglist.size()]; 52 workinglist.copyInto(this.methods); 53 } 54 } 55 56 61 public Method [] getMethod() { 62 return methods; 63 } 64 }; 65 | Popular Tags |