private void setMethodSpec(String methodName,String mInterface, String[] methodParams) { if (methodName != null && methodName.indexOf(',') >= 0) throw new IllegalArgumentException("illegal methodName"); this.methodInterface = validateInterface(mInterface); if (this.methodInterface < -1) this.otherMethodInterface = mInterface; if (methodParams != null) { StringBuffer mParams = new StringBuffer(","); for (int i=0; i<methodParams.length; i++) { if (methodParams[i] == null || methodParams[i].indexOf(',') >= 0) throw new IllegalArgumentException("illegal methodParam"); if (i == 0) mParams.append(methodParams[i]); else mParams.append("," + methodParams[i]); } this.methodParams = mParams.toString(); } else this.methodParams = null; this.methodName = methodName; }
private void setMethodSpec(String methodName,String mInterface, String[] methodParams) { if (methodName != null && methodName.indexOf(',') >= 0) throw new IllegalArgumentException("illegal methodName"); this.methodInterface = validateInterface(mInterface); if (this.methodInterface < -1) this.otherMethodInterface = mInterface; if (methodParams != null) { StringBuffer mParams = new StringBuffer(","); for (int i=0; i<methodParams.length; i++) { if (methodParams[i] == null || methodParams[i].indexOf(',') >= 0) throw new IllegalArgumentException("illegal methodParam"); if (i == 0) mParams.append(methodParams[i]); else mParams.append("," + methodParams[i]); } this.methodParams = mParams.toString(); } else this.methodParams = null; this.methodName = methodName; }
private void setMethodSpec(String mInterface, Method method) { this.methodInterface = validateInterface(mInterface); if (this.methodInterface < -1) this.otherMethodInterface = mInterface; this.methodName = method.getName(); Class[] params = method.getParameterTypes(); StringBuffer mParams = new StringBuffer(","); for (int i=0; i<params.length; i++) { String pname = params[i].getName(); Class compType = params[i].getComponentType(); // Canonicalize parameter if it is an Array. if (compType != null) { String brackets = "[]"; while (compType.getComponentType() != null) { compType = compType.getComponentType(); brackets = brackets + "[]"; } pname = compType.getName() + brackets; } if (i == 0) mParams.append(pname); else mParams.append("," + pname); } this.methodParams = mParams.toString(); }
private void setMethodSpec(String mInterface, Method method) { this.methodInterface = validateInterface(mInterface); if (this.methodInterface < -1) this.otherMethodInterface = mInterface; this.methodName = method.getName(); Class[] params = method.getParameterTypes(); StringBuffer mParams = new StringBuffer(","); for (int i=0; i<params.length; i++) { String pname = params[i].getName(); Class compType = params[i].getComponentType(); // Canonicalize parameter if it is an Array. if (compType != null) { String brackets = "[]"; while (compType.getComponentType() != null) { compType = compType.getComponentType(); brackets = brackets + "[]"; } pname = compType.getName() + brackets; } if (i == 0) mParams.append(pname); else mParams.append("," + pname); } this.methodParams = mParams.toString(); }
this.methodInterface = validateInterface(mInterface);
this.methodInterface = validateInterface(mInterface);