| org.apache.cocoon.components.language.programming.AbstractProgrammingLanguage org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage
All known Subclasses: org.apache.cocoon.components.language.programming.java.JavaLanguage,
CompiledProgrammingLanguage | abstract public class CompiledProgrammingLanguage extends AbstractProgrammingLanguage implements Contextualizable(Code) | | A compiled programming language. This class extends AbstractProgrammingLanguage adding support for compilation
and object program files
author: Ricardo Rocha version: CVS $Id: CompiledProgrammingLanguage.java 433543 2006-08-22 06:22:54Z crossley $ |
classpath | protected String classpath(Code) | | The local classpath
|
compilerClass | protected Class compilerClass(Code) | | The compiler
|
deleteSources | protected boolean deleteSources(Code) | | The source deletion option
|
compile | abstract protected void compile(String filename, File baseDirectory, String encoding) throws LanguageException(Code) | | Compile a source file yielding a loadable object file.
Parameters: filename - The object program base file name Parameters: baseDirectory - The directory containing the object program file Parameters: encoding - The encoding expected in the source file or null if it is the platform's default encoding exception: LanguageException - If an error occurs during compilation |
contextualize | public void contextualize(Context context) throws ContextException(Code) | | Set the context
Parameters: context - The context |
doUnload | abstract public void doUnload(Object program) throws LanguageException(Code) | | Unload a previously loaded program
Parameters: program - A previously loaded object program exception: LanguageException - If an error occurs during unloading |
doUnload | final protected void doUnload(Object program, String filename, File baseDirectory) throws LanguageException(Code) | | Unload a previously loaded program given its original filesystem location
Parameters: program - The previously loaded object program Parameters: filename - The base filename of the object program Parameters: baseDirectory - The directory contaning the object program file exception: LanguageException - If an error occurs |
getObjectExtension | abstract public String getObjectExtension()(Code) | | Return the language's canonical object file extension.
The object file extension |
load | public Program load(String filename, File baseDirectory, String encoding) throws LanguageException(Code) | | Load an object program from a file.
This method compiles the corresponding source file if necessary.
Parameters: filename - The object program base file name Parameters: baseDirectory - The directory containing the object program file Parameters: encoding - The encoding expected in the source file or null if it is the platform's default encoding The loaded object program exception: LanguageException - If an error occurs during compilation |
loadProgram | abstract protected Class loadProgram(String filename, File baseDirectory) throws LanguageException(Code) | | Actually load an object program from a file.
Parameters: filename - The object program base file name Parameters: baseDirectory - The directory containing the object program file The loaded object program exception: LanguageException - If an error occurs during loading |
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Set the configuration parameters. This method instantiates the sitemap-specified language compiler
Parameters: params - The configuration parameters exception: ParameterException - If the language compiler cannot be loaded |
preload | public Program preload(String filename, File baseDirectory, String encoding) throws LanguageException(Code) | | Preload an object program from a file.
This method does not compiles the corresponding source file.
Parameters: filename - The object program base file name Parameters: baseDirectory - The directory containing the object program file Parameters: encoding - The encoding expected in the source file or null if it is the platform's default encoding The loaded object program exception: LanguageException - If an error occurs during compilation |
|
|