Adds parameter-passing to Java code generator.