1 55 56 package org.jboss.axis.utils.cache; 57 58 import java.lang.reflect.Method ; 59 import java.util.Vector ; 60 61 66 public class JavaMethod 67 { 68 69 private Method [] methods = null; 71 72 78 public JavaMethod(Class jc, String name) 79 { 80 Method [] methods = jc.getMethods(); 81 Vector workinglist = new Vector (); 82 83 for (int i = 0; i < methods.length; i++) 86 { 87 if (methods[i].getName().equals(name)) 88 { 89 workinglist.addElement(methods[i]); 90 } 91 } 92 93 if (workinglist.size() > 0) 95 { 96 this.methods = new Method [workinglist.size()]; 97 workinglist.copyInto(this.methods); 98 } 99 } 100 101 107 public Method [] getMethod() 108 { 109 return methods; 110 } 111 } 112 113 ; 114 | Popular Tags |