Package org.eclipse.epsilon.egl
Class EglTemplateFactoryModuleAdapter
- java.lang.Object
-
- org.eclipse.epsilon.egl.EglTemplateFactoryModuleAdapter
-
- All Implemented Interfaces:
IModule,ModuleElement,IEglModule,IEolModule
public class EglTemplateFactoryModuleAdapter extends java.lang.Object implements IEglModule
-
-
Constructor Summary
Constructors Constructor Description EglTemplateFactoryModuleAdapter()EglTemplateFactoryModuleAdapter(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
-
EglTemplateFactoryModuleAdapter
public EglTemplateFactoryModuleAdapter()
-
EglTemplateFactoryModuleAdapter
public EglTemplateFactoryModuleAdapter(EglTemplateFactory factory)
-
-
Method Detail
-
getTemplateFactory
public EglTemplateFactory getTemplateFactory()
- Specified by:
getTemplateFactoryin interfaceIEglModule
-
setTemplateFactory
public void setTemplateFactory(EglTemplateFactory templateFactory)
- Specified by:
setTemplateFactoryin interfaceIEglModule
-
getFactory
@Deprecated public EglTemplateFactory getFactory()
Deprecated.
-
setFactory
@Deprecated public void setFactory(EglTemplateFactory factory)
Deprecated.Use#setTemplateFactory()
-
getCurrentTemplate
public EglTemplate getCurrentTemplate()
- Specified by:
getCurrentTemplatein interfaceIEglModule
-
parse
public boolean parse(java.io.File file) throws java.lang.Exception
-
parse
public boolean parse(java.net.URI uri) throws java.lang.Exception
-
parse
public boolean parse(java.lang.String code) throws java.lang.Exception
-
parse
public boolean parse(java.lang.String code, java.io.File file) throws java.lang.Exception- Specified by:
parsein interfaceIEolModule- Specified by:
parsein interfaceIModule- Throws:
java.lang.Exception
-
parse
public boolean parse(java.lang.String code, java.net.URI uri) throws java.lang.Exception- Specified by:
parsein interfaceIEglModule- Throws:
java.lang.Exception
-
getParseProblems
public java.util.List<ParseProblem> getParseProblems()
- Specified by:
getParseProblemsin interfaceIEolModule- Specified by:
getParseProblemsin interfaceIModule
-
execute
public java.lang.Object execute() throws EolRuntimeException- Specified by:
executein interfaceIEolModule- Throws:
EolRuntimeException
-
compile
public java.util.List<ModuleMarker> compile()
-
reset
public void reset()
- Specified by:
resetin interfaceIEglModule
-
getContext
public IEglContext getContext()
- Specified by:
getContextin interfaceIEglModule- Specified by:
getContextin interfaceIEolModule
-
getDeclaredModelDeclarations
public java.util.List<ModelDeclaration> getDeclaredModelDeclarations()
- Specified by:
getDeclaredModelDeclarationsin interfaceIEolModule
-
getDeclaredOperations
public OperationList getDeclaredOperations()
- Specified by:
getDeclaredOperationsin interfaceIEolModule
-
getImports
public java.util.List<Import> getImports()
- Specified by:
getImportsin interfaceIEolModule
-
getModelDelcarations
public java.util.Set<ModelDeclaration> getModelDelcarations()
- Specified by:
getModelDelcarationsin interfaceIEolModule
-
getOperations
public OperationList getOperations()
- Specified by:
getOperationsin interfaceIEolModule
-
setDefaultFormatters
public void setDefaultFormatters(java.util.Collection<Formatter> defaultFormatters)
- Specified by:
setDefaultFormattersin interfaceIEglModule
-
getParentModule
public IEolModule getParentModule()
- Specified by:
getParentModulein interfaceIEolModule
-
setParentModule
public void setParentModule(IEolModule parent)
- Specified by:
setParentModulein interfaceIEolModule
-
getSourceUri
public java.net.URI getSourceUri()
- Specified by:
getSourceUriin interfaceIModule
-
setContext
public void setContext(IEolContext context)
- Specified by:
setContextin interfaceIEolModule
-
getCompilationContext
public IEolCompilationContext getCompilationContext()
- Specified by:
getCompilationContextin interfaceIEolModule
-
createAst
public ModuleElement createAst(AST cst, ModuleElement parentAst)
-
getFile
public java.io.File getFile()
- Specified by:
getFilein interfaceModuleElement
-
getUri
public java.net.URI getUri()
- Specified by:
getUriin interfaceModuleElement
-
setUri
public void setUri(java.net.URI uri)
- Specified by:
setUriin interfaceModuleElement
-
setModule
public void setModule(IModule module)
- Specified by:
setModulein interfaceModuleElement
-
build
public void build(AST cst, IModule module)
- Specified by:
buildin interfaceModuleElement
-
getRegion
public Region getRegion()
- Specified by:
getRegionin interfaceModuleElement
-
setRegion
public void setRegion(Region region)
- Specified by:
setRegionin interfaceModuleElement
-
getParent
public ModuleElement getParent()
- Specified by:
getParentin interfaceModuleElement
-
setParent
public void setParent(ModuleElement moduleElement)
- Specified by:
setParentin interfaceModuleElement
-
getChildren
public java.util.List<ModuleElement> getChildren()
- Specified by:
getChildrenin interfaceModuleElement
-
getModule
public IModule getModule()
- Specified by:
getModulein interfaceModuleElement
-
getMain
public StatementBlock getMain()
- Specified by:
getMainin interfaceIEolModule
-
getPostOperationStatements
public java.util.List<Statement> getPostOperationStatements()
- Specified by:
getPostOperationStatementsin interfaceIEolModule
-
-