private String getNewIntervalString(Interval<?> interval, String name, boolean empty, boolean entire) {
		String declaration = "";

		String inputType = currentTypeTranslation_.get(interval.getTypeClass())[0];

		if (empty) {
			if (currentEmptyIntervalTranslation_.length == 2) {
				declaration += currentEmptyIntervalTranslation_[1];
				declaration = declaration.replace(PARAM_TYPE, currentEmptyIntervalTranslation_[0]);
				declaration = declaration.replace(INTERVAL_TYPE, inputType);
				declaration = declaration.replace(INTERVAL_NAME, name) + "\n";
			} else {
				declaration += this.lineComment_ + " ERROR: empty intervals are not implemented!\n";
			}
			return declaration;
		} else if (entire) {
			if (currentEntireIntervalTranslation_.length == 2) {
				declaration += currentEntireIntervalTranslation_[1];
				declaration = declaration.replace(PARAM_TYPE, currentEntireIntervalTranslation_[0]);
				declaration = declaration.replace(INTERVAL_TYPE, inputType);
				declaration = declaration.replace(INTERVAL_NAME, name) + "\n";
			} else {
				declaration += this.lineComment_ + " ERROR: entire intervals are not implemented!\n";
			}
			return declaration;
		}

		GenericParameter<?> lowerLimit = null;
		GenericParameter<?> upperLimit = null;

		if (interval.getLower_limit() != null) {
			lowerLimit = new GenericParameter<Object>(interval.getLower_limit());
		} else {
			lowerLimit = new GenericParameter<Object>(interval.getLowerEndpoint());
		}

		if (interval.getUpper_limit() != null) {
			upperLimit = new GenericParameter<Object>(interval.getUpper_limit());
		} else {
			upperLimit = new GenericParameter<Object>(interval.getUpperEndpoint());
		}

		String inputLowerName = name + "_lower";
		String inputUpperName = name + "_upper";

		declaration += getParameterString(interval.getTypeClass(), lowerLimit, inputLowerName);
		declaration += getParameterString(interval.getTypeClass(), upperLimit, inputUpperName);

		String[] intervalTranslation = currentTypeTranslation_.get(Interval.class);

		declaration += intervalTranslation[1];
		declaration = declaration.replace(PARAM_TYPE, intervalTranslation[0]);
		declaration = declaration.replace(INTERVAL_TYPE, inputType);
		declaration = declaration.replace(INTERVAL_NAME, name);
		declaration = declaration.replace(LOWER_VALUE, inputLowerName);
		declaration = declaration.replace(UPPER_VALUE, inputUpperName) + "\n";
		return declaration;
	}