docs: @Pure
  	public XExpression getDefaultXExpressionForType(String type) {
  		//TODO: Check if a similar function exists in the Xbase library.
  		XExpression expr = null;
  		if (type != null && !"void".equals(type) && !Void.class.getName().equals(type)) {
  			switch (type) {
  			case "boolean":
  			case "java.lang.Boolean":
  				XBooleanLiteral booleanLiteral = XbaseFactory.eINSTANCE.createXBooleanLiteral();
  				booleanLiteral.setIsTrue(false);
  				expr = booleanLiteral;
  				break;
  			case "float":
  			case "java.lang.Float":
  				XNumberLiteral numberLiteral = XbaseFactory.eINSTANCE.createXNumberLiteral();
  				numberLiteral.setValue("0.0f");
  				expr = numberLiteral;
  				break;
  			case "double":
  			case "java.lang.Double":
  			case "java.lang.BigDecimal":
  				numberLiteral = XbaseFactory.eINSTANCE.createXNumberLiteral();
  				numberLiteral.setValue("0.0");
  				expr = numberLiteral;
  				break;
  			case "int":
  			case "long":
  			case "java.lang.Integer":
  			case "java.lang.Long":
  			case "java.lang.BigInteger":
  				numberLiteral = XbaseFactory.eINSTANCE.createXNumberLiteral();
  				numberLiteral.setValue("0");
  				expr = numberLiteral;
  				break;
  			case "byte":
  			case "short":
  			case "char":
  			case "java.lang.Byte":
  			case "java.lang.Short":
  			case "java.lang.Character":
  				numberLiteral = XbaseFactory.eINSTANCE.createXNumberLiteral();
  				numberLiteral.setValue("0");
  				XCastedExpression castExpression = XbaseFactory.eINSTANCE.createXCastedExpression();
  				castExpression.setTarget(numberLiteral);
  				castExpression.setType(newTypeRef(this.context, type));
  				expr = numberLiteral;
  				break;
  			default:
  				expr = XbaseFactory.eINSTANCE.createXNullLiteral();
  				break;
  			}
  		}
  		return expr;
  	}