Package org.codehaus.commons.compiler
Class AbstractCompilerFactory
- java.lang.Object
-
- org.codehaus.commons.compiler.AbstractCompilerFactory
-
- All Implemented Interfaces:
ICompilerFactory
- Direct Known Subclasses:
CompilerFactory
,CompilerFactory
public abstract class AbstractCompilerFactory extends java.lang.Object implements ICompilerFactory
Base class for a simpleICompilerFactory
.
-
-
Constructor Summary
Constructors Constructor Description AbstractCompilerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getId()
abstract java.lang.String
getImplementationVersion()
IClassBodyEvaluator
newClassBodyEvaluator()
IExpressionEvaluator
newExpressionEvaluator()
AbstractJavaSourceClassLoader
newJavaSourceClassLoader()
AbstractJavaSourceClassLoader
newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
IScriptEvaluator
newScriptEvaluator()
ISimpleCompiler
newSimpleCompiler()
abstract java.lang.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
-
-
-
-
Method Detail
-
getId
public abstract java.lang.String 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
public abstract java.lang.String toString()
- Specified by:
toString
in interfaceICompilerFactory
- 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
public abstract java.lang.String getImplementationVersion()
- Specified by:
getImplementationVersion
in interfaceICompilerFactory
- Returns:
- The version of this implementation of the commons-compiler specification, or
null
-
newExpressionEvaluator
public IExpressionEvaluator newExpressionEvaluator()
- Specified by:
newExpressionEvaluator
in interfaceICompilerFactory
- See Also:
IExpressionEvaluator
-
newScriptEvaluator
public IScriptEvaluator newScriptEvaluator()
- Specified by:
newScriptEvaluator
in interfaceICompilerFactory
- See Also:
IScriptEvaluator
-
newClassBodyEvaluator
public IClassBodyEvaluator newClassBodyEvaluator()
- Specified by:
newClassBodyEvaluator
in interfaceICompilerFactory
- See Also:
IClassBodyEvaluator
-
newSimpleCompiler
public ISimpleCompiler newSimpleCompiler()
- Specified by:
newSimpleCompiler
in interfaceICompilerFactory
- See Also:
ISimpleCompiler
-
newJavaSourceClassLoader
public AbstractJavaSourceClassLoader newJavaSourceClassLoader()
- Specified by:
newJavaSourceClassLoader
in interfaceICompilerFactory
- See Also:
AbstractJavaSourceClassLoader
-
newJavaSourceClassLoader
public AbstractJavaSourceClassLoader newJavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
- Specified by:
newJavaSourceClassLoader
in interfaceICompilerFactory
- See Also:
AbstractJavaSourceClassLoader
-
-