Here you can find the source of getConstructorLabel(java.lang.reflect.Constructor> con)
public static String getConstructorLabel(java.lang.reflect.Constructor<?> con)
//package com.java2s; /******************************************************************************* * Copyright ? 2012, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://from w ww . j a va 2 s . co m * IBM Corporation - initial API and implementation * *******************************************************************************/ public class Main { public static String getConstructorLabel(java.lang.reflect.Constructor<?> con) { StringBuilder buffer = new StringBuilder(60); buffer.append(con.getDeclaringClass().getSimpleName()); buffer.append('('); Class<?>[] paraTypes = con.getParameterTypes(); for (int i = 0; i < paraTypes.length; i++) { buffer.append(paraTypes[i].getSimpleName()); if (i < paraTypes.length - 1) { buffer.append(','); } } buffer.append(')'); return buffer.toString(); } }