O'Reilly logo

Decompiling Java by Godfrey Nolan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Output

Adding these into the CUP specification produces nice-looking results (see Listing 6-39).

DoWhile.java and IfTest.java

The next extension of the decompiler allows it to handle conditional statements. Two types of conditional statements do not require the goto opcode by nature—the do-while loop (Listing 6-40) and the if statement (Listing 6-41)—so it is logical to start with them. This small change requires the addition of several new opcodes, the most complicated covered ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required