Generate the main Java file, the environment-building Java file, and optionally the test Java file.
(atj-gen-everything deep$ guards$ no-aij-types$ java-package$ java-class$ output-subdir output-file$ output-file-env$ output-file-test$ tests$ pkgs fns-to-translate call-graph verbose$ ctx state) → (mv erp val state)
We set the soft and hard right margins to very large values to avoid line breaks in virtually all cases. Setting these margins to ``infinity'' is not supported.
We always generate the main Java file.
We generate the environment-building Java file
if
We pass the alist from ACL2 package names to Java class names
from one file generation function to another.
This is
Function:
(defun atj-gen-everything (deep$ guards$ no-aij-types$ java-package$ java-class$ output-subdir output-file$ output-file-env$ output-file-test$ tests$ pkgs fns-to-translate call-graph verbose$ ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (booleanp deep$) (booleanp guards$) (booleanp no-aij-types$) (maybe-stringp java-package$) (stringp java-class$) (stringp output-subdir) (stringp output-file$) (stringp output-file-env$) (maybe-stringp output-file-test$) (atj-test-listp tests$) (string-listp pkgs) (symbol-listp fns-to-translate) (symbol-symbollist-alistp call-graph) (booleanp verbose$) (ctxp ctx)))) (let ((__function__ 'atj-gen-everything)) (declare (ignorable __function__)) (state-global-let* ((fmt-soft-right-margin 1000000 set-fmt-soft-right-margin) (fmt-hard-right-margin 1000000 set-fmt-hard-right-margin)) (b* (((er &) (atj-gen-output-subdir output-subdir java-package$ ctx state)) ((mv pkg-class-names fn-method-names state) (atj-gen-main-file deep$ guards$ no-aij-types$ java-package$ java-class$ output-file$ pkgs fns-to-translate call-graph verbose$ state)) (state (if no-aij-types$ state (atj-gen-env-file deep$ guards$ java-package$ java-class$ output-file-env$ pkgs fns-to-translate verbose$ state))) (state (if tests$ (atj-gen-test-file deep$ guards$ no-aij-types$ java-package$ java-class$ output-file-test$ tests$ verbose$ pkg-class-names fn-method-names state) state))) (value nil)))))