public long parseLong(String val) {
		try {
			return Long.decode(val);
		}
		catch (NumberFormatException e) {
			throw new IllegalArgumentException("Invalid long: " + val);
		}
	}
Parses a long from a string.

@param val The string to parse.
@return The long that was parsed from the string.
@throws IllegalArgumentException if the parsed value is not a valid long.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java