Class EgxModuleParallelGenerationRuleAtoms
- 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
-
- org.eclipse.epsilon.egl.concurrent.EgxModuleParallelGenerationRuleAtoms
-
- All Implemented Interfaces:
IModule
,ModuleElement
,IEgxModule
,IEolModule
,IErlModule
,IErlModuleAtomBatches<GenerationRuleAtom>
public class EgxModuleParallelGenerationRuleAtoms extends EgxModuleParallel implements IErlModuleAtomBatches<GenerationRuleAtom>
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description protected List<GenerationRuleAtom>
jobsCache
-
Fields inherited from class org.eclipse.epsilon.egl.concurrent.EgxModuleParallel
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
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 EgxModuleParallelGenerationRuleAtoms()
EgxModuleParallelGenerationRuleAtoms(Path outputRoot)
EgxModuleParallelGenerationRuleAtoms(IEgxContextParallel context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends GenerationRuleAtom>
getAllJobs()
The atomic units of work.protected List<GenerationRuleAtom>
getAllJobsImpl()
protected Object
processRules()
Main rule processing logic.-
Methods inherited from class org.eclipse.epsilon.egl.concurrent.EgxModuleParallel
configure, getConfigurationProperties, getContext, getImportConfiguration
-
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, execute, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDeclarations, 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, getData, 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
configure, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModule
getDeclaredPost, getDeclaredPre, getPost, getPre
-
Methods inherited from interface org.eclipse.epsilon.erl.IErlModuleAtomBatches
getBatchJobs
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parse
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
jobsCache
protected List<GenerationRuleAtom> jobsCache
-
-
Constructor Detail
-
EgxModuleParallelGenerationRuleAtoms
public EgxModuleParallelGenerationRuleAtoms()
-
EgxModuleParallelGenerationRuleAtoms
public EgxModuleParallelGenerationRuleAtoms(Path outputRoot) throws EglRuntimeException
- Throws:
EglRuntimeException
-
EgxModuleParallelGenerationRuleAtoms
public EgxModuleParallelGenerationRuleAtoms(IEgxContextParallel context)
-
-
Method Detail
-
getAllJobsImpl
protected List<GenerationRuleAtom> getAllJobsImpl() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getAllJobs
public final List<? extends GenerationRuleAtom> getAllJobs() throws EolRuntimeException
Description copied from interface:IErlModuleAtomBatches
The atomic units of work.- Specified by:
getAllJobs
in interfaceIErlModuleAtomBatches<GenerationRuleAtom>
- Returns:
- A deterministically ordered List of executable rule-element pairs.
- Throws:
EolRuntimeException
- If any problems are encountered when retrieving the jobs.
-
processRules
protected Object processRules() throws EolRuntimeException
Description copied from class:ErlModule
Main rule processing logic. Non-abstract for compatibility.- Specified by:
processRules
in classEgxModuleParallel
- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
-
-