Package org.eclipse.epsilon.egl
Class EglModule
- java.lang.Object
-
- org.eclipse.epsilon.egl.EglModule
-
- All Implemented Interfaces:
IModule
,ModuleElement
,IEglModule
,IEolModule
- Direct Known Subclasses:
EglTemplateFactoryModuleAdapter
public class EglModule extends Object implements IEglModule
-
-
Constructor Summary
Constructors Constructor Description EglModule()
EglModule(EglTemplateFactory factory)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, getConfigurationProperties
-
-
-
-
Constructor Detail
-
EglModule
public EglModule()
-
EglModule
public EglModule(EglTemplateFactory factory)
-
-
Method Detail
-
getTemplateFactory
public EglTemplateFactory getTemplateFactory()
- Specified by:
getTemplateFactory
in interfaceIEglModule
-
setTemplateFactory
public void setTemplateFactory(EglTemplateFactory templateFactory)
- Specified by:
setTemplateFactory
in interfaceIEglModule
-
getFactory
@Deprecated public EglTemplateFactory getFactory()
Deprecated.
-
setFactory
@Deprecated public void setFactory(EglTemplateFactory factory)
Deprecated.Use#setTemplateFactory()
-
getCurrentTemplate
public EglTemplate getCurrentTemplate()
- Specified by:
getCurrentTemplate
in interfaceIEglModule
-
parse
public boolean parse(String code, File file) throws Exception
- Specified by:
parse
in interfaceIEolModule
- Specified by:
parse
in interfaceIModule
- Throws:
Exception
-
parse
public boolean parse(String code, URI uri) throws Exception
- Specified by:
parse
in interfaceIEglModule
- Throws:
Exception
-
getParseProblems
public List<ParseProblem> getParseProblems()
- Specified by:
getParseProblems
in interfaceIEolModule
- Specified by:
getParseProblems
in interfaceIModule
-
execute
public Object execute() throws EolRuntimeException
- Specified by:
execute
in interfaceIEolModule
- Throws:
EolRuntimeException
-
reset
public void reset()
- Specified by:
reset
in interfaceIEglModule
-
getContext
public IEglContext getContext()
- Specified by:
getContext
in interfaceIEglModule
- Specified by:
getContext
in interfaceIEolModule
-
getDeclaredModelDeclarations
public List<ModelDeclaration> getDeclaredModelDeclarations()
- Specified by:
getDeclaredModelDeclarations
in interfaceIEolModule
-
getDeclaredOperations
public OperationList getDeclaredOperations()
- Specified by:
getDeclaredOperations
in interfaceIEolModule
-
getImports
public List<Import> getImports()
- Specified by:
getImports
in interfaceIEolModule
-
getModelDeclarations
public Set<ModelDeclaration> getModelDeclarations()
- Specified by:
getModelDeclarations
in interfaceIEolModule
-
getOperations
public OperationList getOperations()
- Specified by:
getOperations
in interfaceIEolModule
-
setDefaultFormatters
public void setDefaultFormatters(Collection<Formatter> defaultFormatters)
- Specified by:
setDefaultFormatters
in interfaceIEglModule
-
getParentModule
public IEolModule getParentModule()
- Specified by:
getParentModule
in interfaceIEolModule
-
setParentModule
public void setParentModule(IEolModule parent)
- Specified by:
setParentModule
in interfaceIEolModule
-
getSourceUri
public URI getSourceUri()
- Specified by:
getSourceUri
in interfaceIModule
-
setContext
public void setContext(IEolContext context)
- Specified by:
setContext
in interfaceIEolModule
-
createAst
public ModuleElement createAst(AST cst, ModuleElement parentAst)
-
getFile
public File getFile()
- Specified by:
getFile
in interfaceModuleElement
-
getUri
public URI getUri()
- Specified by:
getUri
in interfaceModuleElement
-
setUri
public void setUri(URI uri)
- Specified by:
setUri
in interfaceModuleElement
-
setModule
public void setModule(IModule module)
- Specified by:
setModule
in interfaceModuleElement
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
-
getRegion
public Region getRegion()
- Specified by:
getRegion
in interfaceModuleElement
-
setRegion
public void setRegion(Region region)
- Specified by:
setRegion
in interfaceModuleElement
-
getParent
public ModuleElement getParent()
- Specified by:
getParent
in interfaceModuleElement
-
setParent
public void setParent(ModuleElement moduleElement)
- Specified by:
setParent
in interfaceModuleElement
-
getChildren
public List<ModuleElement> getChildren()
- Specified by:
getChildren
in interfaceModuleElement
-
getModule
public IModule getModule()
- Specified by:
getModule
in interfaceModuleElement
-
getMain
public StatementBlock getMain()
- Specified by:
getMain
in interfaceIEolModule
-
getPostOperationStatements
public List<Statement> getPostOperationStatements()
- Specified by:
getPostOperationStatements
in interfaceIEolModule
-
getComments
public List<Comment> getComments()
- Specified by:
getComments
in interfaceModuleElement
-
getData
public Map<String,Object> getData()
- Specified by:
getData
in interfaceModuleElement
-
-