O'Reilly logo

Core Java™ Volume II–Advanced Features, Eighth Edition by Gary Cornell, Cay S. Horstmann

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

Chapter 11. Scripting, Compiling, and Annotation Processing

<feature><title></title> <objective>

SCRIPTING FOR THE JAVA PLATFORM

</objective>
<objective>

THE COMPILER API

</objective>
<objective>

USING ANNOTATIONS

</objective>
<objective>

ANNOTATION SYNTAX

</objective>
<objective>

STANDARD ANNOTATIONS

</objective>
<objective>

SOURCE-LEVEL ANNOTATION PROCESSING

</objective>
<objective>

BYTECODE ENGINEERING

</objective>
</feature>

This chapter introduces three techniques for processing code. The scripting API lets you invoke code in a scripting language such as JavaScript or Groovy. You use the compiler API when you want to compile Java code inside your application. Annotation processors operate on Java source or class files that contain annotations. As you will ...

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