public static String getSignature(Executable executable) { return getSignature( getSimpleName( executable ), executable.getParameterTypes() ); }
public ExecutableFormatter(Executable executable) { String name = ExecutableHelper.getSimpleName( executable ); if ( executable instanceof Method ) { name = executable.getDeclaringClass().getSimpleName() + "#" + name; } Class<?>[] parameterTypes = executable.getParameterTypes(); this.stringRepresentation = ExecutableHelper.getExecutableAsString( name, parameterTypes ); }