concept compilation in category groovy
appears as: compilation, compilation

This is an excerpt from Manning's book Groovy in Action, Second Edition.
In classic object-oriented systems, every class has a well-known set of states, captured in the fields of that class, and well-known behavior, defined by its methods. Neither the set of states nor the behavior ever changes after compilation, and it’s identical for all instances of a class.
In all the examples you’ve seen so far, we’ve used the evaluate method, which compiles and runs a script in one go. That’s fine for one-shot evaluations, but other situations benefit from separating the compilation (parsing) from the execution, as you’ll see next.