Class EclModule

  • All Implemented Interfaces:
    org.eclipse.epsilon.common.module.IModule, org.eclipse.epsilon.common.module.ModuleElement, IEclModule, org.eclipse.epsilon.eol.IEolModule, IErlModule
    Direct Known Subclasses:
    EclModuleParallel

    public class EclModule
    extends ErlModule
    implements IEclModule
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected NamedRuleList<MatchRule> declaredMatchRules  
      protected NamedRuleList<MatchRule> matchRules  
      • 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
      • Fields inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement

        children, comments, module, region, uri
    • Constructor Summary

      Constructors 
      Constructor Description
      EclModule()  
      EclModule​(IEclContext context)
      Instantiates the module with the specified execution context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.epsilon.common.module.ModuleElement adapt​(org.eclipse.epsilon.common.parse.AST cst, org.eclipse.epsilon.common.module.ModuleElement parentAst)  
      void build​(org.eclipse.epsilon.common.parse.AST cst, org.eclipse.epsilon.common.module.IModule module)  
      protected org.antlr.runtime.Lexer createLexer​(org.antlr.runtime.ANTLRInputStream inputStream)  
      org.eclipse.epsilon.common.parse.EpsilonParser createParser​(org.antlr.runtime.TokenStream tokenStream)  
      MatchTrace execute()  
      IEclContext getContext()  
      List<MatchRule> getDeclaredMatchRules()  
      HashMap<String,​Class<?>> getImportConfiguration()  
      String getMainRule()  
      List<MatchRule> getMatchRules()  
      protected void matchAllRules​(boolean greedy)  
      void matchModels()  
      protected void prepareContext()  
      protected MatchTrace processRules()  
      • Methods inherited from class org.eclipse.epsilon.eol.EolModule

        checkImports, clearCache, compile, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, setContext, setMain, setParentModule, toString
      • Methods inherited from class org.eclipse.epsilon.eol.AbstractModule

        assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parse
      • 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 interface org.eclipse.epsilon.eol.IEolModule

        configure, getCompilationContext, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
      • Methods inherited from interface org.eclipse.epsilon.common.module.IModule

        compile, createAst, getSourceUri, parse, parse, 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

      • EclModule

        public EclModule()
      • EclModule

        public EclModule​(IEclContext context)
        Instantiates the module with the specified execution context.
        Parameters:
        context - The execution context
        Since:
        1.6
    • Method Detail

      • createLexer

        protected org.antlr.runtime.Lexer createLexer​(org.antlr.runtime.ANTLRInputStream inputStream)
        Overrides:
        createLexer in class ErlModule
      • createParser

        public org.eclipse.epsilon.common.parse.EpsilonParser createParser​(org.antlr.runtime.TokenStream tokenStream)
        Overrides:
        createParser in class ErlModule
      • build

        public void build​(org.eclipse.epsilon.common.parse.AST cst,
                          org.eclipse.epsilon.common.module.IModule module)
        Specified by:
        build in interface org.eclipse.epsilon.common.module.ModuleElement
        Overrides:
        build in class ErlModule
      • adapt

        public org.eclipse.epsilon.common.module.ModuleElement adapt​(org.eclipse.epsilon.common.parse.AST cst,
                                                                     org.eclipse.epsilon.common.module.ModuleElement parentAst)
        Overrides:
        adapt in class ErlModule
      • prepareContext

        protected void prepareContext()
                               throws org.eclipse.epsilon.eol.exceptions.EolRuntimeException
        Overrides:
        prepareContext in class org.eclipse.epsilon.eol.EolModule
        Throws:
        org.eclipse.epsilon.eol.exceptions.EolRuntimeException
      • execute

        public MatchTrace execute()
                           throws org.eclipse.epsilon.eol.exceptions.EolRuntimeException
        Specified by:
        execute in interface IEclModule
        Specified by:
        execute in interface org.eclipse.epsilon.eol.IEolModule
        Overrides:
        execute in class org.eclipse.epsilon.eol.EolModule
        Throws:
        org.eclipse.epsilon.eol.exceptions.EolRuntimeException
      • processRules

        protected MatchTrace processRules()
                                   throws org.eclipse.epsilon.eol.exceptions.EolRuntimeException
        Overrides:
        processRules in class ErlModule
        Throws:
        org.eclipse.epsilon.eol.exceptions.EolRuntimeException
      • matchModels

        public void matchModels()
                         throws org.eclipse.epsilon.eol.exceptions.EolRuntimeException
        Specified by:
        matchModels in interface IEclModule
        Throws:
        org.eclipse.epsilon.eol.exceptions.EolRuntimeException
      • matchAllRules

        protected void matchAllRules​(boolean greedy)
                              throws org.eclipse.epsilon.eol.exceptions.EolRuntimeException
        Throws:
        org.eclipse.epsilon.eol.exceptions.EolRuntimeException