Package org.eclipse.epsilon.egl.internal
Class EglModule
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.AbstractModule
org.eclipse.epsilon.eol.EolModule
org.eclipse.epsilon.egl.internal.EglModule
- All Implemented Interfaces:
IModule
,ModuleElement
,IEglModule
,IEolModule
Used internally by
EglTemplateFactory
and EglTemplate
to parse and execute EGL, by transforming to EOL.
Most extensions should subclass EglTemplateFactory
and/or
EglTemplate
rather than this class.- Author:
- lrose, Sina Madani
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionadapt
(AST cst, ModuleElement parentAst) void
Creates an object that implements debugging (i.e.execute
(EglTemplate template, Formatter postprocessor) protected boolean
hasAnnotation
(AST ast, String name) boolean
boolean
protected boolean
preprocess
(AST ast) Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, createLexer, createParser, execute, executeImpl, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getImportsByExtension, getMain, getMainRule, getModelDeclarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setImportManager, setMain, setParentModule, toString
Methods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getSourceFile, getSourceUri, invokeMainRule
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, 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.eol.IEolModule
configure, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getPostOperationStatements, setContext, setImportManager, setParentModule
-
Field Details
-
eglParser
-
-
Constructor Details
-
EglModule
public EglModule() -
EglModule
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classEolModule
-
parse
- Specified by:
parse
in interfaceIEolModule
- Specified by:
parse
in interfaceIModule
- Overrides:
parse
in classAbstractModule
- Throws:
Exception
-
parse
- Specified by:
parse
in interfaceIModule
- Overrides:
parse
in classAbstractModule
- Throws:
Exception
-
adapt
-
getMarkers
- Specified by:
getMarkers
in interfaceIEglModule
-
execute
- Specified by:
execute
in interfaceIEglModule
- Throws:
EglRuntimeException
-
getParseProblems
- Specified by:
getParseProblems
in interfaceIEolModule
- Specified by:
getParseProblems
in interfaceIModule
- Overrides:
getParseProblems
in classAbstractModule
-
getChildren
- Specified by:
getChildren
in interfaceModuleElement
- Overrides:
getChildren
in classAbstractModuleElement
-
getImportConfiguration
- Overrides:
getImportConfiguration
in classEolModule
-
getContext
- Specified by:
getContext
in interfaceIEglModule
- Specified by:
getContext
in interfaceIEolModule
- Overrides:
getContext
in classEolModule
-
hasAnnotation
-
preprocess
-
createDebugger
Description copied from interface:IEolModule
Creates an object that implements debugging (i.e. breakpoints and stepping) for this module.- Specified by:
createDebugger
in interfaceIEolModule
- Overrides:
createDebugger
in classEolModule
-