/** * Get a method of the class. * Unlike {@link Class#getMethod(String, Class[])}, * this uses the methodcache. * @param clazz The class to search. * @param name The name of the method to search for. * @param types The parameter types. * @return The method (or null if not found). */ public static Method getMethod(Class clazz, String name, Class[] types) { Method meth = null; Method[] ms = getMethods(clazz, name); for(int i=0; i<ms.length; i++) { Class[] ptypes = ms[i].getParameterTypes(); boolean match = ptypes.length==types.length; for(int j=0; match && j<ptypes.length; j++) { match = ptypes[j].equals(types[j]); } if(match) { meth = ms[i]; break; } } return meth; }
Method[] methods = SReflect.getMethods(getClass(), name); Method method = null; if(methods.length>1)
Method[] ms = SReflect.getMethods(clazz, getText()); ArrayList ames = new ArrayList(); for(int i=0; i<ms.length; i++)
Method[] ms = SReflect.getMethods(object.getClass(), prefixes[i]+postfix);
Method[] ms = SReflect.getMethods(object.getClass(), prefixes[i]+postfix);
Object fut = SReflect.getMethods(cfclass, "loadModel")[0].invoke(cfac, new Object[]{model, null, null});
Object fut = SReflect.getMethods(cfclass, "loadModel")[0].invoke(cfac, new Object[]{model, null, null});
Class clazz = jtype.getClazz(); Method[] methods = SReflect.getMethods(clazz, name); Method method = null;
Method[] ms = SReflect.getMethods(targetclass, (String)iden); if(ms.length==0) ms = SReflect.getMethods(Object.class, (String)iden);
Method[] ms = SReflect.getMethods(targetclass, (String)iden); if(ms.length==0) ms = SReflect.getMethods(Object.class, (String)iden);
Method[] ms = SReflect.getMethods(targetclass, (String)iden); if(ms.length==0) ms = SReflect.getMethods(Object.class, (String)iden);
Method[] meths = SReflect.getMethods(proxy.getClass(), method); Object[] myargs = createArguments(meths[0]);
Method[] methods = SReflect.getMethods(clazz, name); Class[][] mparamtypes = new Class[methods.length][]; for(int j=0; j<methods.length; j++)
String methodname = (String)((Constant)exps.remove(0)).getValue(); clazz = SReflect.findClass0(clazzname, imports, tmodel.getClassLoader()); Method[] methods = SReflect.getMethods(clazz, methodname); Method method = null;
String methodname = (String)((Constant)exps.remove(0)).getValue(); clazz = SReflect.findClass0(clazzname, imports, tmodel.getClassLoader()); Method[] methods = SReflect.getMethods(clazz, methodname); Method method = null;
tmp = SReflect.getMethods(proxy.getClass(), method)[0];
Method[] methods = SReflect.getMethods(clazz, name); Class[][] mparamtypes = new Class[methods.length][]; for(int j=0; j<methods.length; j++)
tmp = SReflect.getMethods(proxy.getClass(), method)[0];
Method[] ms = SReflect.getMethods(stype, mn); if(ms.length>0)
Method[] ms = SReflect.getMethods(stype, mn); if(ms.length>0)