Class ClassBodyEvaluator

All Implemented Interfaces:
IClassBodyEvaluator, ICookable, ISimpleCompiler
Direct Known Subclasses:
ScriptEvaluator

public class ClassBodyEvaluator extends SimpleCompiler implements IClassBodyEvaluator
The optionalClassLoader serves two purposes:
  • It is used to look for classes referenced by the class body.
  • It is used to load the generated Java™ class into the JVM; directly if it is a subclass of ByteArrayClassLoader, or by creation of a temporary ByteArrayClassLoader if not.
A number of "convenience constructors" exist that execute the setup steps instantly.