janino.net

org.codehaus.commons.compiler
Interface ICompilerFactory

All Known Implementing Classes:
AbstractCompilerFactory, CompilerFactory, CompilerFactory

public interface ICompilerFactory

An entity that produces implementations of IExpressionEvaluator, IScriptEvaluator, IClassBodyEvaluator, ISimpleCompiler or AbstractJavaSourceClassLoader.

Implementations of this interface are, e.g. 'org.codehaus.janino' or 'org.codehaus.commons.compiler.jdk'.


Method Summary
 java.lang.String getId()
           
 java.lang.String getImplementationVersion()
           
 IClassBodyEvaluator newClassBodyEvaluator()
           
 IExpressionEvaluator newExpressionEvaluator()
           
 AbstractJavaSourceClassLoader newJavaSourceClassLoader()
           
 AbstractJavaSourceClassLoader newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
           
 IScriptEvaluator newScriptEvaluator()
           
 ISimpleCompiler newSimpleCompiler()
           
 java.lang.String toString()
           
 

Method Detail

getId

java.lang.String getId()
Returns:
A String which uniquely identifies the concrete implementation of this interface, e.g. "org.codehaus.janino" or "org.codehaus.commons.compiler.jdk"

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
A human-readable String that identifies the concrete implementation of this interface in a user interface, e.g. "janino" or "jdk"

getImplementationVersion

java.lang.String getImplementationVersion()
Returns:
The version of this implementation of the commons-compiler specification, or null

newExpressionEvaluator

IExpressionEvaluator newExpressionEvaluator()
Throws:
java.lang.UnsupportedOperationException - The underlying implementation does not implement an IExpressionEvaluator
See Also:
IExpressionEvaluator

newScriptEvaluator

IScriptEvaluator newScriptEvaluator()
Throws:
java.lang.UnsupportedOperationException - The underlying implementation does not implement an IScriptEvaluator
See Also:
IScriptEvaluator

newClassBodyEvaluator

IClassBodyEvaluator newClassBodyEvaluator()
Throws:
java.lang.UnsupportedOperationException - The underlying implementation does not implement an IClassBodyEvaluator
See Also:
IClassBodyEvaluator

newSimpleCompiler

ISimpleCompiler newSimpleCompiler()
Throws:
java.lang.UnsupportedOperationException - The underlying implementation does not implement an ISimpleCompiler
See Also:
ISimpleCompiler

newJavaSourceClassLoader

AbstractJavaSourceClassLoader newJavaSourceClassLoader()
Throws:
java.lang.UnsupportedOperationException - The underlying implementation does not implement an AbstractJavaSourceClassLoader
See Also:
AbstractJavaSourceClassLoader

newJavaSourceClassLoader

AbstractJavaSourceClassLoader newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
Throws:
java.lang.UnsupportedOperationException - The underlying implementation does not implement an AbstractJavaSourceClassLoader
See Also:
AbstractJavaSourceClassLoader

janino.net