Package 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 and
org.codehaus.commons.compiler.jdk.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()newJavaSourceClassLoader(ClassLoader parentClassLoader) toString()
-
Method Details
-
getId
String getId()- Returns:
- A
Stringwhich uniquely identifies the concrete implementation of this interface, e.g."org.codehaus.janino"or"org.codehaus.commons.compiler.jdk"
-
toString
String toString() -
getImplementationVersion
String getImplementationVersion()- Returns:
- The version of this implementation of the commons-compiler specification, or
null
-
newExpressionEvaluator
IExpressionEvaluator newExpressionEvaluator()- Throws:
UnsupportedOperationException- The underlying implementation does not implement anIExpressionEvaluator- See Also:
-
newScriptEvaluator
IScriptEvaluator newScriptEvaluator()- Throws:
UnsupportedOperationException- The underlying implementation does not implement anIScriptEvaluator- See Also:
-
newClassBodyEvaluator
IClassBodyEvaluator newClassBodyEvaluator()- Throws:
UnsupportedOperationException- The underlying implementation does not implement anIClassBodyEvaluator- See Also:
-
newSimpleCompiler
ISimpleCompiler newSimpleCompiler()- Throws:
UnsupportedOperationException- The underlying implementation does not implement anISimpleCompiler- See Also:
-
newCompiler
ICompiler newCompiler()- Throws:
UnsupportedOperationException- The underlying implementation does not implement anICompiler- See Also:
-
newJavaSourceClassLoader
AbstractJavaSourceClassLoader newJavaSourceClassLoader()- Throws:
UnsupportedOperationException- The underlying implementation does not implement anAbstractJavaSourceClassLoader- See Also:
-
newJavaSourceClassLoader
- Throws:
UnsupportedOperationException- The underlying implementation does not implement anAbstractJavaSourceClassLoader- See Also:
-