public String[] getCommands() throws IOException {

		List<String> list = new ArrayList<>();

		list.add(getJadPath());

		if (shouldDecompileDeadCode) {
			list.add("-dead");
		}

		if (shouldOutputFieldsBeforeMethods) {
			list.add("-ff");
		}

		if (!shouldInsertNewLineBeforeOpeningBrace) {
			list.add("-nonlb");
		}

		if (shouldOverwriteOutputFiles) {
			list.add("-o");
		}

		if (shouldRestoreDirectoryStructure) {
			list.add("-r");
		}

		list.add("-radix" + radix.toString());

		if (outputFileExtension != null) {
			list.add("-s" + outputFileExtension);
		}

		if (shouldOutputSpaceBetweenKeywords) {
			list.add("-space");
		}

		if (shouldUseTabsForIndentation) {
			list.add("-t");
		}

		if (verbose) {
			list.add("-v");
		}

		if (file.isDirectory()) {
			list.add(file.getAbsolutePath() + "/*.class");
		}
		else {
			list.add(file.getAbsolutePath());
		}

		return list.toArray(new String[list.size()]);
	}
Wrapper class for JAD, a JAva Decompiler.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/jad/JadProcessWrapper.java