示例#1
0
        public override Environment getEnvironmentWithoutParents()
        {
            if (getIsDirty() || this.environmentWithoutParents == null)
            {
                try {
                    this.environmentWithoutParents = EnvironmentFactoryManager.getInstance(this.getOclPackage()).getEnvironmentInstance();
                    this.environmentWithoutParents = this.environmentWithoutParents.addEnvironment(OclTypesDefinition.getEnvironment());

                    populateEnvironment(this.environmentWithoutParents);
                    isDirty = false;
                } catch (NameClashException e) {
                    Console.WriteLine(e.StackTrace);
                }
            }

            return(this.environmentWithoutParents);
        }
示例#2
0
 private CoreClassifier getPrimitiveType(CoreModelElement element)
 {
     return((element is CoreClassifierImpl)
                 ? (CoreClassifier)OclTypesDefinition.getEnvironment().lookup(element.getName())
                 : null);
 }
示例#3
0
 public static void setUp(TestContext testContext)
 {
     OclTypesDefinition.getEnvironment();
 }