public class PreprocessorManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PreprocessorManager.ScriptFileComparator |
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,java.util.List<IPreprocessor>> |
preprocessorActionsPerFile |
static PreprocessorManager.ScriptFileComparator |
SCRIPT_FILE_COMPARATOR |
Constructor and Description |
---|
PreprocessorManager() |
Modifier and Type | Method and Description |
---|---|
java.util.List<IPreprocessor> |
checkFileForPreprocessors(ScriptFile scriptFile)
Checks the given inputstream for preprocessors
|
void |
clean()
Cleans up before being able to run again
|
void |
postLoadEvent(CrTScriptLoadEvent event) |
void |
registerLoadEventHandler(IEventHandler<CrTScriptLoadEvent> handler) |
static void |
registerOwnPreprocessors(PreprocessorManager manager) |
void |
registerPreprocessorAction(java.lang.String name,
PreprocessorFactory preprocessorFactory) |
public static final PreprocessorManager.ScriptFileComparator SCRIPT_FILE_COMPARATOR
public java.util.HashMap<java.lang.String,java.util.List<IPreprocessor>> preprocessorActionsPerFile
public void registerPreprocessorAction(java.lang.String name, PreprocessorFactory preprocessorFactory)
public void clean()
public java.util.List<IPreprocessor> checkFileForPreprocessors(ScriptFile scriptFile)
scriptFile
- ScriptFile object of file to check,
contains all important information about streams and namespublic static void registerOwnPreprocessors(PreprocessorManager manager)
public void registerLoadEventHandler(IEventHandler<CrTScriptLoadEvent> handler)
public void postLoadEvent(CrTScriptLoadEvent event)