public abstract class Javac extends Object implements GateConstants
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COMPILER
The default compiler to use.
|
ABOUT_URL_JAVA_PROPERTY_NAME, ADD_NAMESPACE_FEATURES, ANNOT_TYPE_TO_EXPORT, APP_ICON_JAVA_PROPERTY_NAME, APP_SPLASH_JAVA_PROPERTY_NAME, APPLICATION_JAVA_PROPERTY_NAME, AUTOLOAD_PLUGIN_PATH_KEY, AUTOLOAD_PLUGIN_PATH_PROPERTY_NAME, BUILTIN_CREOLE_DIR_PROPERTY_NAME, COMPILER_TYPE_KEY, CORPUS_INDEX_DEFINITION_FEATURE_KEY, CORPUS_INDEX_STATISTICS_FEATURE_KEY, DOC_RTOL_ORIENTATION, DOCEDIT_INSERT_APPEND, DOCEDIT_INSERT_PREPEND, DOCEDIT_READ_ONLY, DOCUMENT_ADD_SPACE_ON_UNPACK_FEATURE_NAME, DOCUMENT_NEW_LINE_TYPE, DOCUMENT_REPOSITIONING_INFO_FEATURE_NAME, ELEMENT_NAMESPACE_PREFIX, ELEMENT_NAMESPACE_URI, GATE_CONFIG_PROPERTY, GATE_DOT_SER, GATE_DOT_XML, GATE_HOME_PROPERTY_NAME, GATE_SITE_CONFIG_PROPERTY_NAME, GATE_USER_CONFIG_PROPERTY_NAME, GATE_USER_SESSION_PROPERTY_NAME, HIDDEN_FEATURE_KEY, KNOWN_PLUGIN_PATH_KEY, LOOK_AND_FEEL, MAIN_FRAME_HEIGHT, MAIN_FRAME_MAXIMIZED, MAIN_FRAME_WIDTH, MENU_PATH_KEY, MENUS_FONT, ORIGINAL_DOCUMENT_CONTENT_FEATURE_NAME, ORIGINAL_MARKUPS_ANNOT_SET_NAME, OTHER_COMPONENTS_FONT, PLUGINS, PLUGINS_HOME_PROPERTY_NAME, SAVE_FEATURES_WHEN_PRESERVING_FORMAT, SAVE_OPTIONS_ON_EXIT, SAVE_SESSION_ON_EXIT, SITE_CONFIG_PROPERTY_NAME, TEXT_COMPONENTS_FONT, THROWEX_FORMAT_PROPERTY_NAME, TITLE_JAVA_PROPERTY_NAME, TOOLBAR_TEXT, USER_CONFIG_PROPERTY_NAME, WORDNET_CONFIG_FILE
Constructor and Description |
---|
Javac() |
Modifier and Type | Method and Description |
---|---|
abstract void |
compile(Map<String,String> sources,
GateClassLoader classLoader)
Compile a set of Java sources, and load the resulting classes into the GATE
class loader.
|
static void |
loadClasses(Map<String,String> sources,
GateClassLoader classLoader)
Compiles a set of java sources and loads the compiled classes in the gate
class loader.
|
public static final String DEFAULT_COMPILER
public static void loadClasses(Map<String,String> sources, GateClassLoader classLoader) throws GateException
sources
- a map from fully qualified classname to java sourceclassLoader
- the classloader into which the sources should be compiled and
loaded. Note that this classloader must also have access to all
the classes required to compile the sources.GateException
- in case of a compilation error or warning. In the case of
warnings the compiled classes are loaded before the error is
raised.public abstract void compile(Map<String,String> sources, GateClassLoader classLoader) throws GateException
sources
- a map from fully qualified classname to java sourceclassLoader
- the classloader into which the sources should be compiled. Note
that this classloader must also have access to all the classes
required to compile the sources.GateException
- in case of a compilation error or warning. In the case of
warnings, the compiled classes are loaded before the exception is
thrown.Copyright © 2024 GATE. All rights reserved.