Lines Matching refs:param
201 static Object randomArg(Class<?> param) {
202 Object wrap = castToWrapperOrNull(nextArg(param), param);
212 if (param.isInterface()) {
213 for (Class<?> c : param.getClasses()) {
214 if (param.isAssignableFrom(c) && !c.isInterface())
215 { param = c; break; }
218 if (param.isInterface() || param.isAssignableFrom(String.class))
222 return param.newInstance();
233 static Object[] randomArgs(int nargs, Class<?> param) {
236 args[i] = randomArg(param);
241 static Object zeroArg(Class<?> param) {
242 Object x = castToWrapperOrNull(0L, param);
244 if (param.isInterface() || param.isAssignableFrom(String.class)) return "\"\"";
245 if (param == Object.class) return ANON_OBJ;
246 if (param.getComponentType() != null) return Array.newInstance(param.getComponentType(), 0);