private static void getName(Class<?> paramType, StringBuilder buffer){ if(paramType.isArray()){ getName(paramType.getComponentType(), buffer); buffer.append("[]"); }else{ buffer.append(paramType.getName()); } }
private static void getName(Class<?> paramType, StringBuilder buffer){ if(paramType.isArray()){ getName(paramType.getComponentType(), buffer); buffer.append("[]"); }else{ buffer.append(paramType.getName()); } }
private static void getName(Class<?> paramType, StringBuilder buffer){ if(paramType.isArray()){ getName(paramType.getComponentType(), buffer); buffer.append("[]"); }else{ buffer.append(paramType.getName()); } }
public MethodSpec(String mthdInterface, Method method) { checkMethodInterface(mthdInterface); methodName = method.getName(); methodInterface = emptyNullCheck(mthdInterface); Class[] paramTypes = method.getParameterTypes(); if (paramTypes.length == 0) { methodParams = ""; } else { StringBuilder buffer = new StringBuilder(paramTypes[0].getName()); for (int i = 1; i < paramTypes.length; i++) { buffer.append(","); getName(paramTypes[i], buffer); } methodParams = buffer.toString(); } initActions(); }
public MethodSpec(String mthdInterface, Method method) { checkMethodInterface(mthdInterface); methodName = method.getName(); methodInterface = emptyNullCheck(mthdInterface); Class[] paramTypes = method.getParameterTypes(); if (paramTypes.length == 0) { methodParams = ""; } else { StringBuilder buffer = new StringBuilder(paramTypes[0].getName()); for (int i = 1; i < paramTypes.length; i++) { buffer.append(","); getName(paramTypes[i], buffer); } methodParams = buffer.toString(); } initActions(); }
public MethodSpec(String mthdInterface, Method method) { checkMethodInterface(mthdInterface); methodName = method.getName(); methodInterface = emptyNullCheck(mthdInterface); Class[] paramTypes = method.getParameterTypes(); if (paramTypes.length == 0) { methodParams = ""; } else { StringBuilder buffer = new StringBuilder(paramTypes[0].getName()); for (int i = 1; i < paramTypes.length; i++) { buffer.append(","); getName(paramTypes[i], buffer); } methodParams = buffer.toString(); } initActions(); }