Package org.codehaus.commons.compiler
Interface ICompilerFactory
-
- All Known Implementing Classes:
AbstractCompilerFactory
,CompilerFactory
,CompilerFactory
public interface ICompilerFactory
An entity that produces implementations ofIExpressionEvaluator
,IScriptEvaluator
,IClassBodyEvaluator
,ISimpleCompiler
orAbstractJavaSourceClassLoader
.Implementations of this interface are, e.g.
org.codehaus.janino
andorg.codehaus.commons.compiler.jdk
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getImplementationVersion()
IClassBodyEvaluator
newClassBodyEvaluator()
ICompiler
newCompiler()
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 classjava.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 anIExpressionEvaluator
- See Also:
IExpressionEvaluator
-
newScriptEvaluator
IScriptEvaluator newScriptEvaluator()
- Throws:
java.lang.UnsupportedOperationException
- The underlying implementation does not implement anIScriptEvaluator
- See Also:
IScriptEvaluator
-
newClassBodyEvaluator
IClassBodyEvaluator newClassBodyEvaluator()
- Throws:
java.lang.UnsupportedOperationException
- The underlying implementation does not implement anIClassBodyEvaluator
- See Also:
IClassBodyEvaluator
-
newSimpleCompiler
ISimpleCompiler newSimpleCompiler()
- Throws:
java.lang.UnsupportedOperationException
- The underlying implementation does not implement anISimpleCompiler
- See Also:
ISimpleCompiler
-
newCompiler
ICompiler newCompiler()
- Throws:
java.lang.UnsupportedOperationException
- The underlying implementation does not implement anICompiler
- See Also:
ISimpleCompiler
-
newJavaSourceClassLoader
AbstractJavaSourceClassLoader newJavaSourceClassLoader()
- Throws:
java.lang.UnsupportedOperationException
- The underlying implementation does not implement anAbstractJavaSourceClassLoader
- See Also:
AbstractJavaSourceClassLoader
-
newJavaSourceClassLoader
AbstractJavaSourceClassLoader newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
- Throws:
java.lang.UnsupportedOperationException
- The underlying implementation does not implement anAbstractJavaSourceClassLoader
- See Also:
AbstractJavaSourceClassLoader
-
-