package jabsc;

import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;

/**
 * Some ABS types have an equivalent proper Java type. This is
 * function to be able to translate those.
 */
public class JavaTypeTranslator implements Function<String, String> {

  private final Map<String, String> abs2java = new HashMap<>();

  public JavaTypeTranslator() {
    fill(abs2java);
  }

  @Override
  public String apply(String absType) {
    String javaType = abs2java.get(absType);
    if (javaType != null) {
      return javaType;
    }
    // TODO To be completed.
    return absType;
  }

  protected void fill(Map<String, String> types) {
    types.put("Int", Integer.class.getName());
  }

}

@@ -208,23 +208,16 @@
 se.%0A */%0A
-public 
 class Ja
@@ -700,15 +700,46 @@
 ame());%0A
+    types.put(%22Unit%22, %22void%22);%0A
   %7D%0A%0A%7D%0A

Add support for `Unit`