|
5.10. Return to the Source: The Java DecompilerJava includes a decompiler of sorts called javap. It is sometimes referred to as the "class file disassembler." We titled this section "Return to the Source," but it is a bit misleading; javap simply provides a way to examine the members and methods of a compiled Java class[24] even when you do not have its source code.
The javap command takes the same access-modifier command-line arguments as javadoc (-public, -protected, -package, -private) to determine which attributes and methods are to be reported. An additional switch, -c, causes the bytecodes of methods to be reported. For details, see Sun's documentation for javap.[25]
Example 5.19 shows what you get if you run javap -c on our FetchURL example. |
|