Class CompilerFactory
- java.lang.Object
-
- org.codehaus.commons.compiler.AbstractCompilerFactory
-
- org.codehaus.commons.compiler.jdk.CompilerFactory
-
- All Implemented Interfaces:
ICompilerFactory
public class CompilerFactory extends AbstractCompilerFactory
TheCompilerFactory
implementation fororg.codehaus.commons.compiler.jdk
.
-
-
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()
ICompiler
newCompiler()
IExpressionEvaluator
newExpressionEvaluator()
AbstractJavaSourceClassLoader
newJavaSourceClassLoader()
AbstractJavaSourceClassLoader
newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
IScriptEvaluator
newScriptEvaluator()
ISimpleCompiler
newSimpleCompiler()
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceICompilerFactory
- Specified by:
getId
in classAbstractCompilerFactory
- Returns:
- A
String
which uniquely identifies the concrete implementation of this interface, e.g."org.codehaus.janino"
or"org.codehaus.commons.compiler.jdk"
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceICompilerFactory
- Specified by:
toString
in classAbstractCompilerFactory
- Returns:
- A human-readable
String
that identifies the concrete implementation of this interface in a user interface, e.g."janino"
or"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
-
newCompiler
public ICompiler newCompiler()
- 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
-
-