Class EgxModuleParallel
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.AbstractModule
-
- org.eclipse.epsilon.eol.EolModule
-
- org.eclipse.epsilon.erl.ErlModule
-
- org.eclipse.epsilon.egl.EgxModule
-
- org.eclipse.epsilon.egl.concurrent.EgxModuleParallel
-
- All Implemented Interfaces:
IModule
,ModuleElement
,IEgxModule
,IEolModule
,IErlModule
- Direct Known Subclasses:
EgxModuleParallelAnnotation
,EgxModuleParallelGenerationRuleAtoms
public abstract class EgxModuleParallel extends EgxModule
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Set<java.lang.String>
CONFIG_PROPERTIES
-
Fields inherited from class org.eclipse.epsilon.egl.EgxModule
declaredGenerationRules, generationRules
-
Fields inherited from class org.eclipse.epsilon.erl.ErlModule
declaredPost, declaredPre, post, pre
-
Fields inherited from class org.eclipse.epsilon.eol.EolModule
compilationContext, context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatements
-
Fields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri
-
-
Constructor Summary
Constructors Constructor Description EgxModuleParallel()
EgxModuleParallel(java.nio.file.Path outputRoot)
EgxModuleParallel(IEgxContextParallel context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
configure(java.util.Map<java.lang.String,?> properties)
WARNING: This method should only be called by the DT plugin for initialization purposes, as the context will be reset!java.util.Set<java.lang.String>
getConfigurationProperties()
Get the set of property names that should be retrieved from the ILaunchConfiguration in order to configure this module.IEgxContextParallel
getContext()
java.util.HashMap<java.lang.String,java.lang.Class<?>>
getImportConfiguration()
protected abstract java.lang.Object
processRules()
Main rule processing logic.-
Methods inherited from class org.eclipse.epsilon.egl.EgxModule
adapt, build, createGenerationRule, createLexer, createParser, getDeclaredGenerationRules, getGenerationRules, getMainRule, parse, parse, parse, setFileGeneratingTemplateFactory
-
Methods inherited from class org.eclipse.epsilon.erl.ErlModule
calculateSuperRules, execute, execute, executeImpl, getDeclaredPost, getDeclaredPre, getPost, getPre, postExecution, prepareExecution
-
Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, compile, execute, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setMain, setParentModule, toString
-
Methods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.egl.IEgxModule
getTemplateFactory, setTemplateFactory
-
Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
execute, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, setContext, setParentModule
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getDeclaredPost, getDeclaredPre, getPost, getPre
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
compile, createAst, getSourceUri, parse, parse, parse
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Constructor Detail
-
EgxModuleParallel
public EgxModuleParallel()
-
EgxModuleParallel
public EgxModuleParallel(java.nio.file.Path outputRoot) throws EglRuntimeException
- Throws:
EglRuntimeException
-
EgxModuleParallel
public EgxModuleParallel(IEgxContextParallel context)
-
-
Method Detail
-
processRules
protected abstract java.lang.Object processRules() throws EolRuntimeException
Description copied from class:ErlModule
Main rule processing logic. Non-abstract for compatibility.- Overrides:
processRules
in classEgxModule
- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
-
getContext
public IEgxContextParallel getContext()
- Specified by:
getContext
in interfaceIEgxModule
- Specified by:
getContext
in interfaceIEolModule
- Specified by:
getContext
in interfaceIErlModule
- Overrides:
getContext
in classEgxModule
-
getImportConfiguration
public java.util.HashMap<java.lang.String,java.lang.Class<?>> getImportConfiguration()
- Overrides:
getImportConfiguration
in classEgxModule
-
configure
public void configure(java.util.Map<java.lang.String,?> properties) throws java.lang.IllegalArgumentException
WARNING: This method should only be called by the DT plugin for initialization purposes, as the context will be reset!- Parameters:
properties
- a map of property:value- Throws:
java.lang.IllegalArgumentException
-
getConfigurationProperties
public java.util.Set<java.lang.String> getConfigurationProperties()
Description copied from interface:IEolModule
Get the set of property names that should be retrieved from the ILaunchConfiguration in order to configure this module.- Returns:
-
-