Scroll to navigation

slice2java(1) General Commands Manual slice2java(1)

NAME

slice2java - The Slice to Java compiler.

SYNOPSIS

slice2java [options] [files]

DESCRIPTION

slice2java compiles Slice files to Java. The macro __SLICE2JAVA__ is defined during this compilation.

Full documentation for slice2java is available online at:
https://doc.zeroc.com/ice/3.7/language-mappings/java-mapping/client-side-slice-to-java-mapping/slice2java-command-line-options

OPTIONS


Displays a help message.

Displays the compiler version.


Defines the preprocessor symbol NAME.


Defines the preprocessor symbol NAME with the value DEF.


Undefines the preprocessor symbol NAME.


Add the directory DIR to the search path for #include directives.


Print the preprocessor output on stdout.


Place the generated files into directory DIR.


Print debug information showing the operation of the Slice parser.


Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.


Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.


Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.


Checks the provided command-line options for correctness, and does not generate any code.


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.


Define the file metadata directive META. Using this option is equivalent to defining the file metadata META in each named Slice file, as well as in any file included by a named Slice file. File metadata specified with --meta overrides any corresponding file metadata directive in the files being compiled.


Emit a list of generated files in XML format.

SEE ALSO

slice2cpp(1), slice2cs(1), slice2js(1), slice2matlab(1), slice2objc(1), slice2php(1), slice2py(1), slice2rb(1), slice2swift(1)