package bluej.utility;
import threadchecker.OnThread;
import threadchecker.Tag;
| Java 1.4 version of JavaUtils
|
| @author Davin McCall
|
@OnThread(Tag.Any)
public class JavaUtils14
{
| Gets nicely formatted strings describing the parameter types.
|
public static String[] getParameterTypes(Class<?>[] params)
{
String[] parameterTypes = new String[params.length];
for (int j = 0; j < params.length; j++) {
String typeName = getTypeName(params[j]);
parameterTypes[j] = typeName;
}
return parameterTypes;
}
| Get a type name, with prefix stripped. For array types return the base
| type name plus the appropriate number of "[]" qualifiers.
|
*/
public static String getTypeName(Class<?> type)
{
return JavaNames.stripPrefix(JavaUtils.getFQTypeName(type));
}
}
top,
use,
map,
class JavaUtils14
. getParameterTypes
24 neLoCode
+ 5 LoComm