.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH PROCYON "1" "October 2016" "procyon 0.5.32" "User Commands" .SH NAME procyon \- manual page for the Procyon Java decompiler .SH SYNOPSIS .B procyon [\fI\,options\/\fR] \fI\,\/\fR .SH DESCRIPTION Procyon is a Java decompiler handling language enhancements from Java 5 and beyond that most other decompilers don't. It also excels in areas where others fall short. Procyon in particular does well with: * Enum declarations * Enum and String switch statements * Local classes (both anonymous and named) * Annotations * Java 8 Lambdas and method references Procyon offers three output modes: * Java (default) * Raw Bytecode (similar to javap, but prettier; run with \fB\-r\fR) * Bytecode AST (an intermediate representation; run with \fB\-b\fR, add \fB\-u\fR for unoptimized) .PP One or more types can be passed as an argument to be processed. The input types can be fully-qualified names in dotted or binary form (e.g., \fBjava.lang.String\fR or \fBjava/lang/String\fR) or relative/absolute file paths (\fBpath/to/MyClass.class\fR) or even whole jar files. If a type name is passed, Procyon will attempt to load it out of the user or bootstrap classpath. .SH OPTIONS .HP \fB\-b\fR, \fB\-\-bytecode\-ast\fR .IP Output Bytecode AST instead of Java. Default: false .HP \fB\-ci\fR, \fB\-\-collapse\-imports\fR .IP Collapse multiple imports from the same package into a single wildcard import. Default: false .HP \fB\-cp\fR, \fB\-\-constant\-pool\fR .IP Includes the constant pool when displaying raw bytecode (unnecessary with \fB\-v\fR). Default: false .HP \fB\-dl\fR, \fB\-\-debug\-line\-numbers\fR .IP For debugging, show Java line numbers as inline comments (implies \fB\-ln\fR; requires \fB\-o\fR). Default: false .HP \fB\-\-disable\-foreach\fR .IP Disable 'for each' loop transforms. Default: false .HP \fB\-eml\fR, \fB\-\-eager\-method\-loading\fR .IP Enable eager loading of method bodies (may speed up decompilation of larger archives). Default: false .HP \fB\-ent\fR, \fB\-\-exclude\-nested\fR .IP Exclude nested types when decompiling their enclosing types. Default: false .HP \fB\-ei\fR, \fB\-\-explicit\-imports\fR .IP [DEPRECATED] Explicit imports are now enabled by default. This option will be removed in a future release. Default: false .HP \fB\-eta\fR, \fB\-\-explicit\-type\-arguments\fR .IP Always print type arguments to generic methods. Default: false .HP \fB\-fsb\fR, \fB\-\-flatten\-switch\-blocks\fR .IP Drop the braces statements around switch sections when possible. Default: false .HP \-?, \fB\-\-help\fR .IP Display this usage information and exit. Default: false .HP \fB\-jar\fR, \fB\-\-jar\-file\fR .IP [DEPRECATED] Decompile all classes in the specified jar file (disables \fB\-ent\fR and \fB\-s\fR). .HP \fB\-lc\fR, \fB\-\-light\fR .IP Use a color scheme designed for consoles with light background colors. Default: false .HP \fB\-lv\fR, \fB\-\-local\-variables\fR .IP Includes the local variable tables when displaying raw bytecode (unnecessary with \fB\-v\fR). Default: false .HP \fB\-ll\fR, \fB\-\-log\-level\fR .IP Set the level of log verbosity (0\-3). Level 0 disables logging. Default: 0 .HP \fB\-mv\fR, \fB\-\-merge\-variables\fR .IP Attempt to merge as many variables as possible. This may lead to fewer declarations, but at the expense of inlining and useful naming. This feature is experimental and may be removed or become the standard behavior in future releases. Default: false .HP \fB\-o\fR, \fB\-\-output\-directory\fR .IP Write decompiled results to specified directory instead of the console. .HP \fB\-r\fR, \fB\-\-raw\-bytecode\fR .IP Output Raw Bytecode instead of Java (to control the level of detail, see: \fB\-cp\fR, \fB\-lv\fR, \fB\-ta\fR, \fB\-v\fR). Default: false .HP \fB\-ec\fR, \fB\-\-retain\-explicit\-casts\fR .IP Do not remove redundant explicit casts. Default: false .HP \fB\-ps\fR, \fB\-\-retain\-pointless\-switches\fR .IP Do not lift the contents of switches having only a default label. Default: false .HP \fB\-ss\fR, \fB\-\-show\-synthetic\fR .IP Show synthetic (compiler\-generated) members. Default: false .HP \fB\-sm\fR, \fB\-\-simplify\-member\-references\fR .IP Simplify type\-qualified member references in Java output [EXPERIMENTAL]. Default: false .HP \fB\-sl\fR, \fB\-\-stretch\-lines\fR .IP Stretch Java lines to match original line numbers (only in combination with \fB\-o\fR) [EXPERIMENTAL]. Default: false .HP \fB\-ta\fR, \fB\-\-type\-attributes\fR .IP Includes type attributes when displaying raw bytecode (unnecessary with \fB\-v\fR). Default: false .HP \fB\-\-unicode\fR .IP Enable Unicode output (printable non\-ASCII characters will not be escaped). Default: false .HP \fB\-u\fR, \fB\-\-unoptimized\fR .IP Show unoptimized code (only in combination with \fB\-b\fR). Default: false .HP \fB\-v\fR, \fB\-\-verbose\fR .IP Includes more detailed output depending on the output language (currently only supported for raw bytecode). Default: false .HP \fB\-\-version\fR .IP Display the decompiler version and exit. Default: false .HP \fB\-ln\fR, \fB\-\-with\-line\-numbers\fR .IP Include line numbers in raw bytecode mode; supports Java mode with \fB\-o\fR only. Default: false .SH EXAMPLES Decompile a single class to the console: .IP $ procyon java.lang.String .IP $ procyon java.util.Collections .PP Decompile a whole jar to a directory: .IP $ procyon myJar.jar -o out .PP Decompile a single class from a jar: .IP $ CLASSPATH=myJar.jar procyon com.example.Foo .SH "SEE ALSO" https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler