Class ConceptDeclarationScanner


  • public class ConceptDeclarationScanner
    extends Object
    Scanner of a model with ConceptDeclarationsto find cross-model dependencies. Much like ModelDependencyScanner albeit narrow tailored for structure models and extends relation between Language modules.
    • Constructor Detail

      • ConceptDeclarationScanner

        public ConceptDeclarationScanner()
    • Method Detail

      • omitLangCore

        public ConceptDeclarationScanner omitLangCore()
        As long as languages implicitly extend j.m.lang.core, any ConceptDeclaration implies import of j.m.lang.core.structure.BaseConcept. By default, this scanner gives all cross-model dependencies, including one of BaseConcept. However, generally, there's little use for explicit lang.core import and we can safely omit it.
        Returns:
        this for convenience
      • getDependencyModels

        public Set<SModel> getDependencyModels()
      • getDependencyModules

        public Set<SModule> getDependencyModules()
      • getExternalConcepts

        public Set<SNode> getExternalConcepts()
      • getExternalInterfaces

        public Set<SNode> getExternalInterfaces()