org.apache.cocoon.components.language.programming.javascript
Class CompiledJavascriptLanguage
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.components.language.programming.AbstractProgrammingLanguage
|
+--org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage
|
+--org.apache.cocoon.components.language.programming.java.JavaLanguage
|
+--org.apache.cocoon.components.language.programming.javascript.CompiledJavascriptLanguage
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.parameters.Parameterizable, ProgrammingLanguage, org.apache.avalon.framework.thread.ThreadSafe
- public class CompiledJavascriptLanguage
- extends JavaLanguage
The compiled Javascript (Rhino) programming language processor
- Version:
- CVS $Id: CompiledJavascriptLanguage.java,v 1.3 2002/02/22 07:00:10 cziegeler Exp $
- Author:
- Ricardo Rocha
Fields inherited from class org.apache.cocoon.components.language.programming.java.JavaLanguage |
manager |
Method Summary |
protected void |
compile(java.lang.String name,
java.io.File baseDirectory,
java.lang.String encoding)
Compile a source file yielding a loadable class file. |
java.lang.String |
getSourceExtension()
Return the language's canonical source file extension. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompiledJavascriptLanguage
public CompiledJavascriptLanguage()
getSourceExtension
public java.lang.String getSourceExtension()
- Return the language's canonical source file extension.
- Overrides:
getSourceExtension
in class JavaLanguage
- Returns:
- The source file extension
compile
protected void compile(java.lang.String name,
java.io.File baseDirectory,
java.lang.String encoding)
throws LanguageException
- Compile a source file yielding a loadable class file.
- Overrides:
compile
in class JavaLanguage
- Parameters:
name
- The object program base file namebaseDirectory
- The directory containing the object program fileencoding
- The encoding expected in the source file or
null
if it is the platform's default encoding- Throws:
LanguageException
- If an error occurs during compilation
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.