Package org.codehaus.janino
Class CompilerFactory
- java.lang.Object
-
- org.codehaus.commons.compiler.AbstractCompilerFactory
-
- org.codehaus.janino.CompilerFactory
-
- All Implemented Interfaces:
ICompilerFactory
public class CompilerFactory extends AbstractCompilerFactory
The JANINO implementation ofICompilerFactory
.
-
-
Constructor Summary
Constructors Constructor Description CompilerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getImplementationVersion()
IClassBodyEvaluator
newClassBodyEvaluator()
IExpressionEvaluator
newExpressionEvaluator()
AbstractJavaSourceClassLoader
newJavaSourceClassLoader()
AbstractJavaSourceClassLoader
newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
IScriptEvaluator
newScriptEvaluator()
ISimpleCompiler
newSimpleCompiler()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceICompilerFactory
- Specified by:
getId
in classAbstractCompilerFactory
- Returns:
- A
String
that identifies the concrete implementation of this interface, e.g. 'org.codehaus.janino' or 'org.codehaus.commons.compiler.jdk'
-
getImplementationVersion
public java.lang.String getImplementationVersion()
- Specified by:
getImplementationVersion
in interfaceICompilerFactory
- Specified by:
getImplementationVersion
in classAbstractCompilerFactory
- Returns:
- The version of this implementation of the commons-compiler specification, or
null
-
newExpressionEvaluator
public IExpressionEvaluator newExpressionEvaluator()
- Specified by:
newExpressionEvaluator
in interfaceICompilerFactory
- Overrides:
newExpressionEvaluator
in classAbstractCompilerFactory
- See Also:
IExpressionEvaluator
-
newScriptEvaluator
public IScriptEvaluator newScriptEvaluator()
- Specified by:
newScriptEvaluator
in interfaceICompilerFactory
- Overrides:
newScriptEvaluator
in classAbstractCompilerFactory
- See Also:
IScriptEvaluator
-
newClassBodyEvaluator
public IClassBodyEvaluator newClassBodyEvaluator()
- Specified by:
newClassBodyEvaluator
in interfaceICompilerFactory
- Overrides:
newClassBodyEvaluator
in classAbstractCompilerFactory
- See Also:
IClassBodyEvaluator
-
newSimpleCompiler
public ISimpleCompiler newSimpleCompiler()
- Specified by:
newSimpleCompiler
in interfaceICompilerFactory
- Overrides:
newSimpleCompiler
in classAbstractCompilerFactory
- See Also:
ISimpleCompiler
-
newJavaSourceClassLoader
public AbstractJavaSourceClassLoader newJavaSourceClassLoader()
- Specified by:
newJavaSourceClassLoader
in interfaceICompilerFactory
- Overrides:
newJavaSourceClassLoader
in classAbstractCompilerFactory
- See Also:
AbstractJavaSourceClassLoader
-
newJavaSourceClassLoader
public AbstractJavaSourceClassLoader newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
- Specified by:
newJavaSourceClassLoader
in interfaceICompilerFactory
- Overrides:
newJavaSourceClassLoader
in classAbstractCompilerFactory
- See Also:
AbstractJavaSourceClassLoader
-
-