Package org.codehaus.commons.compiler

This package declares interfaces for the implementation of an IExpressionEvaluator, an IScriptEvaluator, an IClassBodyEvaluator and an ISimpleCompiler.

See:
          Description

Interface Summary
AbstractJavaSourceClassLoader.ProtectionDomainFactory  
IClassBodyEvaluator Parses a class body and returns it as a Class object ready for use with java.lang.reflect.
ICompilerFactory  
ICookable "Cooking" means scanning a sequence of characters and turning them into some JVM-executable artifact.
IExpressionEvaluator An engine that evaluates expressions in Java™ bytecode.
IScriptEvaluator An engine that executes a script in Java™ bytecode.
ISimpleCompiler A simplified Java™ compiler that can compile only a single compilation unit.
 

Class Summary
AbstractCompilerFactory  
AbstractJavaSourceClassLoader A ClassLoader that, unlike usual ClassLoaders, does not load byte code, but reads Java™ source code and then scans, parses, compiles and loads it into the virtual machine.
CompilerFactoryFactory Utility class that finds implementations of ICompilerFactorys.
Cookable  
Location Represents the location of a character in a document, as defined by an optional file name, a line number and a column number.
PrimitiveWrapper A helper class that wraps primitive values in their wrapper classes.
 

Exception Summary
CausedException For compatibility with pre-1.4 JDKs, this class mimics
CompileException An exception that reflects an error during compilation.
LocatedException An Exception that is associated with an optional Location in a source file.
 

Package org.codehaus.commons.compiler Description

This package declares interfaces for the implementation of an IExpressionEvaluator, an IScriptEvaluator, an IClassBodyEvaluator and an ISimpleCompiler. All of these adhere to the syntax of the Java ™ programming language.

There are (at least) two implementations of these interfaces available:

Notice: Implementations may or may not be prone to "Java injection", i.e. it may or may not be possible to, e.g., break out of the "expression" scope of an IExpressionEvaluator by providing a "bogus" expression text. The documentation of each implementation should state clearly whether or not it is prone to Java injection.



Copyright © 2001-2011. All Rights Reserved.