org.apache.cocoon.components.language.programming.javascript
Class CompiledJavascriptLanguage
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
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:
- Disposable, Initializable, Component, Contextualizable, LogEnabled, Parameterizable, Serviceable, ThreadSafe, ProgrammingLanguage
public class CompiledJavascriptLanguage
- extends JavaLanguage
The compiled Javascript (Rhino) programming language processor
- Version:
- CVS $Id: CompiledJavascriptLanguage.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Ricardo Rocha
Fields inherited from class org.apache.cocoon.components.language.programming.java.JavaLanguage |
manager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompiledJavascriptLanguage
public CompiledJavascriptLanguage()
getSourceExtension
public String getSourceExtension()
- Return the language's canonical source file extension.
- Specified by:
getSourceExtension
in interface ProgrammingLanguage
- Overrides:
getSourceExtension
in class JavaLanguage
- Returns:
- The source file extension
compile
protected void compile(String name,
File baseDirectory,
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-2010 The Apache Software Foundation. All Rights Reserved.