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); }
private CoreClassifier getPrimitiveType(CoreModelElement element) { return((element is CoreClassifierImpl) ? (CoreClassifier)OclTypesDefinition.getEnvironment().lookup(element.getName()) : null); }
public static void setUp(TestContext testContext) { OclTypesDefinition.getEnvironment(); }