The Slice-to-Java compiler,
slice2java, offers the command-line options described below in addition to the standard options. Note that some of these options are only applicable for the Java Compat mapping, meaning they must be used together with the
Generate code for the Java Compat mapping. When this option is specified, the macro
__SLICE2JAVA_COMPAT__is defined during the compilation. If this option is not specified, the default behavior is to generate code for the Java mapping.
Generate tie classes. (Java Compat only)
Generate sample implementation files. This option will not overwrite an existing file.
Generate sample implementation files using tie classes. This option will not overwrite an existing file. (Java Compat only)
Generate checksums for Slice definitions into the class
CLASS. The given class name may optionally contain a package specifier. The generated class contains checksums for all of the Slice files being translated by this invocation of the compiler. For example, the command below causes
slice2javato generate the file
Checksums.javacontaining the checksums for the Slice definitions in
Define the file metadata directive
META. Using this option is equivalent to defining the file metadata
METAin each named Slice file, as well as in any file included by a named Slice file. File metadata specified with
--metaoverrides any corresponding file metadata directive in the files being compiled.
Emit a list of generated files in XML format.