Package org.codehaus.commons.compiler
Class AbstractCompilerFactory
java.lang.Object
org.codehaus.commons.compiler.AbstractCompilerFactory
- All Implemented Interfaces:
ICompilerFactory
- Direct Known Subclasses:
CompilerFactory
,CompilerFactory
Base class for a simple
ICompilerFactory
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
getId()
abstract String
newJavaSourceClassLoader
(ClassLoader parentClassLoader) abstract String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.codehaus.commons.compiler.ICompilerFactory
newCompiler
-
Constructor Details
-
AbstractCompilerFactory
public AbstractCompilerFactory()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceICompilerFactory
- Returns:
- A
String
which uniquely identifies the concrete implementation of this interface, e.g."org.codehaus.janino"
or"org.codehaus.commons.compiler.jdk"
-
toString
- Specified by:
toString
in interfaceICompilerFactory
- Overrides:
toString
in classObject
- Returns:
- A human-readable
String
that identifies the concrete implementation of this interface in a user interface, e.g."janino"
or"jdk"
-
getImplementationVersion
- Specified by:
getImplementationVersion
in interfaceICompilerFactory
- Returns:
- The version of this implementation of the commons-compiler specification, or
null
-
newExpressionEvaluator
- Specified by:
newExpressionEvaluator
in interfaceICompilerFactory
- See Also:
-
newScriptEvaluator
- Specified by:
newScriptEvaluator
in interfaceICompilerFactory
- See Also:
-
newClassBodyEvaluator
- Specified by:
newClassBodyEvaluator
in interfaceICompilerFactory
- See Also:
-
newSimpleCompiler
- Specified by:
newSimpleCompiler
in interfaceICompilerFactory
- See Also:
-
newJavaSourceClassLoader
- Specified by:
newJavaSourceClassLoader
in interfaceICompilerFactory
- See Also:
-
newJavaSourceClassLoader
- Specified by:
newJavaSourceClassLoader
in interfaceICompilerFactory
- See Also:
-