1 16 package org.apache.cocoon.components.language.programming; 17 18 import org.apache.avalon.framework.component.Component; 19 20 import org.apache.cocoon.components.language.LanguageException; 21 import org.apache.cocoon.components.language.generator.CompiledComponent; 22 23 import java.io.File ; 24 25 31 public interface ProgrammingLanguage extends Component { 32 33 String ROLE = ProgrammingLanguage.class.getName(); 34 35 40 String getSourceExtension(); 41 42 52 Program preload(String filename, File baseDirectory, String encoding) 53 throws LanguageException; 54 55 65 Program load(String filename, File baseDirectory, String encoding) 66 throws LanguageException; 67 68 75 CompiledComponent instantiate(Program program) throws LanguageException; 77 78 86 void unload(Object program, String filename, File baseDirectory) throws LanguageException; 88 89 96 CodeFormatter getCodeFormatter(); 97 98 105 String quoteString(String constant); 106 107 112 void setLanguageName(String name); 113 114 119 String getLanguageName(); 120 } 121 | Popular Tags |