Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2016-08-03 10:16:36 +0000
committerEd Willink2016-10-22 14:15:38 +0000
commit80cd60130e67ae7a5da3c571d0e7ea7bd0869d18 (patch)
tree31c6c3e57ba52d270a364c0d662f5b7a2442177b
parentdca3730b2927835b193d7cf2346849ac3352b5bb (diff)
downloadorg.eclipse.qvtd-80cd60130e67ae7a5da3c571d0e7ea7bd0869d18.tar.gz
org.eclipse.qvtd-80cd60130e67ae7a5da3c571d0e7ea7bd0869d18.tar.xz
org.eclipse.qvtd-80cd60130e67ae7a5da3c571d0e7ea7bd0869d18.zip
[cs2as] - Adjusting MiniOCL to DSTL improvements
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/lookup/util/MiniOCLLookupSolver.java18
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLExportedPackageLookupVisitor.java67
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedNamedElementLookupVisitor.java57
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedOperationLookupVisitor.java50
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPackageLookupVisitor.java18
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPropertyLookupVisitor.java50
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedVariableLookupVisitor.java35
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/MiniOCLCSParser.java6
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/PartialMiniOCLCSContentAssistParser.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCS.g26
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCSParser.java64
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/ui/internal/XtextActivator.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/AbstractMiniOCLCSUiModule.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/MiniOCLCSExecutableExtensionFactory.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/contentassist/AbstractMiniOCLCSProposalProvider.java7
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.cs2as92
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl512
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.ecore4
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel7
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/AbstractMiniOCLCSRuntimeModule.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCS.xtextbinbin4167 -> 4178 bytes
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCSStandaloneSetupGenerated.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanLiteralExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CSTrace.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CallExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ClassCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ConstraintsDefCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/IntLiteralExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/InvariantCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LiteralExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LogicExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsFactory.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsPackage.java48
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/NameExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/OperationCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PackageCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ParameterCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathElementCS.java24
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathNameCS.java19
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PrimaryExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PropertyCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RootCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RoundedBracketClauseCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/StringLiteralExpCS.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanLiteralExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CSTraceImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CallExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ClassCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ConstraintsDefCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/IntLiteralExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/InvariantCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LiteralExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LogicExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsFactoryImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsPackageImpl.java20
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/NameExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/OperationCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PackageCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ParameterCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathElementCSImpl.java48
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathNameCSImpl.java39
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PrimaryExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PropertyCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RootCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RoundedBracketClauseCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/StringLiteralExpCSImpl.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsAdapterFactory.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsSwitch.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/_MiniOCLCS2AS_qvtp_qvtcas/MiniOCLCS2AS_qvtp_qvtcas.java3208
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSAntlrTokenFileProvider.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSParser.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCS.g18
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCSParser.java56
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/scoping/AbstractMiniOCLCSScopeProvider.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSemanticSequencer.java12
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSyntacticSequencer.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/services/MiniOCLCSGrammarAccess.java34
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/validation/AbstractMiniOCLCSValidator.java2
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/MiniOCLCS.xtext4
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/generator/MiniOCLCSGenerator.xtend4
-rw-r--r--tests/org.eclipse.qvtd.doc.minioclcs.xtext.tests/src-gen/org/eclipse/qvtd/doc/tests/MiniOCLCSInjectorProvider.java23
85 files changed, 2477 insertions, 2203 deletions
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/lookup/util/MiniOCLLookupSolver.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/lookup/util/MiniOCLLookupSolver.java
index 209e41842..91934d12e 100644
--- a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/lookup/util/MiniOCLLookupSolver.java
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/lookup/util/MiniOCLLookupSolver.java
@@ -14,12 +14,14 @@ package org.eclipse.qvtd.doc.miniocl.lookup.util;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.evaluation.Executor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLExportedOperationLookupVisitor;
+import org.eclipse.qvtd.doc.miniocl.util.MiniOCLExportedPackageLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLExportedPropertyLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLQualifiedClassLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLQualifiedOperationLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLQualifiedPackageLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLQualifiedPropertyLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLUnqualifiedClassLookupVisitor;
+import org.eclipse.qvtd.doc.miniocl.util.MiniOCLUnqualifiedNamedElementLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLUnqualifiedOperationLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLUnqualifiedPackageLookupVisitor;
import org.eclipse.qvtd.doc.miniocl.util.MiniOCLUnqualifiedPropertyLookupVisitor;
@@ -85,6 +87,14 @@ public class MiniOCLLookupSolver {
(_lookupEnv.getNamedElementsByKind(org.eclipse.qvtd.doc.miniocl.Package.class));
}
+ public MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Package> _lookupExportedPackage(org.eclipse.qvtd.doc.miniocl.Root context, java.lang.Object importer, java.lang.String pName) {
+ MiniOCLSingleResultLookupEnvironment _lookupEnv = new MiniOCLSingleResultLookupEnvironment(executor, org.eclipse.qvtd.doc.miniocl.MiniOCLPackage.Literals.PACKAGE,pName);
+ MiniOCLExportedPackageLookupVisitor _lookupVisitor = new MiniOCLExportedPackageLookupVisitor(_lookupEnv, importer);
+ context.accept(_lookupVisitor);
+ return new MiniOCLLookupResultImpl<org.eclipse.qvtd.doc.miniocl.Package>
+ (_lookupEnv.getNamedElementsByKind(org.eclipse.qvtd.doc.miniocl.Package.class));
+ }
+
public MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupUnqualifiedClass(org.eclipse.qvtd.doc.miniocl.util.Visitable context, java.lang.String cName) {
MiniOCLSingleResultLookupEnvironment _lookupEnv = new MiniOCLSingleResultLookupEnvironment(executor, org.eclipse.qvtd.doc.miniocl.MiniOCLPackage.Literals.CLASS,cName);
MiniOCLUnqualifiedClassLookupVisitor _lookupVisitor = new MiniOCLUnqualifiedClassLookupVisitor(_lookupEnv);
@@ -93,6 +103,14 @@ public class MiniOCLLookupSolver {
(_lookupEnv.getNamedElementsByKind(org.eclipse.qvtd.doc.miniocl.Class.class));
}
+ public MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.NamedElement> _lookupUnqualifiedNamedElement(org.eclipse.qvtd.doc.miniocl.util.Visitable context, java.lang.String nName) {
+ MiniOCLSingleResultLookupEnvironment _lookupEnv = new MiniOCLSingleResultLookupEnvironment(executor, org.eclipse.qvtd.doc.miniocl.MiniOCLPackage.Literals.NAMED_ELEMENT,nName);
+ MiniOCLUnqualifiedNamedElementLookupVisitor _lookupVisitor = new MiniOCLUnqualifiedNamedElementLookupVisitor(_lookupEnv);
+ context.accept(_lookupVisitor);
+ return new MiniOCLLookupResultImpl<org.eclipse.qvtd.doc.miniocl.NamedElement>
+ (_lookupEnv.getNamedElementsByKind(org.eclipse.qvtd.doc.miniocl.NamedElement.class));
+ }
+
public MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Operation> _lookupUnqualifiedOperation(org.eclipse.qvtd.doc.miniocl.util.Visitable context, java.lang.String oName, java.util.List<org.eclipse.qvtd.doc.miniocl.OCLExpression> args) {
OperationFilter filter = new OperationFilter(executor, args);
MiniOCLSingleResultLookupEnvironment _lookupEnv = new MiniOCLSingleResultLookupEnvironment(executor, org.eclipse.qvtd.doc.miniocl.MiniOCLPackage.Literals.OPERATION,oName,filter);
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLExportedPackageLookupVisitor.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLExportedPackageLookupVisitor.java
new file mode 100644
index 000000000..acc771bed
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLExportedPackageLookupVisitor.java
@@ -0,0 +1,67 @@
+/*******************************************************************************
+ * «codeGenHelper.getCopyright(' * ')»
+ *
+ * This code is 100% auto-generated
+ * using: org.eclipse.ocl.examples.autogen.lookup.LookupExportedVisitorCodeGenerator
+ *
+ * Do not edit it.
+ ********************************************************************************/
+
+package org.eclipse.qvtd.doc.miniocl.util;
+
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
+import org.eclipse.ocl.pivot.ids.IdManager;
+import org.eclipse.ocl.pivot.ids.TypeId;
+import org.eclipse.ocl.pivot.utilities.ClassUtil;
+import org.eclipse.qvtd.doc.miniocl.MiniOCLPackage;
+import org.eclipse.qvtd.doc.miniocl.Package;
+import org.eclipse.qvtd.doc.miniocl.lookup.EnvironmentPackage;
+import org.eclipse.qvtd.doc.miniocl.lookup.LookupEnvironment;
+
+public class MiniOCLExportedPackageLookupVisitor
+ extends AbstractMiniOCLCommonLookupVisitor
+{
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull RootPackageId PACKid_$metamodel$ = IdManager.getRootPackageId("$metamodel$");
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull NsURIPackageId PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCL_s_1_0 = IdManager.getNsURIPackageId("http://www.eclipse.org/qvtd/doc/MiniOCL/1.0", null, MiniOCLPackage.eINSTANCE);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull NsURIPackageId PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCL_s_Lookup_s_1_0 = IdManager.getNsURIPackageId("http://www.eclipse.org/qvtd/doc/MiniOCL/Lookup/1.0", null, EnvironmentPackage.eINSTANCE);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull RootPackageId PACKid_org_eclipse_ocl_pivot_evaluation = IdManager.getRootPackageId("org.eclipse.ocl.pivot.evaluation");
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull RootPackageId PACKid_org_eclipse_ocl_pivot_ids = IdManager.getRootPackageId("org.eclipse.ocl.pivot.ids");
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Executor = PACKid_org_eclipse_ocl_pivot_evaluation.getClassId("Executor", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_IdResolver = PACKid_org_eclipse_ocl_pivot_ids.getClassId("IdResolver", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_LookupEnvironment = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCL_s_Lookup_s_1_0.getClassId("LookupEnvironment", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_OclElement = PACKid_$metamodel$.getClassId("OclElement", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Package = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCL_s_1_0.getClassId("Package", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Root = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCL_s_1_0.getClassId("Root", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull CollectionTypeId ORD_CLSSid_Package = TypeId.ORDERED_SET.getSpecializedId(CLSSid_Package);
+
+ protected final /*@Thrown*/ org.eclipse.ocl.pivot.evaluation.@org.eclipse.jdt.annotation.NonNull Executor executor;
+ protected final /*@Thrown*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver;
+ protected final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.NonNull Object importer;
+
+ public MiniOCLExportedPackageLookupVisitor(@NonNull LookupEnvironment context, @NonNull Object importer) {
+ super(context);
+ this.executor = ClassUtil.nonNull(context.getExecutor());
+ this.idResolver = executor.getIdResolver();
+ this.importer = importer;
+ }
+
+ @Override
+ protected @Nullable LookupEnvironment doVisiting(@NonNull Visitable visitable) {
+ return context;
+ }
+
+ /**
+ * visitRoot(element : miniocl::Root[1]) : lookup::LookupEnvironment[?]
+ *
+ * _'null' : lookup::LookupEnvironment[1]
+ */
+ @Override
+ public /*@NonInvalid*/ LookupEnvironment visitRoot(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Root element) {
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Package> ownedPackages = element.getOwnedPackages();
+ @SuppressWarnings("null")
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment addElements = context.addElements(ownedPackages);
+ return addElements;
+ }
+}
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedNamedElementLookupVisitor.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedNamedElementLookupVisitor.java
new file mode 100644
index 000000000..61dfa0e74
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedNamedElementLookupVisitor.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * «codeGenHelper.getCopyright(' * ')»
+ *
+ * This code is 100% auto-generated
+ * using: org.eclipse.ocl.examples.autogen.lookup.LookupUnqualifiedCodeGenerator
+ *
+ * Do not edit it.
+ ********************************************************************************/
+
+package org.eclipse.qvtd.doc.miniocl.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
+import org.eclipse.ocl.pivot.ids.IdManager;
+import org.eclipse.ocl.pivot.utilities.ClassUtil;
+import org.eclipse.qvtd.doc.miniocl.lookup.LookupEnvironment;
+
+public class MiniOCLUnqualifiedNamedElementLookupVisitor
+ extends AbstractMiniOCLCommonLookupVisitor
+{
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull RootPackageId PACKid_$metamodel$ = IdManager.getRootPackageId("$metamodel$");
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull RootPackageId PACKid_org_eclipse_ocl_pivot_evaluation = IdManager.getRootPackageId("org.eclipse.ocl.pivot.evaluation");
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull RootPackageId PACKid_org_eclipse_ocl_pivot_ids = IdManager.getRootPackageId("org.eclipse.ocl.pivot.ids");
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Executor = PACKid_org_eclipse_ocl_pivot_evaluation.getClassId("Executor", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_IdResolver = PACKid_org_eclipse_ocl_pivot_ids.getClassId("IdResolver", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_OclElement = PACKid_$metamodel$.getClassId("OclElement", 0);
+
+ protected final /*@Thrown*/ org.eclipse.ocl.pivot.evaluation.@org.eclipse.jdt.annotation.NonNull Executor executor;
+ protected final /*@Thrown*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver;
+ protected /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object child;
+
+ public MiniOCLUnqualifiedNamedElementLookupVisitor(@NonNull LookupEnvironment context) {
+ super(context);
+ this.executor = ClassUtil.nonNull(context.getExecutor());
+ this.idResolver = executor.getIdResolver();
+ }
+
+ @Override
+ protected @Nullable LookupEnvironment doVisiting(@NonNull Visitable visitable) {
+ return parentEnv((EObject)visitable);
+ }
+
+ /**
+ * Continue the search for matches in the parent of element.
+ */
+ protected @Nullable LookupEnvironment parentEnv(@NonNull EObject element) {
+ EObject parent = element.eContainer();
+ if (parent instanceof Visitable) {
+ this.child = element;
+ return ((Visitable)parent).accept(this);
+ }
+ else {
+ return context;
+ }
+ }
+}
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedOperationLookupVisitor.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedOperationLookupVisitor.java
index 98aaacbf1..a3cb2f869 100644
--- a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedOperationLookupVisitor.java
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedOperationLookupVisitor.java
@@ -91,6 +91,30 @@ public class MiniOCLUnqualifiedOperationLookupVisitor
public /*@NonInvalid*/ LookupEnvironment visitClass(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class element) {
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull StandardLibrary standardLibrary = idResolver.getStandardLibrary();
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue oclAsSet = OclAnyOclAsSetOperation.INSTANCE.evaluate(executor, SET_CLSSid_Class, element);
+ final org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYPE_superClasses_0 = executor.getStaticTypeOf(oclAsSet);
+ final LibraryIteration.@org.eclipse.jdt.annotation.NonNull LibraryIterationExtension IMPL_superClasses_0 = (LibraryIteration.LibraryIterationExtension)TYPE_superClasses_0.lookupImplementation(standardLibrary, OCLstdlibTables.Operations._Set__closure);
+ final @NonNull Object ACC_superClasses_0 = IMPL_superClasses_0.createAccumulatorValue(executor, SET_CLSSid_Class, CLSSid_Class);
+ /**
+ * Implementation of the iterator body.
+ */
+ final @NonNull AbstractBinaryOperation BODY_superClasses_0 = new AbstractBinaryOperation()
+ {
+ /**
+ * _'null' : miniocl::Class[?]
+ */
+ @Override
+ public @Nullable Object evaluate(final @NonNull Executor executor, final @NonNull TypeId typeId, final @Nullable Object oclAsSet, final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object _1) {
+ final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class symbol_0 = (org.eclipse.qvtd.doc.miniocl.Class)_1;
+ if (symbol_0 == null) {
+ throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCL/1.0\'::Class::superClass\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class superClass = symbol_0.getSuperClass();
+ return superClass;
+ }
+ };
+ final @NonNull ExecutorSingleIterationManager MGR_superClasses_0 = new ExecutorSingleIterationManager(executor, SET_CLSSid_Class, BODY_superClasses_0, oclAsSet, ACC_superClasses_0);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue superClasses = ClassUtil.nonNullState((SetValue)IMPL_superClasses_0.evaluateIteration(MGR_superClasses_0));
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Operation> ownedOperations = element.getOwnedOperations();
@SuppressWarnings("null")
@@ -101,32 +125,8 @@ public class MiniOCLUnqualifiedOperationLookupVisitor
symbol_2 = inner;
}
else {
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue oclAsSet = OclAnyOclAsSetOperation.INSTANCE.evaluate(executor, SET_CLSSid_Class, element);
- final org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYPE_closure_0 = executor.getStaticTypeOf(oclAsSet);
- final LibraryIteration.@org.eclipse.jdt.annotation.NonNull LibraryIterationExtension IMPL_closure_0 = (LibraryIteration.LibraryIterationExtension)TYPE_closure_0.lookupImplementation(standardLibrary, OCLstdlibTables.Operations._Set__closure);
- final @NonNull Object ACC_closure_0 = IMPL_closure_0.createAccumulatorValue(executor, SET_CLSSid_Class, CLSSid_Class);
- /**
- * Implementation of the iterator body.
- */
- final @NonNull AbstractBinaryOperation BODY_closure_0 = new AbstractBinaryOperation()
- {
- /**
- * _'null' : miniocl::Class[?]
- */
- @Override
- public @Nullable Object evaluate(final @NonNull Executor executor, final @NonNull TypeId typeId, final @Nullable Object oclAsSet, final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object _1) {
- final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class symbol_0 = (org.eclipse.qvtd.doc.miniocl.Class)_1;
- if (symbol_0 == null) {
- throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCL/1.0\'::Class::superClass\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class superClass = symbol_0.getSuperClass();
- return superClass;
- }
- };
- final @NonNull ExecutorSingleIterationManager MGR_closure_0 = new ExecutorSingleIterationManager(executor, SET_CLSSid_Class, BODY_closure_0, oclAsSet, ACC_closure_0);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue closure = ClassUtil.nonNullState((SetValue)IMPL_closure_0.evaluateIteration(MGR_closure_0));
/*@Thrown*/ BagValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator = ValueUtil.createBagAccumulatorValue(BAG_CLSSid_Operation);
- @Nullable Iterator<Object> ITERATOR__1_0 = closure.iterator();
+ @Nullable Iterator<Object> ITERATOR__1_0 = superClasses.iterator();
/*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull BagValue collect;
while (true) {
if (!ITERATOR__1_0.hasNext()) {
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPackageLookupVisitor.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPackageLookupVisitor.java
index c70cb328a..0b2a5615c 100644
--- a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPackageLookupVisitor.java
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPackageLookupVisitor.java
@@ -15,6 +15,7 @@ import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.ocl.pivot.ids.IdManager;
import org.eclipse.ocl.pivot.ids.TypeId;
import org.eclipse.ocl.pivot.utilities.ClassUtil;
+import org.eclipse.ocl.pivot.values.InvalidValueException;
import org.eclipse.qvtd.doc.miniocl.MiniOCLPackage;
import org.eclipse.qvtd.doc.miniocl.Package;
import org.eclipse.qvtd.doc.miniocl.lookup.EnvironmentPackage;
@@ -97,19 +98,14 @@ public class MiniOCLUnqualifiedPackageLookupVisitor
*/
@Override
public /*@NonInvalid*/ LookupEnvironment visitRoot(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Root element_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment parentEnv = this.parentEnv(element_0);
+ if (parentEnv == null) {
+ throw new InvalidValueException("Null source for \'lookup::LookupEnvironment::addElements(NE)(Collection(addElements.NE)) : lookup::LookupEnvironment[1]\'");
+ }
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Package> ownedPackages = element_0.getOwnedPackages();
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment inner = context.addElements(ownedPackages);
- final /*@Thrown*/ boolean hasFinalResult = inner.hasFinalResult();
- /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment symbol_0;
- if (hasFinalResult) {
- symbol_0 = inner;
- }
- else {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment parentEnv = this.parentEnv(element_0);
- symbol_0 = parentEnv;
- }
- return symbol_0;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment addElements = parentEnv.addElements(ownedPackages);
+ return addElements;
}
}
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPropertyLookupVisitor.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPropertyLookupVisitor.java
index 044ee5331..dc63c41d3 100644
--- a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPropertyLookupVisitor.java
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedPropertyLookupVisitor.java
@@ -91,6 +91,30 @@ public class MiniOCLUnqualifiedPropertyLookupVisitor
public /*@NonInvalid*/ LookupEnvironment visitClass(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class element) {
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull StandardLibrary standardLibrary = idResolver.getStandardLibrary();
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue oclAsSet = OclAnyOclAsSetOperation.INSTANCE.evaluate(executor, SET_CLSSid_Class, element);
+ final org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYPE_superClasses_0 = executor.getStaticTypeOf(oclAsSet);
+ final LibraryIteration.@org.eclipse.jdt.annotation.NonNull LibraryIterationExtension IMPL_superClasses_0 = (LibraryIteration.LibraryIterationExtension)TYPE_superClasses_0.lookupImplementation(standardLibrary, OCLstdlibTables.Operations._Set__closure);
+ final @NonNull Object ACC_superClasses_0 = IMPL_superClasses_0.createAccumulatorValue(executor, SET_CLSSid_Class, CLSSid_Class);
+ /**
+ * Implementation of the iterator body.
+ */
+ final @NonNull AbstractBinaryOperation BODY_superClasses_0 = new AbstractBinaryOperation()
+ {
+ /**
+ * _'null' : miniocl::Class[?]
+ */
+ @Override
+ public @Nullable Object evaluate(final @NonNull Executor executor, final @NonNull TypeId typeId, final @Nullable Object oclAsSet, final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object _1) {
+ final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class symbol_0 = (org.eclipse.qvtd.doc.miniocl.Class)_1;
+ if (symbol_0 == null) {
+ throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCL/1.0\'::Class::superClass\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class superClass = symbol_0.getSuperClass();
+ return superClass;
+ }
+ };
+ final @NonNull ExecutorSingleIterationManager MGR_superClasses_0 = new ExecutorSingleIterationManager(executor, SET_CLSSid_Class, BODY_superClasses_0, oclAsSet, ACC_superClasses_0);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue superClasses = ClassUtil.nonNullState((SetValue)IMPL_superClasses_0.evaluateIteration(MGR_superClasses_0));
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Property> ownedProperties = element.getOwnedProperties();
@SuppressWarnings("null")
@@ -101,32 +125,8 @@ public class MiniOCLUnqualifiedPropertyLookupVisitor
symbol_2 = inner;
}
else {
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue oclAsSet = OclAnyOclAsSetOperation.INSTANCE.evaluate(executor, SET_CLSSid_Class, element);
- final org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYPE_closure_0 = executor.getStaticTypeOf(oclAsSet);
- final LibraryIteration.@org.eclipse.jdt.annotation.NonNull LibraryIterationExtension IMPL_closure_0 = (LibraryIteration.LibraryIterationExtension)TYPE_closure_0.lookupImplementation(standardLibrary, OCLstdlibTables.Operations._Set__closure);
- final @NonNull Object ACC_closure_0 = IMPL_closure_0.createAccumulatorValue(executor, SET_CLSSid_Class, CLSSid_Class);
- /**
- * Implementation of the iterator body.
- */
- final @NonNull AbstractBinaryOperation BODY_closure_0 = new AbstractBinaryOperation()
- {
- /**
- * _'null' : miniocl::Class[?]
- */
- @Override
- public @Nullable Object evaluate(final @NonNull Executor executor, final @NonNull TypeId typeId, final @Nullable Object oclAsSet, final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object _1) {
- final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class symbol_0 = (org.eclipse.qvtd.doc.miniocl.Class)_1;
- if (symbol_0 == null) {
- throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCL/1.0\'::Class::superClass\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class superClass = symbol_0.getSuperClass();
- return superClass;
- }
- };
- final @NonNull ExecutorSingleIterationManager MGR_closure_0 = new ExecutorSingleIterationManager(executor, SET_CLSSid_Class, BODY_closure_0, oclAsSet, ACC_closure_0);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue closure = ClassUtil.nonNullState((SetValue)IMPL_closure_0.evaluateIteration(MGR_closure_0));
/*@Thrown*/ BagValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator = ValueUtil.createBagAccumulatorValue(BAG_CLSSid_Property);
- @Nullable Iterator<Object> ITERATOR__1_0 = closure.iterator();
+ @Nullable Iterator<Object> ITERATOR__1_0 = superClasses.iterator();
/*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull BagValue collect;
while (true) {
if (!ITERATOR__1_0.hasNext()) {
diff --git a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedVariableLookupVisitor.java b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedVariableLookupVisitor.java
index 17b53b762..35f048455 100644
--- a/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedVariableLookupVisitor.java
+++ b/doc/org.eclipse.qvtd.doc.miniocl/emf-gen/org/eclipse/qvtd/doc/miniocl/util/MiniOCLUnqualifiedVariableLookupVisitor.java
@@ -70,29 +70,46 @@ public class MiniOCLUnqualifiedVariableLookupVisitor
}
/**
- * visitOperation(element : miniocl::Operation[1]) : lookup::LookupEnvironment[?]
+ * visitExpressionInOCL(element : miniocl::ExpressionInOCL[1]) : lookup::LookupEnvironment[?]
*
* _'null' : lookup::LookupEnvironment[1]
*/
@Override
- public /*@NonInvalid*/ LookupEnvironment visitOperation(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Operation element) {
- @SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull ExpressionInOCL ownedBodyExpression = element.getOwnedBodyExpression();
+ public /*@NonInvalid*/ LookupEnvironment visitExpressionInOCL(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull ExpressionInOCL element) {
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Variable ownedSelfVar = ownedBodyExpression.getOwnedSelfVar();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Variable ownedSelfVar = element.getOwnedSelfVar();
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment addElement = context.addElement(ownedSelfVar);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment inner = context.addElement(ownedSelfVar);
+ final /*@Thrown*/ boolean hasFinalResult = inner.hasFinalResult();
+ /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment symbol_0;
+ if (hasFinalResult) {
+ symbol_0 = inner;
+ }
+ else {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment parentEnv = this.parentEnv(element);
+ symbol_0 = parentEnv;
+ }
+ return symbol_0;
+ }
+
+ /**
+ * visitOperation(element : miniocl::Operation[1]) : lookup::LookupEnvironment[?]
+ *
+ * _'null' : lookup::LookupEnvironment[1]
+ */
+ @Override
+ public /*@NonInvalid*/ LookupEnvironment visitOperation(final /*@NonInvalid*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Operation element_0) {
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Parameter> ownedParameters = element.getOwnedParameters();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Parameter> ownedParameters = element_0.getOwnedParameters();
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment inner = addElement.addElements(ownedParameters);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.NonNull LookupEnvironment inner = context.addElements(ownedParameters);
final /*@Thrown*/ boolean hasFinalResult = inner.hasFinalResult();
/*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment symbol_0;
if (hasFinalResult) {
symbol_0 = inner;
}
else {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment parentEnv = this.parentEnv(element);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.lookup.@org.eclipse.jdt.annotation.Nullable LookupEnvironment parentEnv = this.parentEnv(element_0);
symbol_0 = parentEnv;
}
return symbol_0;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/MiniOCLCSParser.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/MiniOCLCSParser.java
index 33d03bc58..df09b5b82 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/MiniOCLCSParser.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/MiniOCLCSParser.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.ide.contentassist.antlr;
@@ -97,8 +97,8 @@ public class MiniOCLCSParser extends AbstractContentAssistParser {
put(grammarAccess.getStringLiteralExpCSAccess().getStringSymbolAssignment(), "rule__StringLiteralExpCS__StringSymbolAssignment");
put(grammarAccess.getBooleanLiteralExpCSAccess().getBoolSymbolAssignment_1_0(), "rule__BooleanLiteralExpCS__BoolSymbolAssignment_1_0");
put(grammarAccess.getPathNameCSAccess().getPathAssignment_0(), "rule__PathNameCS__PathAssignment_0");
- put(grammarAccess.getPathNameCSAccess().getPathAssignment_1_1(), "rule__PathNameCS__PathAssignment_1_1");
- put(grammarAccess.getPathElementCSAccess().getPathNameAssignment(), "rule__PathElementCS__PathNameAssignment");
+ put(grammarAccess.getPathNameCSAccess().getPathElementsAssignment_1_1(), "rule__PathNameCS__PathElementsAssignment_1_1");
+ put(grammarAccess.getPathElementCSAccess().getElementNameAssignment(), "rule__PathElementCS__ElementNameAssignment");
}
};
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/PartialMiniOCLCSContentAssistParser.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/PartialMiniOCLCSContentAssistParser.java
index 07c2837ab..d97b638bf 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/PartialMiniOCLCSContentAssistParser.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/PartialMiniOCLCSContentAssistParser.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.ide.contentassist.antlr;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCS.g b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCS.g
index 09690570a..ca26ead14 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCS.g
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCS.g
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
grammar InternalMiniOCLCS;
@@ -541,9 +541,9 @@ rulePathElementCS
}
:
(
- { before(grammarAccess.getPathElementCSAccess().getPathNameAssignment()); }
- (rule__PathElementCS__PathNameAssignment)
- { after(grammarAccess.getPathElementCSAccess().getPathNameAssignment()); }
+ { before(grammarAccess.getPathElementCSAccess().getElementNameAssignment()); }
+ (rule__PathElementCS__ElementNameAssignment)
+ { after(grammarAccess.getPathElementCSAccess().getElementNameAssignment()); }
)
;
finally {
@@ -2604,9 +2604,9 @@ rule__PathNameCS__Group_1__1__Impl
}
:
(
- { before(grammarAccess.getPathNameCSAccess().getPathAssignment_1_1()); }
- (rule__PathNameCS__PathAssignment_1_1)
- { after(grammarAccess.getPathNameCSAccess().getPathAssignment_1_1()); }
+ { before(grammarAccess.getPathNameCSAccess().getPathElementsAssignment_1_1()); }
+ (rule__PathNameCS__PathElementsAssignment_1_1)
+ { after(grammarAccess.getPathNameCSAccess().getPathElementsAssignment_1_1()); }
)
;
finally {
@@ -3113,30 +3113,30 @@ finally {
restoreStackSize(stackSize);
}
-rule__PathNameCS__PathAssignment_1_1
+rule__PathNameCS__PathElementsAssignment_1_1
@init {
int stackSize = keepStackSize();
}
:
(
- { before(grammarAccess.getPathNameCSAccess().getPathPathElementCSParserRuleCall_1_1_0()); }
+ { before(grammarAccess.getPathNameCSAccess().getPathElementsPathElementCSParserRuleCall_1_1_0()); }
rulePathElementCS
- { after(grammarAccess.getPathNameCSAccess().getPathPathElementCSParserRuleCall_1_1_0()); }
+ { after(grammarAccess.getPathNameCSAccess().getPathElementsPathElementCSParserRuleCall_1_1_0()); }
)
;
finally {
restoreStackSize(stackSize);
}
-rule__PathElementCS__PathNameAssignment
+rule__PathElementCS__ElementNameAssignment
@init {
int stackSize = keepStackSize();
}
:
(
- { before(grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0()); }
+ { before(grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0()); }
RULE_ID
- { after(grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0()); }
+ { after(grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0()); }
)
;
finally {
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCSParser.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCSParser.java
index e180a1aa4..27939c778 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCSParser.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ide/src-gen/org/eclipse/qvtd/doc/ide/contentassist/antlr/internal/InternalMiniOCLCSParser.java
@@ -1752,26 +1752,26 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
// $ANTLR start "rulePathElementCS"
- // InternalMiniOCLCS.g:538:1: rulePathElementCS : ( ( rule__PathElementCS__PathNameAssignment ) ) ;
+ // InternalMiniOCLCS.g:538:1: rulePathElementCS : ( ( rule__PathElementCS__ElementNameAssignment ) ) ;
public final void rulePathElementCS() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // InternalMiniOCLCS.g:542:2: ( ( ( rule__PathElementCS__PathNameAssignment ) ) )
- // InternalMiniOCLCS.g:543:2: ( ( rule__PathElementCS__PathNameAssignment ) )
+ // InternalMiniOCLCS.g:542:2: ( ( ( rule__PathElementCS__ElementNameAssignment ) ) )
+ // InternalMiniOCLCS.g:543:2: ( ( rule__PathElementCS__ElementNameAssignment ) )
{
- // InternalMiniOCLCS.g:543:2: ( ( rule__PathElementCS__PathNameAssignment ) )
- // InternalMiniOCLCS.g:544:3: ( rule__PathElementCS__PathNameAssignment )
+ // InternalMiniOCLCS.g:543:2: ( ( rule__PathElementCS__ElementNameAssignment ) )
+ // InternalMiniOCLCS.g:544:3: ( rule__PathElementCS__ElementNameAssignment )
{
if ( state.backtracking==0 ) {
- before(grammarAccess.getPathElementCSAccess().getPathNameAssignment());
+ before(grammarAccess.getPathElementCSAccess().getElementNameAssignment());
}
- // InternalMiniOCLCS.g:545:3: ( rule__PathElementCS__PathNameAssignment )
- // InternalMiniOCLCS.g:545:4: rule__PathElementCS__PathNameAssignment
+ // InternalMiniOCLCS.g:545:3: ( rule__PathElementCS__ElementNameAssignment )
+ // InternalMiniOCLCS.g:545:4: rule__PathElementCS__ElementNameAssignment
{
pushFollow(FOLLOW_2);
- rule__PathElementCS__PathNameAssignment();
+ rule__PathElementCS__ElementNameAssignment();
state._fsp--;
if (state.failed) return ;
@@ -1779,7 +1779,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
}
if ( state.backtracking==0 ) {
- after(grammarAccess.getPathElementCSAccess().getPathNameAssignment());
+ after(grammarAccess.getPathElementCSAccess().getElementNameAssignment());
}
}
@@ -8492,26 +8492,26 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
// $ANTLR start "rule__PathNameCS__Group_1__1__Impl"
- // InternalMiniOCLCS.g:2601:1: rule__PathNameCS__Group_1__1__Impl : ( ( rule__PathNameCS__PathAssignment_1_1 ) ) ;
+ // InternalMiniOCLCS.g:2601:1: rule__PathNameCS__Group_1__1__Impl : ( ( rule__PathNameCS__PathElementsAssignment_1_1 ) ) ;
public final void rule__PathNameCS__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
- // InternalMiniOCLCS.g:2605:1: ( ( ( rule__PathNameCS__PathAssignment_1_1 ) ) )
- // InternalMiniOCLCS.g:2606:1: ( ( rule__PathNameCS__PathAssignment_1_1 ) )
+ // InternalMiniOCLCS.g:2605:1: ( ( ( rule__PathNameCS__PathElementsAssignment_1_1 ) ) )
+ // InternalMiniOCLCS.g:2606:1: ( ( rule__PathNameCS__PathElementsAssignment_1_1 ) )
{
- // InternalMiniOCLCS.g:2606:1: ( ( rule__PathNameCS__PathAssignment_1_1 ) )
- // InternalMiniOCLCS.g:2607:2: ( rule__PathNameCS__PathAssignment_1_1 )
+ // InternalMiniOCLCS.g:2606:1: ( ( rule__PathNameCS__PathElementsAssignment_1_1 ) )
+ // InternalMiniOCLCS.g:2607:2: ( rule__PathNameCS__PathElementsAssignment_1_1 )
{
if ( state.backtracking==0 ) {
- before(grammarAccess.getPathNameCSAccess().getPathAssignment_1_1());
+ before(grammarAccess.getPathNameCSAccess().getPathElementsAssignment_1_1());
}
- // InternalMiniOCLCS.g:2608:2: ( rule__PathNameCS__PathAssignment_1_1 )
- // InternalMiniOCLCS.g:2608:3: rule__PathNameCS__PathAssignment_1_1
+ // InternalMiniOCLCS.g:2608:2: ( rule__PathNameCS__PathElementsAssignment_1_1 )
+ // InternalMiniOCLCS.g:2608:3: rule__PathNameCS__PathElementsAssignment_1_1
{
pushFollow(FOLLOW_2);
- rule__PathNameCS__PathAssignment_1_1();
+ rule__PathNameCS__PathElementsAssignment_1_1();
state._fsp--;
if (state.failed) return ;
@@ -8519,7 +8519,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
}
if ( state.backtracking==0 ) {
- after(grammarAccess.getPathNameCSAccess().getPathAssignment_1_1());
+ after(grammarAccess.getPathNameCSAccess().getPathElementsAssignment_1_1());
}
}
@@ -10019,9 +10019,9 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
// $ANTLR end "rule__PathNameCS__PathAssignment_0"
- // $ANTLR start "rule__PathNameCS__PathAssignment_1_1"
- // InternalMiniOCLCS.g:3116:1: rule__PathNameCS__PathAssignment_1_1 : ( rulePathElementCS ) ;
- public final void rule__PathNameCS__PathAssignment_1_1() throws RecognitionException {
+ // $ANTLR start "rule__PathNameCS__PathElementsAssignment_1_1"
+ // InternalMiniOCLCS.g:3116:1: rule__PathNameCS__PathElementsAssignment_1_1 : ( rulePathElementCS ) ;
+ public final void rule__PathNameCS__PathElementsAssignment_1_1() throws RecognitionException {
int stackSize = keepStackSize();
@@ -10033,7 +10033,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
// InternalMiniOCLCS.g:3122:3: rulePathElementCS
{
if ( state.backtracking==0 ) {
- before(grammarAccess.getPathNameCSAccess().getPathPathElementCSParserRuleCall_1_1_0());
+ before(grammarAccess.getPathNameCSAccess().getPathElementsPathElementCSParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_2);
rulePathElementCS();
@@ -10041,7 +10041,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
state._fsp--;
if (state.failed) return ;
if ( state.backtracking==0 ) {
- after(grammarAccess.getPathNameCSAccess().getPathPathElementCSParserRuleCall_1_1_0());
+ after(grammarAccess.getPathNameCSAccess().getPathElementsPathElementCSParserRuleCall_1_1_0());
}
}
@@ -10061,12 +10061,12 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
}
return ;
}
- // $ANTLR end "rule__PathNameCS__PathAssignment_1_1"
+ // $ANTLR end "rule__PathNameCS__PathElementsAssignment_1_1"
- // $ANTLR start "rule__PathElementCS__PathNameAssignment"
- // InternalMiniOCLCS.g:3131:1: rule__PathElementCS__PathNameAssignment : ( RULE_ID ) ;
- public final void rule__PathElementCS__PathNameAssignment() throws RecognitionException {
+ // $ANTLR start "rule__PathElementCS__ElementNameAssignment"
+ // InternalMiniOCLCS.g:3131:1: rule__PathElementCS__ElementNameAssignment : ( RULE_ID ) ;
+ public final void rule__PathElementCS__ElementNameAssignment() throws RecognitionException {
int stackSize = keepStackSize();
@@ -10078,11 +10078,11 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
// InternalMiniOCLCS.g:3137:3: RULE_ID
{
if ( state.backtracking==0 ) {
- before(grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0());
+ before(grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0());
}
match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;
if ( state.backtracking==0 ) {
- after(grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0());
+ after(grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0());
}
}
@@ -10102,7 +10102,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalContentAssistParser
}
return ;
}
- // $ANTLR end "rule__PathElementCS__PathNameAssignment"
+ // $ANTLR end "rule__PathElementCS__ElementNameAssignment"
// Delegated rules
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/ui/internal/XtextActivator.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/ui/internal/XtextActivator.java
index f3b72f2d6..7259680fb 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/ui/internal/XtextActivator.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/ui/internal/XtextActivator.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.xtext.ui.internal;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/AbstractMiniOCLCSUiModule.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/AbstractMiniOCLCSUiModule.java
index 90c6b05de..faeb6ce76 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/AbstractMiniOCLCSUiModule.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/AbstractMiniOCLCSUiModule.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.ui;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/MiniOCLCSExecutableExtensionFactory.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/MiniOCLCSExecutableExtensionFactory.java
index 1f877fcd3..1cfb4a10f 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/MiniOCLCSExecutableExtensionFactory.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/MiniOCLCSExecutableExtensionFactory.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.ui;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/contentassist/AbstractMiniOCLCSProposalProvider.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/contentassist/AbstractMiniOCLCSProposalProvider.java
index 2a899478f..c342c3884 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/contentassist/AbstractMiniOCLCSProposalProvider.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext.ui/src-gen/org/eclipse/qvtd/doc/ui/contentassist/AbstractMiniOCLCSProposalProvider.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.ui.contentassist;
@@ -112,7 +112,10 @@ public abstract class AbstractMiniOCLCSProposalProvider extends TerminalsProposa
public void completePathNameCS_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
- public void completePathElementCS_PathName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ public void completePathNameCS_PathElements(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePathElementCS_ElementName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.cs2as b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.cs2as
index 83711287b..2e0fcd763 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.cs2as
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.cs2as
@@ -14,57 +14,63 @@ disambiguation {
}
}
-nameresolution {
-
- named-element NamedElement name-property name; /*from target */
- name-referencer PathElementCS name-property pathName; /*from source */
- name-qualifier PathNameCS name-segments-property path; /*from source */
-
- Root {
- scopes
- Package using ownedPackages;
- }
-
- Package {
- named-element
- qualifies Package using ownedPackages,
+name-resolution {
+ targets {
+ NamedElement using name;
+ Package qualifies Package using ownedPackages,
Class using ownedClasses;
-
- scopes-occluding
- Package using ownedPackages
- Class using ownedClasses;
- }
-
- Class {
- named-element
- qualifies Operation using ownedOperations,
+ Class qualifies Operation using ownedOperations,
Property using ownedProperties;
-
- scopes-occluding
- Operation using ownedOperations occluding self->closure(superClass).ownedOperations
- Property using ownedProperties occluding self->closure(superClass).ownedProperties;
-
- exports
- Operation using ownedOperations
- Property using ownedProperties;
- }
-
- Operation {
- named-element
- filtered by args : OrderedSet(OCLExpression)
+ Operation filtered by args : OrderedSet(OCLExpression)
when args->size() = ownedParameters->size()
- -- FIXME and check arg/parm types conformance
+ -- FIXME and check arg/parm types conformance
;
- scopes-occluding
- Variable using ownedContext, ownedParameters;
+ Property;
+ Variable;
}
- Property {
- named-element;
+ inputs {
+ PathElementCS using elementName;
+ qualifier PathNameCS using pathElements;
}
- Variable {
- named-element;
+ providers {
+ Root {
+ in current-scope provides adding
+ Package using ownedPackages;
+ in exported-scope provides
+ Package using ownedPackages;
+ }
+
+
+ Package {
+ in current-scope provides occluding
+ Package using ownedPackages
+ Class using ownedClasses;
+ }
+
+ Class {
+ vars superClasses = self->closure(superClass);
+
+ in current-scope provides occluding
+ Operation using ownedOperations occluding superClasses.ownedOperations
+ Property using ownedProperties occluding superClasses.ownedProperties;
+
+ in exported-scope provides
+ Operation using ownedOperations
+ Property using ownedProperties;
+ }
+
+
+ Operation {
+ in current-scope provides occluding
+ Variable using ownedParameters;
+ }
+
+ ExpressionInOCL {
+ in current-scope provides occluding
+ Variable using ownedSelfVar;
+ }
}
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl
index f9f327469..d4f044604 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl
@@ -5,8 +5,8 @@ import 'MiniOCLCS2ASHelpers.ocl'
package ocl
-context OclElement
-- Domain specific default functionality
+context OclElement
def : unqualified_env_Class() : lookup::LookupEnvironment[1] =
_unqualified_env_Class(null)
def : unqualified_env_Package() : lookup::LookupEnvironment[1] =
@@ -15,6 +15,8 @@ def : unqualified_env_Operation() : lookup::LookupEnvironment[1] =
_unqualified_env_Operation(null)
def : unqualified_env_Variable() : lookup::LookupEnvironment[1] =
_unqualified_env_Variable(null)
+def : unqualified_env_NamedElement() : lookup::LookupEnvironment[1] =
+ _unqualified_env_NamedElement(null)
def : unqualified_env_Property() : lookup::LookupEnvironment[1] =
_unqualified_env_Property(null)
@@ -26,6 +28,8 @@ def : _unqualified_env_Operation(child : OclElement) : lookup::LookupEnvironment
parentEnv_Operation()
def : _unqualified_env_Variable(child : OclElement) : lookup::LookupEnvironment[1] =
parentEnv_Variable()
+def : _unqualified_env_NamedElement(child : OclElement) : lookup::LookupEnvironment[1] =
+ parentEnv_NamedElement()
def : _unqualified_env_Property(child : OclElement) : lookup::LookupEnvironment[1] =
parentEnv_Property()
@@ -37,11 +41,15 @@ def : parentEnv_Operation() : lookup::LookupEnvironment[1] =
let parent = oclContainer() in if parent = null then lookup::LookupEnvironment { } else parent._unqualified_env_Operation(self) endif
def : parentEnv_Variable() : lookup::LookupEnvironment[1] =
let parent = oclContainer() in if parent = null then lookup::LookupEnvironment { } else parent._unqualified_env_Variable(self) endif
+def : parentEnv_NamedElement() : lookup::LookupEnvironment[1] =
+ let parent = oclContainer() in if parent = null then lookup::LookupEnvironment { } else parent._unqualified_env_NamedElement(self) endif
def : parentEnv_Property() : lookup::LookupEnvironment[1] =
let parent = oclContainer() in if parent = null then lookup::LookupEnvironment { } else parent._unqualified_env_Property(self) endif
def : _exported_env_Property(importer : OclElement) : lookup::LookupEnvironment[1] =
lookup::LookupEnvironment { }
+def : _exported_env_Package(importer : OclElement) : lookup::LookupEnvironment[1] =
+ lookup::LookupEnvironment { }
def : _exported_env_Operation(importer : OclElement) : lookup::LookupEnvironment[1] =
lookup::LookupEnvironment { }
@@ -68,158 +76,86 @@ endpackage
package as
-
-context Root
-def : _unqualified_env_Package(child : ocl::OclElement) : lookup::LookupEnvironment =
- parentEnv_Package().nestedEnv()
- .addElements(ownedPackages)
-
+context Visitable
+-- NamedElement unqualified lookup
+def : _lookupNamedElement(env : lookup::LookupEnvironment, nName : String) : OrderedSet(NamedElement) =
+let foundNamedElement = env.namedElements->selectByKind(NamedElement)->select(name = nName)
+in if foundNamedElement->isEmpty() and not (env.parentEnv = null)
+ then _lookupNamedElement(env.parentEnv, nName)
+ else foundNamedElement
+ endif
+
+-- Note: when calling this method, the source element of the argument passed to this method, will be the contextual
+-- object on which error reports will be handled
+def : _lookupUnqualifiedNamedElement(nName : String) : NamedElement[?] =
+let foundNamedElement = _lookupNamedElement(unqualified_env_NamedElement(), nName)
+in if foundNamedElement->isEmpty()
+ then null
+ else foundNamedElement->first() -- LookupVisitor will report ambiguous result
+ endif
+
+def : lookupNamedElement(nName : String) : NamedElement[?] =
+ _lookupUnqualifiedNamedElement(nName)
+def : lookupNamedElement(aPathElementCS : cs::PathElementCS) : NamedElement[?] =
+ _lookupUnqualifiedNamedElement(aPathElementCS.elementName)
+-- End of NamedElement unqualified lookup
+
context Package
def : _lookupQualifiedPackage(pName : String) : Package[?] =
- let foundPackage = _lookupPackage(_qualified_env_Package(), pName)
- in if foundPackage->isEmpty()
- then null
- else foundPackage->first()
- endif
+ let foundPackage = _lookupPackage(_qualified_env_Package(), pName)
+ in if foundPackage->isEmpty()
+ then null
+ else foundPackage->first()
+ endif
def : _qualified_env_Package() : lookup::LookupEnvironment =
- let env = lookup::LookupEnvironment{}
- in env
- .addElements(ownedPackages)
+ let env = lookup::LookupEnvironment{}
+ in env
+ .addElements(ownedPackages)
def : lookupQualifiedPackage(aPathElementCS : cs::PathElementCS) : Package[?] =
- _lookupQualifiedPackage(aPathElementCS.pathName)
-
+ _lookupQualifiedPackage(aPathElementCS.elementName)
def : _lookupQualifiedClass(cName : String) : Class[?] =
- let foundClass = _lookupClass(_qualified_env_Class(), cName)
- in if foundClass->isEmpty()
- then null
- else foundClass->first()
- endif
+ let foundClass = _lookupClass(_qualified_env_Class(), cName)
+ in if foundClass->isEmpty()
+ then null
+ else foundClass->first()
+ endif
def : _qualified_env_Class() : lookup::LookupEnvironment =
- let env = lookup::LookupEnvironment{}
- in env
- .addElements(ownedClasses)
+ let env = lookup::LookupEnvironment{}
+ in env
+ .addElements(ownedClasses)
def : lookupQualifiedClass(aPathElementCS : cs::PathElementCS) : Class[?] =
- _lookupQualifiedClass(aPathElementCS.pathName)
-
-def : _unqualified_env_Package(child : ocl::OclElement) : lookup::LookupEnvironment =
- parentEnv_Package().nestedEnv()
- .addElements(ownedPackages)
-
-def : _unqualified_env_Class(child : ocl::OclElement) : lookup::LookupEnvironment =
- parentEnv_Class().nestedEnv()
- .addElements(ownedClasses)
-
-
-context Class
-
-def : _lookupQualifiedOperation(oName : String, args : OrderedSet(OCLExpression)) : Operation[?] =
- let foundOperation = _lookupOperation(_qualified_env_Operation(), oName, args)
- in if foundOperation->isEmpty()
- then null
- else foundOperation->first()
- endif
-def : _qualified_env_Operation() : lookup::LookupEnvironment =
- let env = lookup::LookupEnvironment{}
- in env
- .addElements(ownedOperations)
-def : lookupQualifiedOperation(aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
- _lookupQualifiedOperation(aPathElementCS.pathName, args)
-
-
-def : _lookupQualifiedProperty(pName : String) : Property[?] =
- let foundProperty = _lookupProperty(_qualified_env_Property(), pName)
- in if foundProperty->isEmpty()
- then null
- else foundProperty->first()
- endif
-def : _qualified_env_Property() : lookup::LookupEnvironment =
- let env = lookup::LookupEnvironment{}
- in env
- .addElements(ownedProperties)
-def : lookupQualifiedProperty(aPathElementCS : cs::PathElementCS) : Property[?] =
- _lookupQualifiedProperty(aPathElementCS.pathName)
-
-def : _unqualified_env_Operation(child : ocl::OclElement) : lookup::LookupEnvironment =
- parentEnv_Operation().nestedEnv()
- .addElements(self->closure(superClass).ownedOperations)
- .nestedEnv()
- .addElements(ownedOperations)
-
-def : _unqualified_env_Property(child : ocl::OclElement) : lookup::LookupEnvironment =
- parentEnv_Property().nestedEnv()
- .addElements(self->closure(superClass).ownedProperties)
- .nestedEnv()
- .addElements(ownedProperties)
-
-def : _exported_env_Operation(importer : ocl::OclElement) : lookup::LookupEnvironment =
- let env = lookup::LookupEnvironment {}
- in env
- .addElements(ownedOperations)
-
-def : _exported_env_Property(importer : ocl::OclElement) : lookup::LookupEnvironment =
- let env = lookup::LookupEnvironment {}
- in env
- .addElements(ownedProperties)
-
-
-def : _lookupExportedOperation(importer : ocl::OclElement, oName : String, args : OrderedSet(OCLExpression)) : Operation[?] =
- let foundOperation = _lookupOperation(_exported_env_Operation(importer), oName, args)
- in if foundOperation->isEmpty()
- then null
- else foundOperation->first()
- endif
-
-def : lookupExportedOperation(importer : ocl::OclElement, aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
- _lookupExportedOperation(importer, aPathElementCS.pathName, args)
-
-def : _lookupExportedProperty(importer : ocl::OclElement, pName : String) : Property[?] =
- let foundProperty = _lookupProperty(_exported_env_Property(importer), pName)
- in if foundProperty->isEmpty()
- then null
- else foundProperty->first()
- endif
-
-def : lookupExportedProperty(importer : ocl::OclElement, aPathElementCS : cs::PathElementCS) : Property[?] =
- _lookupExportedProperty(importer, aPathElementCS.pathName)
-
-context Operation
-
-def : _appliesFilter_Operation(args : OrderedSet(OCLExpression)) : Boolean =
- args->size() = ownedParameters->size()
-def : _unqualified_env_Variable(child : ocl::OclElement) : lookup::LookupEnvironment =
- parentEnv_Variable().nestedEnv()
- .addElement(ownedBodyExpression.ownedSelfVar)
- .addElements(ownedParameters)
-
-
+ _lookupQualifiedClass(aPathElementCS.elementName)
context Visitable
--- Package lookup
+-- Package unqualified lookup
def : _lookupPackage(env : lookup::LookupEnvironment, pName : String) : OrderedSet(Package) =
let foundPackage = env.namedElements->selectByKind(Package)->select(name = pName)
in if foundPackage->isEmpty() and not (env.parentEnv = null)
- then _lookupPackage(env.parentEnv, pName)
- else foundPackage
- endif
-
+ then _lookupPackage(env.parentEnv, pName)
+ else foundPackage
+ endif
+
-- Note: when calling this method, the source element of the argument passed to this method, will be the contextual
-- object on which error reports will be handled
def : _lookupUnqualifiedPackage(pName : String) : Package[?] =
let foundPackage = _lookupPackage(unqualified_env_Package(), pName)
in if foundPackage->isEmpty()
- then null
- else foundPackage->first() -- LookupVisitor will report ambiguous result
- endif
+ then null
+ else foundPackage->first() -- LookupVisitor will report ambiguous result
+ endif
+
+def : lookupPackage(pName : String) : Package[?] =
+ _lookupUnqualifiedPackage(pName)
def : lookupPackage(aPathElementCS : cs::PathElementCS) : Package[?] =
- _lookupUnqualifiedPackage(aPathElementCS.pathName)
+ _lookupUnqualifiedPackage(aPathElementCS.elementName)
+-- End of Package unqualified lookup
-
--- QN Package lookup
+-- Package qualified-name lookup
def : lookupPackage(aPathNameCS : cs::PathNameCS) : Package[?] =
- lookupPackage(aPathNameCS .path)
-
+ lookupPackage(aPathNameCS .pathElements)
+
def : lookupPackage(segments : OrderedSet(cs::PathElementCS)) : Package[?] =
if segments->size() = 1
then lookupPackage(segments->first())
@@ -227,31 +163,62 @@ def : lookupPackage(segments : OrderedSet(cs::PathElementCS)) : Package[?] =
qualifier = lookupPackage(qualifierSegments)
in qualifier?.lookupQualifiedPackage(segments->last())
endif
-
--- Class lookup
+
+context Class
+
+def : _lookupQualifiedOperation(oName : String, args : OrderedSet(OCLExpression)) : Operation[?] =
+ let foundOperation = _lookupOperation(_qualified_env_Operation(), oName, args)
+ in if foundOperation->isEmpty()
+ then null
+ else foundOperation->first()
+ endif
+def : _qualified_env_Operation() : lookup::LookupEnvironment =
+ let env = lookup::LookupEnvironment{}
+ in env
+ .addElements(ownedOperations)
+def : lookupQualifiedOperation(aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
+ _lookupQualifiedOperation(aPathElementCS.elementName, args)
+
+def : _lookupQualifiedProperty(pName : String) : Property[?] =
+ let foundProperty = _lookupProperty(_qualified_env_Property(), pName)
+ in if foundProperty->isEmpty()
+ then null
+ else foundProperty->first()
+ endif
+def : _qualified_env_Property() : lookup::LookupEnvironment =
+ let env = lookup::LookupEnvironment{}
+ in env
+ .addElements(ownedProperties)
+def : lookupQualifiedProperty(aPathElementCS : cs::PathElementCS) : Property[?] =
+ _lookupQualifiedProperty(aPathElementCS.elementName)
+context Visitable
+-- Class unqualified lookup
def : _lookupClass(env : lookup::LookupEnvironment, cName : String) : OrderedSet(Class) =
let foundClass = env.namedElements->selectByKind(Class)->select(name = cName)
in if foundClass->isEmpty() and not (env.parentEnv = null)
- then _lookupClass(env.parentEnv, cName)
- else foundClass
- endif
-
+ then _lookupClass(env.parentEnv, cName)
+ else foundClass
+ endif
+
-- Note: when calling this method, the source element of the argument passed to this method, will be the contextual
-- object on which error reports will be handled
def : _lookupUnqualifiedClass(cName : String) : Class[?] =
let foundClass = _lookupClass(unqualified_env_Class(), cName)
in if foundClass->isEmpty()
- then null
- else foundClass->first() -- LookupVisitor will report ambiguous result
- endif
+ then null
+ else foundClass->first() -- LookupVisitor will report ambiguous result
+ endif
+
+def : lookupClass(cName : String) : Class[?] =
+ _lookupUnqualifiedClass(cName)
def : lookupClass(aPathElementCS : cs::PathElementCS) : Class[?] =
- _lookupUnqualifiedClass(aPathElementCS.pathName)
+ _lookupUnqualifiedClass(aPathElementCS.elementName)
+-- End of Class unqualified lookup
-
--- QN Class lookup
+-- Class qualified-name lookup
def : lookupClass(aPathNameCS : cs::PathNameCS) : Class[?] =
- lookupClass(aPathNameCS .path)
-
+ lookupClass(aPathNameCS .pathElements)
+
def : lookupClass(segments : OrderedSet(cs::PathElementCS)) : Class[?] =
if segments->size() = 1
then lookupClass(segments->first())
@@ -259,62 +226,40 @@ def : lookupClass(segments : OrderedSet(cs::PathElementCS)) : Class[?] =
qualifier = lookupPackage(qualifierSegments)
in qualifier?.lookupQualifiedClass(segments->last())
endif
-
--- Class exports Operation
-
-def : lookupOperationFrom(exporter : Class, aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
- exporter.lookupExportedOperation(self, aPathElementCS, args)
-
-def : lookupOperationFrom(exporter : Class, aPathNameCS : cs::PathNameCS, args : OrderedSet(OCLExpression)) : Operation[?] =
- lookupOperationFrom(exporter, aPathNameCS.path, args)
-
-def : lookupOperationFrom(exporter : Class, segments : OrderedSet(cs::PathElementCS), args : OrderedSet(OCLExpression)) : Operation[?] =
- if segments->size() = 1
- then lookupOperationFrom(exporter, segments->first(), args)
- else let qualifierSegments = segments->subOrderedSet(1,segments->size()-1),
- qualifier = lookupClass(qualifierSegments)
- in qualifier?.lookupQualifiedOperation(segments->last(), args)
- endif
--- Class exports Property
-def : lookupPropertyFrom(exporter : Class, aPathElementCS : cs::PathElementCS) : Property[?] =
- exporter.lookupExportedProperty(self, aPathElementCS)
-
-def : lookupPropertyFrom(exporter : Class, aPathNameCS : cs::PathNameCS) : Property[?] =
- lookupPropertyFrom(exporter, aPathNameCS.path)
-
-def : lookupPropertyFrom(exporter : Class, segments : OrderedSet(cs::PathElementCS)) : Property[?] =
- if segments->size() = 1
- then lookupPropertyFrom(exporter, segments->first())
- else let qualifierSegments = segments->subOrderedSet(1,segments->size()-1),
- qualifier = lookupClass(qualifierSegments)
- in qualifier?.lookupQualifiedProperty(segments->last())
- endif
--- Operation lookup
+context Operation
+
+def : _appliesFilter_Operation(args : OrderedSet(OCLExpression)) : Boolean =
+ args->size() = ownedParameters->size()
+context Visitable
+-- Operation unqualified lookup
def : _lookupOperation(env : lookup::LookupEnvironment, oName : String, args : OrderedSet(OCLExpression)) : OrderedSet(Operation) =
let foundOperation = env.namedElements->selectByKind(Operation)->select(name = oName)
->select(_appliesFilter_Operation(args))
in if foundOperation->isEmpty() and not (env.parentEnv = null)
- then _lookupOperation(env.parentEnv, oName, args)
- else foundOperation
- endif
-
+ then _lookupOperation(env.parentEnv, oName, args)
+ else foundOperation
+ endif
+
-- Note: when calling this method, the source element of the argument passed to this method, will be the contextual
-- object on which error reports will be handled
def : _lookupUnqualifiedOperation(oName : String, args : OrderedSet(OCLExpression)) : Operation[?] =
let foundOperation = _lookupOperation(unqualified_env_Operation(), oName, args)
in if foundOperation->isEmpty()
- then null
- else foundOperation->first() -- LookupVisitor will report ambiguous result
- endif
+ then null
+ else foundOperation->first() -- LookupVisitor will report ambiguous result
+ endif
+
+def : lookupOperation(oName : String, args : OrderedSet(OCLExpression)) : Operation[?] =
+ _lookupUnqualifiedOperation(oName, args)
def : lookupOperation(aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
- _lookupUnqualifiedOperation(aPathElementCS.pathName, args)
+ _lookupUnqualifiedOperation(aPathElementCS.elementName, args)
+-- End of Operation unqualified lookup
-
--- QN Operation lookup
+-- Operation qualified-name lookup
def : lookupOperation(aPathNameCS : cs::PathNameCS, args : OrderedSet(OCLExpression)) : Operation[?] =
- lookupOperation(aPathNameCS .path, args)
-
+ lookupOperation(aPathNameCS .pathElements, args)
+
def : lookupOperation(segments : OrderedSet(cs::PathElementCS), args : OrderedSet(OCLExpression)) : Operation[?] =
if segments->size() = 1
then lookupOperation(segments->first(), args)
@@ -322,31 +267,34 @@ def : lookupOperation(segments : OrderedSet(cs::PathElementCS), args : OrderedSe
qualifier = lookupClass(qualifierSegments)
in qualifier?.lookupQualifiedOperation(segments->last(), args)
endif
-
--- Property lookup
+context Visitable
+-- Property unqualified lookup
def : _lookupProperty(env : lookup::LookupEnvironment, pName : String) : OrderedSet(Property) =
let foundProperty = env.namedElements->selectByKind(Property)->select(name = pName)
in if foundProperty->isEmpty() and not (env.parentEnv = null)
- then _lookupProperty(env.parentEnv, pName)
- else foundProperty
- endif
-
+ then _lookupProperty(env.parentEnv, pName)
+ else foundProperty
+ endif
+
-- Note: when calling this method, the source element of the argument passed to this method, will be the contextual
-- object on which error reports will be handled
def : _lookupUnqualifiedProperty(pName : String) : Property[?] =
let foundProperty = _lookupProperty(unqualified_env_Property(), pName)
in if foundProperty->isEmpty()
- then null
- else foundProperty->first() -- LookupVisitor will report ambiguous result
- endif
+ then null
+ else foundProperty->first() -- LookupVisitor will report ambiguous result
+ endif
+
+def : lookupProperty(pName : String) : Property[?] =
+ _lookupUnqualifiedProperty(pName)
def : lookupProperty(aPathElementCS : cs::PathElementCS) : Property[?] =
- _lookupUnqualifiedProperty(aPathElementCS.pathName)
+ _lookupUnqualifiedProperty(aPathElementCS.elementName)
+-- End of Property unqualified lookup
-
--- QN Property lookup
+-- Property qualified-name lookup
def : lookupProperty(aPathNameCS : cs::PathNameCS) : Property[?] =
- lookupProperty(aPathNameCS .path)
-
+ lookupProperty(aPathNameCS .pathElements)
+
def : lookupProperty(segments : OrderedSet(cs::PathElementCS)) : Property[?] =
if segments->size() = 1
then lookupProperty(segments->first())
@@ -354,29 +302,163 @@ def : lookupProperty(segments : OrderedSet(cs::PathElementCS)) : Property[?] =
qualifier = lookupClass(qualifierSegments)
in qualifier?.lookupQualifiedProperty(segments->last())
endif
-
--- Variable lookup
+context Visitable
+-- Variable unqualified lookup
def : _lookupVariable(env : lookup::LookupEnvironment, vName : String) : OrderedSet(Variable) =
let foundVariable = env.namedElements->selectByKind(Variable)->select(name = vName)
in if foundVariable->isEmpty() and not (env.parentEnv = null)
- then _lookupVariable(env.parentEnv, vName)
- else foundVariable
- endif
-
+ then _lookupVariable(env.parentEnv, vName)
+ else foundVariable
+ endif
+
-- Note: when calling this method, the source element of the argument passed to this method, will be the contextual
-- object on which error reports will be handled
def : _lookupUnqualifiedVariable(vName : String) : Variable[?] =
let foundVariable = _lookupVariable(unqualified_env_Variable(), vName)
in if foundVariable->isEmpty()
- then null
- else foundVariable->first() -- LookupVisitor will report ambiguous result
- endif
-def : lookupVariable(aPathElementCS : cs::PathElementCS) : Variable[?] =
- _lookupUnqualifiedVariable(aPathElementCS.pathName)
+ then null
+ else foundVariable->first() -- LookupVisitor will report ambiguous result
+ endif
--- FIXME this has been manually added
def : lookupVariable(vName : String) : Variable[?] =
_lookupUnqualifiedVariable(vName)
--- ENDOF manual addition
+def : lookupVariable(aPathElementCS : cs::PathElementCS) : Variable[?] =
+ _lookupUnqualifiedVariable(aPathElementCS.elementName)
+-- End of Variable unqualified lookup
+
+context Root
+def : _unqualified_env_Package(child : ocl::OclElement) : lookup::LookupEnvironment =
+ parentEnv_Package()
+ .addElements(ownedPackages)
+
+def : _exported_env_Package(importer : ocl::OclElement) : lookup::LookupEnvironment =
+ let env = lookup::LookupEnvironment {}
+ in env
+ .addElements(ownedPackages)
+
+
+def : _lookupExportedPackage(importer : ocl::OclElement, pName : String) : Package[?] =
+ let foundPackage = _lookupPackage(_exported_env_Package(importer), pName)
+ in if foundPackage->isEmpty()
+ then null
+ else foundPackage->first()
+ endif
+
+def : lookupExportedPackage(importer : ocl::OclElement, aPathElementCS : cs::PathElementCS) : Package[?] =
+ _lookupExportedPackage(importer, aPathElementCS.elementName)
+context Visitable
+-- Root exports Package
+
+def : lookupPackageFrom(exporter : Root, aPathElementCS : cs::PathElementCS) : Package[?] =
+ exporter.lookupExportedPackage(self, aPathElementCS)
+
+def : lookupPackageFrom(exporter : Root, aPathNameCS : cs::PathNameCS) : Package[?] =
+ lookupPackageFrom(exporter, aPathNameCS.pathElements)
+
+def : lookupPackageFrom(exporter : Root, segments : OrderedSet(cs::PathElementCS)) : Package[?] =
+ if segments->size() = 1
+ then lookupPackageFrom(exporter, segments->first())
+ else let qualifierSegments = segments->subOrderedSet(1,segments->size()-1),
+ qualifier = lookupPackage(qualifierSegments)
+ in qualifier?.lookupQualifiedPackage(segments->last())
+ endif
+context Package
+def : _unqualified_env_Package(child : ocl::OclElement) : lookup::LookupEnvironment =
+ parentEnv_Package().nestedEnv()
+ .addElements(ownedPackages)
+
+def : _unqualified_env_Class(child : ocl::OclElement) : lookup::LookupEnvironment =
+ parentEnv_Class().nestedEnv()
+ .addElements(ownedClasses)
+
+context Class
+def : _unqualified_env_Operation(child : ocl::OclElement) : lookup::LookupEnvironment =
+ let superClasses = self->closure(superClass)
+ in
+ parentEnv_Operation().nestedEnv()
+ .addElements(superClasses.ownedOperations)
+ .nestedEnv()
+ .addElements(ownedOperations)
+
+def : _unqualified_env_Property(child : ocl::OclElement) : lookup::LookupEnvironment =
+ let superClasses = self->closure(superClass)
+ in
+
+ parentEnv_Property().nestedEnv()
+ .addElements(superClasses.ownedProperties)
+ .nestedEnv()
+ .addElements(ownedProperties)
+
+def : _exported_env_Operation(importer : ocl::OclElement) : lookup::LookupEnvironment =
+ let env = lookup::LookupEnvironment {}
+ in env
+ .addElements(ownedOperations)
+
+def : _exported_env_Property(importer : ocl::OclElement) : lookup::LookupEnvironment =
+ let env = lookup::LookupEnvironment {}
+ in env
+ .addElements(ownedProperties)
+
+
+def : _lookupExportedOperation(importer : ocl::OclElement, oName : String, args : OrderedSet(OCLExpression)) : Operation[?] =
+ let foundOperation = _lookupOperation(_exported_env_Operation(importer), oName, args)
+ in if foundOperation->isEmpty()
+ then null
+ else foundOperation->first()
+ endif
+
+def : lookupExportedOperation(importer : ocl::OclElement, aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
+ _lookupExportedOperation(importer, aPathElementCS.elementName, args)
+
+def : _lookupExportedProperty(importer : ocl::OclElement, pName : String) : Property[?] =
+ let foundProperty = _lookupProperty(_exported_env_Property(importer), pName)
+ in if foundProperty->isEmpty()
+ then null
+ else foundProperty->first()
+ endif
+
+def : lookupExportedProperty(importer : ocl::OclElement, aPathElementCS : cs::PathElementCS) : Property[?] =
+ _lookupExportedProperty(importer, aPathElementCS.elementName)
+context Visitable
+-- Class exports Operation
+
+def : lookupOperationFrom(exporter : Class, aPathElementCS : cs::PathElementCS, args : OrderedSet(OCLExpression)) : Operation[?] =
+ exporter.lookupExportedOperation(self, aPathElementCS, args)
+
+def : lookupOperationFrom(exporter : Class, aPathNameCS : cs::PathNameCS, args : OrderedSet(OCLExpression)) : Operation[?] =
+ lookupOperationFrom(exporter, aPathNameCS.pathElements, args)
+
+def : lookupOperationFrom(exporter : Class, segments : OrderedSet(cs::PathElementCS), args : OrderedSet(OCLExpression)) : Operation[?] =
+ if segments->size() = 1
+ then lookupOperationFrom(exporter, segments->first(), args)
+ else let qualifierSegments = segments->subOrderedSet(1,segments->size()-1),
+ qualifier = lookupClass(qualifierSegments)
+ in qualifier?.lookupQualifiedOperation(segments->last(), args)
+ endif
+-- Class exports Property
+
+def : lookupPropertyFrom(exporter : Class, aPathElementCS : cs::PathElementCS) : Property[?] =
+ exporter.lookupExportedProperty(self, aPathElementCS)
+
+def : lookupPropertyFrom(exporter : Class, aPathNameCS : cs::PathNameCS) : Property[?] =
+ lookupPropertyFrom(exporter, aPathNameCS.pathElements)
+
+def : lookupPropertyFrom(exporter : Class, segments : OrderedSet(cs::PathElementCS)) : Property[?] =
+ if segments->size() = 1
+ then lookupPropertyFrom(exporter, segments->first())
+ else let qualifierSegments = segments->subOrderedSet(1,segments->size()-1),
+ qualifier = lookupClass(qualifierSegments)
+ in qualifier?.lookupQualifiedProperty(segments->last())
+ endif
+context Operation
+def : _unqualified_env_Variable(child : ocl::OclElement) : lookup::LookupEnvironment =
+ parentEnv_Variable().nestedEnv()
+ .addElements(ownedParameters)
+
+context ExpressionInOCL
+def : _unqualified_env_Variable(child : ocl::OclElement) : lookup::LookupEnvironment =
+ parentEnv_Variable().nestedEnv()
+ .addElement(ownedSelfVar)
+
endpackage
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.ecore b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.ecore
index 84d6d4383..9098ce419 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.ecore
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.ecore
@@ -88,9 +88,11 @@
<eClassifiers xsi:type="ecore:EClass" name="PathNameCS" eSuperTypes="#//CSTrace">
<eStructuralFeatures xsi:type="ecore:EReference" name="path" upperBound="-1" eType="#//PathElementCS"
containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="pathElements" upperBound="-1"
+ eType="#//PathElementCS" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PathElementCS" eSuperTypes="#//CSTrace">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="pathName" eType="ecore:EDataType ../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="elementName" eType="ecore:EDataType ../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanExpCS" eSuperTypes="#//BooleanLiteralExpCS">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="boolSymbol" eType="ecore:EDataType ../../../org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel
index 66f74a645..95eb35d7e 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.10.0-SNAPSHOT" modelDirectory="/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.10.0" modelDirectory="/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
modelPluginID="org.eclipse.qvtd.doc.minioclcs.xtext" forceOverwrite="true" modelName="MiniOCLCS"
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- complianceLevel="8.0" copyrightFields="false" runtimeVersion="2.11" usedGenPackages="../../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../../org.eclipse.qvtd.doc.miniocl/model/MiniOCL.genmodel#//miniocl">
+ complianceLevel="8.0" copyrightFields="false" runtimeVersion="2.12" usedGenPackages="../../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../../org.eclipse.qvtd.doc.miniocl/model/MiniOCL.genmodel#//miniocl">
<genPackages prefix="Minioclcs" basePackage="org.eclipse.qvtd.doc" disposableProviderFactory="true"
fileExtensions="mocl" ecorePackage="MiniOCLCS.ecore#/">
<genClasses ecoreClass="MiniOCLCS.ecore#//RootCS">
@@ -70,9 +70,10 @@
<genClasses ecoreClass="MiniOCLCS.ecore#//BooleanLiteralExpCS"/>
<genClasses ecoreClass="MiniOCLCS.ecore#//PathNameCS">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MiniOCLCS.ecore#//PathNameCS/path"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MiniOCLCS.ecore#//PathNameCS/pathElements"/>
</genClasses>
<genClasses ecoreClass="MiniOCLCS.ecore#//PathElementCS">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute MiniOCLCS.ecore#//PathElementCS/pathName"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute MiniOCLCS.ecore#//PathElementCS/elementName"/>
</genClasses>
<genClasses ecoreClass="MiniOCLCS.ecore#//BooleanExpCS">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MiniOCLCS.ecore#//BooleanExpCS/boolSymbol"/>
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/AbstractMiniOCLCSRuntimeModule.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/AbstractMiniOCLCSRuntimeModule.java
index aa44bdc8a..a0d862192 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/AbstractMiniOCLCSRuntimeModule.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/AbstractMiniOCLCSRuntimeModule.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCS.xtextbin b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCS.xtextbin
index c92ba705c..268878f97 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCS.xtextbin
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCS.xtextbin
Binary files differ
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCSStandaloneSetupGenerated.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCSStandaloneSetupGenerated.java
index 5eeb0258e..de01d2116 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCSStandaloneSetupGenerated.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/MiniOCLCSStandaloneSetupGenerated.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanExpCS.java
index 8d1ec9b96..65c9f5adb 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanLiteralExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanLiteralExpCS.java
index 64e2f5d91..ff53c7365 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanLiteralExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/BooleanLiteralExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CSTrace.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CSTrace.java
index c245ba60e..b1a6de518 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CSTrace.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CSTrace.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CallExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CallExpCS.java
index f22dc5223..64ccc72fc 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CallExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/CallExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ClassCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ClassCS.java
index f2963ff0d..e85748afd 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ClassCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ClassCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ConstraintsDefCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ConstraintsDefCS.java
index a44ada289..55a5a6154 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ConstraintsDefCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ConstraintsDefCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ExpCS.java
index 83e0fed93..83a9bff1a 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/IntLiteralExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/IntLiteralExpCS.java
index 781f1761b..225125c41 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/IntLiteralExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/IntLiteralExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/InvariantCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/InvariantCS.java
index 4ca76239b..61468b848 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/InvariantCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/InvariantCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LiteralExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LiteralExpCS.java
index 8dfeac33d..f602907c8 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LiteralExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LiteralExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LogicExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LogicExpCS.java
index 44060e87a..69954186c 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LogicExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/LogicExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsFactory.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsFactory.java
index 06a902e16..7b7c271b4 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsFactory.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsFactory.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsPackage.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsPackage.java
index 1dce78e53..ba9cfa60f 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsPackage.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/MinioclcsPackage.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
@@ -1185,13 +1185,22 @@ public interface MinioclcsPackage extends EPackage
int PATH_NAME_CS__PATH = CS_TRACE_FEATURE_COUNT + 0;
/**
+ * The feature id for the '<em><b>Path Elements</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PATH_NAME_CS__PATH_ELEMENTS = CS_TRACE_FEATURE_COUNT + 1;
+
+ /**
* The number of structural features of the '<em>Path Name CS</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PATH_NAME_CS_FEATURE_COUNT = CS_TRACE_FEATURE_COUNT + 1;
+ int PATH_NAME_CS_FEATURE_COUNT = CS_TRACE_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link org.eclipse.qvtd.doc.minioclcs.impl.PathElementCSImpl <em>Path Element CS</em>}' class.
@@ -1213,13 +1222,13 @@ public interface MinioclcsPackage extends EPackage
int PATH_ELEMENT_CS__AST = CS_TRACE__AST;
/**
- * The feature id for the '<em><b>Path Name</b></em>' attribute.
+ * The feature id for the '<em><b>Element Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PATH_ELEMENT_CS__PATH_NAME = CS_TRACE_FEATURE_COUNT + 0;
+ int PATH_ELEMENT_CS__ELEMENT_NAME = CS_TRACE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Path Element CS</em>' class.
@@ -1845,6 +1854,17 @@ public interface MinioclcsPackage extends EPackage
EReference getPathNameCS_Path();
/**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.qvtd.doc.minioclcs.PathNameCS#getPathElements <em>Path Elements</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Path Elements</em>'.
+ * @see org.eclipse.qvtd.doc.minioclcs.PathNameCS#getPathElements()
+ * @see #getPathNameCS()
+ * @generated
+ */
+ EReference getPathNameCS_PathElements();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS <em>Path Element CS</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1855,15 +1875,15 @@ public interface MinioclcsPackage extends EPackage
EClass getPathElementCS();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS#getPathName <em>Path Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS#getElementName <em>Element Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Path Name</em>'.
- * @see org.eclipse.qvtd.doc.minioclcs.PathElementCS#getPathName()
+ * @return the meta object for the attribute '<em>Element Name</em>'.
+ * @see org.eclipse.qvtd.doc.minioclcs.PathElementCS#getElementName()
* @see #getPathElementCS()
* @generated
*/
- EAttribute getPathElementCS_PathName();
+ EAttribute getPathElementCS_ElementName();
/**
* Returns the meta object for class '{@link org.eclipse.qvtd.doc.minioclcs.BooleanExpCS <em>Boolean Exp CS</em>}'.
@@ -2369,6 +2389,14 @@ public interface MinioclcsPackage extends EPackage
EReference PATH_NAME_CS__PATH = eINSTANCE.getPathNameCS_Path();
/**
+ * The meta object literal for the '<em><b>Path Elements</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PATH_NAME_CS__PATH_ELEMENTS = eINSTANCE.getPathNameCS_PathElements();
+
+ /**
* The meta object literal for the '{@link org.eclipse.qvtd.doc.minioclcs.impl.PathElementCSImpl <em>Path Element CS</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2379,12 +2407,12 @@ public interface MinioclcsPackage extends EPackage
EClass PATH_ELEMENT_CS = eINSTANCE.getPathElementCS();
/**
- * The meta object literal for the '<em><b>Path Name</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Element Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- EAttribute PATH_ELEMENT_CS__PATH_NAME = eINSTANCE.getPathElementCS_PathName();
+ EAttribute PATH_ELEMENT_CS__ELEMENT_NAME = eINSTANCE.getPathElementCS_ElementName();
/**
* The meta object literal for the '{@link org.eclipse.qvtd.doc.minioclcs.impl.BooleanExpCSImpl <em>Boolean Exp CS</em>}' class.
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/NameExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/NameExpCS.java
index 853973dce..83a7b70ca 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/NameExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/NameExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/OperationCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/OperationCS.java
index 0a244102a..5234bed8f 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/OperationCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/OperationCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PackageCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PackageCS.java
index 915c3ffc5..cb3bda0eb 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PackageCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PackageCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ParameterCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ParameterCS.java
index 2516e3f4d..ed41634dd 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ParameterCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/ParameterCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathElementCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathElementCS.java
index 7419209bc..22116e59f 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathElementCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathElementCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
@@ -14,7 +14,7 @@ import org.eclipse.emf.ecore.EObject;
* The following features are supported:
* </p>
* <ul>
- * <li>{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS#getPathName <em>Path Name</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS#getElementName <em>Element Name</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.doc.minioclcs.MinioclcsPackage#getPathElementCS()
@@ -24,29 +24,29 @@ import org.eclipse.emf.ecore.EObject;
public interface PathElementCS extends CSTrace
{
/**
- * Returns the value of the '<em><b>Path Name</b></em>' attribute.
+ * Returns the value of the '<em><b>Element Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Path Name</em>' attribute isn't clear,
+ * If the meaning of the '<em>Element Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Path Name</em>' attribute.
- * @see #setPathName(String)
- * @see org.eclipse.qvtd.doc.minioclcs.MinioclcsPackage#getPathElementCS_PathName()
+ * @return the value of the '<em>Element Name</em>' attribute.
+ * @see #setElementName(String)
+ * @see org.eclipse.qvtd.doc.minioclcs.MinioclcsPackage#getPathElementCS_ElementName()
* @model
* @generated
*/
- String getPathName();
+ String getElementName();
/**
- * Sets the value of the '{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS#getPathName <em>Path Name</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.qvtd.doc.minioclcs.PathElementCS#getElementName <em>Element Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Path Name</em>' attribute.
- * @see #getPathName()
+ * @param value the new value of the '<em>Element Name</em>' attribute.
+ * @see #getElementName()
* @generated
*/
- void setPathName(String value);
+ void setElementName(String value);
} // PathElementCS
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathNameCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathNameCS.java
index a9e024d50..39090f272 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathNameCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PathNameCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
@@ -17,6 +17,7 @@ import org.eclipse.emf.ecore.EObject;
* </p>
* <ul>
* <li>{@link org.eclipse.qvtd.doc.minioclcs.PathNameCS#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.minioclcs.PathNameCS#getPathElements <em>Path Elements</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.doc.minioclcs.MinioclcsPackage#getPathNameCS()
@@ -41,4 +42,20 @@ public interface PathNameCS extends CSTrace
*/
EList<PathElementCS> getPath();
+ /**
+ * Returns the value of the '<em><b>Path Elements</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.qvtd.doc.minioclcs.PathElementCS}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Path Elements</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Path Elements</em>' containment reference list.
+ * @see org.eclipse.qvtd.doc.minioclcs.MinioclcsPackage#getPathNameCS_PathElements()
+ * @model containment="true"
+ * @generated
+ */
+ EList<PathElementCS> getPathElements();
+
} // PathNameCS
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PrimaryExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PrimaryExpCS.java
index 0bb2d1625..f202ddbbd 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PrimaryExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PrimaryExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PropertyCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PropertyCS.java
index b590c500e..aaf39e8fa 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PropertyCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/PropertyCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RootCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RootCS.java
index 2f66c449b..7fe73e92c 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RootCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RootCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RoundedBracketClauseCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RoundedBracketClauseCS.java
index 8fe767716..262760310 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RoundedBracketClauseCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/RoundedBracketClauseCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/StringLiteralExpCS.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/StringLiteralExpCS.java
index 7faaa2511..fdfa17b4f 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/StringLiteralExpCS.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/StringLiteralExpCS.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanExpCSImpl.java
index 27ca9641b..580e5c1dc 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanLiteralExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanLiteralExpCSImpl.java
index c538add80..ca4e94803 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanLiteralExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/BooleanLiteralExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CSTraceImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CSTraceImpl.java
index 722bbeace..8e3407c6b 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CSTraceImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CSTraceImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CallExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CallExpCSImpl.java
index d4010e284..5e7e4148d 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CallExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/CallExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ClassCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ClassCSImpl.java
index 72e65a073..73ff27de1 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ClassCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ClassCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ConstraintsDefCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ConstraintsDefCSImpl.java
index 0f85bcfdd..ed746c683 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ConstraintsDefCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ConstraintsDefCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ExpCSImpl.java
index 7821918d7..1ed3329dd 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/IntLiteralExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/IntLiteralExpCSImpl.java
index b76c2499d..95c077d5e 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/IntLiteralExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/IntLiteralExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/InvariantCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/InvariantCSImpl.java
index 814724566..4de3eb155 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/InvariantCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/InvariantCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LiteralExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LiteralExpCSImpl.java
index 490b60765..f6793b69e 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LiteralExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LiteralExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LogicExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LogicExpCSImpl.java
index f28ee0f6b..8af49d4d6 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LogicExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/LogicExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsFactoryImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsFactoryImpl.java
index 67c587ffd..c8931953e 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsFactoryImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsFactoryImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsPackageImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsPackageImpl.java
index 6f246ae33..37736b738 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsPackageImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/MinioclcsPackageImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
@@ -772,6 +772,16 @@ public class MinioclcsPackageImpl extends EPackageImpl implements MinioclcsPacka
* <!-- end-user-doc -->
* @generated
*/
+ public EReference getPathNameCS_PathElements()
+ {
+ return (EReference)pathNameCSEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getPathElementCS()
{
return pathElementCSEClass;
@@ -782,7 +792,7 @@ public class MinioclcsPackageImpl extends EPackageImpl implements MinioclcsPacka
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getPathElementCS_PathName()
+ public EAttribute getPathElementCS_ElementName()
{
return (EAttribute)pathElementCSEClass.getEStructuralFeatures().get(0);
}
@@ -923,9 +933,10 @@ public class MinioclcsPackageImpl extends EPackageImpl implements MinioclcsPacka
pathNameCSEClass = createEClass(PATH_NAME_CS);
createEReference(pathNameCSEClass, PATH_NAME_CS__PATH);
+ createEReference(pathNameCSEClass, PATH_NAME_CS__PATH_ELEMENTS);
pathElementCSEClass = createEClass(PATH_ELEMENT_CS);
- createEAttribute(pathElementCSEClass, PATH_ELEMENT_CS__PATH_NAME);
+ createEAttribute(pathElementCSEClass, PATH_ELEMENT_CS__ELEMENT_NAME);
booleanExpCSEClass = createEClass(BOOLEAN_EXP_CS);
createEAttribute(booleanExpCSEClass, BOOLEAN_EXP_CS__BOOL_SYMBOL);
@@ -1058,9 +1069,10 @@ public class MinioclcsPackageImpl extends EPackageImpl implements MinioclcsPacka
initEClass(pathNameCSEClass, PathNameCS.class, "PathNameCS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getPathNameCS_Path(), this.getPathElementCS(), null, "path", null, 0, -1, PathNameCS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPathNameCS_PathElements(), this.getPathElementCS(), null, "pathElements", null, 0, -1, PathNameCS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(pathElementCSEClass, PathElementCS.class, "PathElementCS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPathElementCS_PathName(), theEcorePackage.getEString(), "pathName", null, 0, 1, PathElementCS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPathElementCS_ElementName(), theEcorePackage.getEString(), "elementName", null, 0, 1, PathElementCS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(booleanExpCSEClass, BooleanExpCS.class, "BooleanExpCS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getBooleanExpCS_BoolSymbol(), theEcorePackage.getEBoolean(), "boolSymbol", null, 0, 1, BooleanExpCS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/NameExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/NameExpCSImpl.java
index 1614094d6..fd1d2b4df 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/NameExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/NameExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/OperationCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/OperationCSImpl.java
index 55c31cbe9..7007b2040 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/OperationCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/OperationCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PackageCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PackageCSImpl.java
index 0836d9ecc..d10caca10 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PackageCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PackageCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ParameterCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ParameterCSImpl.java
index 183145a30..54d9d5c4d 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ParameterCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/ParameterCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathElementCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathElementCSImpl.java
index 1670e1925..6f9ce1c9f 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathElementCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathElementCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
@@ -21,7 +21,7 @@ import org.eclipse.qvtd.doc.minioclcs.PathElementCS;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.qvtd.doc.minioclcs.impl.PathElementCSImpl#getPathName <em>Path Name</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.minioclcs.impl.PathElementCSImpl#getElementName <em>Element Name</em>}</li>
* </ul>
*
* @generated
@@ -29,24 +29,24 @@ import org.eclipse.qvtd.doc.minioclcs.PathElementCS;
public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
{
/**
- * The default value of the '{@link #getPathName() <em>Path Name</em>}' attribute.
+ * The default value of the '{@link #getElementName() <em>Element Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getPathName()
+ * @see #getElementName()
* @generated
* @ordered
*/
- protected static final String PATH_NAME_EDEFAULT = null;
+ protected static final String ELEMENT_NAME_EDEFAULT = null;
/**
- * The cached value of the '{@link #getPathName() <em>Path Name</em>}' attribute.
+ * The cached value of the '{@link #getElementName() <em>Element Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getPathName()
+ * @see #getElementName()
* @generated
* @ordered
*/
- protected String pathName = PATH_NAME_EDEFAULT;
+ protected String elementName = ELEMENT_NAME_EDEFAULT;
/**
* <!-- begin-user-doc -->
@@ -74,9 +74,9 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
* <!-- end-user-doc -->
* @generated
*/
- public String getPathName()
+ public String getElementName()
{
- return pathName;
+ return elementName;
}
/**
@@ -84,12 +84,12 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
* <!-- end-user-doc -->
* @generated
*/
- public void setPathName(String newPathName)
+ public void setElementName(String newElementName)
{
- String oldPathName = pathName;
- pathName = newPathName;
+ String oldElementName = elementName;
+ elementName = newElementName;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, MinioclcsPackage.PATH_ELEMENT_CS__PATH_NAME, oldPathName, pathName));
+ eNotify(new ENotificationImpl(this, Notification.SET, MinioclcsPackage.PATH_ELEMENT_CS__ELEMENT_NAME, oldElementName, elementName));
}
/**
@@ -101,8 +101,8 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID) {
- case MinioclcsPackage.PATH_ELEMENT_CS__PATH_NAME:
- return getPathName();
+ case MinioclcsPackage.PATH_ELEMENT_CS__ELEMENT_NAME:
+ return getElementName();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -116,8 +116,8 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
public void eSet(int featureID, Object newValue)
{
switch (featureID) {
- case MinioclcsPackage.PATH_ELEMENT_CS__PATH_NAME:
- setPathName((String)newValue);
+ case MinioclcsPackage.PATH_ELEMENT_CS__ELEMENT_NAME:
+ setElementName((String)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -132,8 +132,8 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
public void eUnset(int featureID)
{
switch (featureID) {
- case MinioclcsPackage.PATH_ELEMENT_CS__PATH_NAME:
- setPathName(PATH_NAME_EDEFAULT);
+ case MinioclcsPackage.PATH_ELEMENT_CS__ELEMENT_NAME:
+ setElementName(ELEMENT_NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
@@ -148,8 +148,8 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
public boolean eIsSet(int featureID)
{
switch (featureID) {
- case MinioclcsPackage.PATH_ELEMENT_CS__PATH_NAME:
- return PATH_NAME_EDEFAULT == null ? pathName != null : !PATH_NAME_EDEFAULT.equals(pathName);
+ case MinioclcsPackage.PATH_ELEMENT_CS__ELEMENT_NAME:
+ return ELEMENT_NAME_EDEFAULT == null ? elementName != null : !ELEMENT_NAME_EDEFAULT.equals(elementName);
}
return super.eIsSet(featureID);
}
@@ -165,8 +165,8 @@ public class PathElementCSImpl extends CSTraceImpl implements PathElementCS
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (pathName: ");
- result.append(pathName);
+ result.append(" (elementName: ");
+ result.append(elementName);
result.append(')');
return result.toString();
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathNameCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathNameCSImpl.java
index ff7453276..7bfc83f71 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathNameCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PathNameCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
@@ -30,6 +30,7 @@ import org.eclipse.qvtd.doc.minioclcs.PathNameCS;
* </p>
* <ul>
* <li>{@link org.eclipse.qvtd.doc.minioclcs.impl.PathNameCSImpl#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.minioclcs.impl.PathNameCSImpl#getPathElements <em>Path Elements</em>}</li>
* </ul>
*
* @generated
@@ -47,6 +48,16 @@ public class PathNameCSImpl extends CSTraceImpl implements PathNameCS
protected EList<PathElementCS> path;
/**
+ * The cached value of the '{@link #getPathElements() <em>Path Elements</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPathElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<PathElementCS> pathElements;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -85,12 +96,27 @@ public class PathNameCSImpl extends CSTraceImpl implements PathNameCS
* <!-- end-user-doc -->
* @generated
*/
+ public EList<PathElementCS> getPathElements()
+ {
+ if (pathElements == null) {
+ pathElements = new EObjectContainmentEList<PathElementCS>(PathElementCS.class, this, MinioclcsPackage.PATH_NAME_CS__PATH_ELEMENTS);
+ }
+ return pathElements;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID) {
case MinioclcsPackage.PATH_NAME_CS__PATH:
return ((InternalEList<?>)getPath()).basicRemove(otherEnd, msgs);
+ case MinioclcsPackage.PATH_NAME_CS__PATH_ELEMENTS:
+ return ((InternalEList<?>)getPathElements()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -106,6 +132,8 @@ public class PathNameCSImpl extends CSTraceImpl implements PathNameCS
switch (featureID) {
case MinioclcsPackage.PATH_NAME_CS__PATH:
return getPath();
+ case MinioclcsPackage.PATH_NAME_CS__PATH_ELEMENTS:
+ return getPathElements();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -124,6 +152,10 @@ public class PathNameCSImpl extends CSTraceImpl implements PathNameCS
getPath().clear();
getPath().addAll((Collection<? extends PathElementCS>)newValue);
return;
+ case MinioclcsPackage.PATH_NAME_CS__PATH_ELEMENTS:
+ getPathElements().clear();
+ getPathElements().addAll((Collection<? extends PathElementCS>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -140,6 +172,9 @@ public class PathNameCSImpl extends CSTraceImpl implements PathNameCS
case MinioclcsPackage.PATH_NAME_CS__PATH:
getPath().clear();
return;
+ case MinioclcsPackage.PATH_NAME_CS__PATH_ELEMENTS:
+ getPathElements().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -155,6 +190,8 @@ public class PathNameCSImpl extends CSTraceImpl implements PathNameCS
switch (featureID) {
case MinioclcsPackage.PATH_NAME_CS__PATH:
return path != null && !path.isEmpty();
+ case MinioclcsPackage.PATH_NAME_CS__PATH_ELEMENTS:
+ return pathElements != null && !pathElements.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PrimaryExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PrimaryExpCSImpl.java
index 1e05b4c05..b9369d42e 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PrimaryExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PrimaryExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PropertyCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PropertyCSImpl.java
index 0ff2b0f08..dfea4da61 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PropertyCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/PropertyCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RootCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RootCSImpl.java
index 82876802c..f7a5b3ff1 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RootCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RootCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RoundedBracketClauseCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RoundedBracketClauseCSImpl.java
index 7dfe47bbe..b0466eeca 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RoundedBracketClauseCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/RoundedBracketClauseCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/StringLiteralExpCSImpl.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/StringLiteralExpCSImpl.java
index c25106453..477f130b0 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/StringLiteralExpCSImpl.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/impl/StringLiteralExpCSImpl.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.impl;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsAdapterFactory.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsAdapterFactory.java
index bb29b230e..023bdf09c 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsAdapterFactory.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsAdapterFactory.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.util;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsSwitch.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsSwitch.java
index 4fe2d65c0..384ff3679 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsSwitch.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/util/MinioclcsSwitch.java
@@ -1,5 +1,5 @@
/**
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.minioclcs.util;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/_MiniOCLCS2AS_qvtp_qvtcas/MiniOCLCS2AS_qvtp_qvtcas.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/_MiniOCLCS2AS_qvtp_qvtcas/MiniOCLCS2AS_qvtp_qvtcas.java
index ead58cdc3..f97964fb4 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/_MiniOCLCS2AS_qvtp_qvtcas/MiniOCLCS2AS_qvtp_qvtcas.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/_MiniOCLCS2AS_qvtp_qvtcas/MiniOCLCS2AS_qvtp_qvtcas.java
@@ -59,6 +59,7 @@ import org.eclipse.qvtd.doc.miniocl.VariableExp;
import org.eclipse.qvtd.doc.miniocl.lookup.util.MiniOCLLookupResult;
import org.eclipse.qvtd.doc.miniocl.lookup.util.MiniOCLLookupSolver;
import org.eclipse.qvtd.doc.miniocl.util.Visitable;
+import org.eclipse.qvtd.doc.minioclcs.CSTrace;
import org.eclipse.qvtd.doc.minioclcs.CallExpCS;
import org.eclipse.qvtd.doc.minioclcs.ClassCS;
import org.eclipse.qvtd.doc.minioclcs.ExpCS;
@@ -96,6 +97,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull NsURIPackageId PACKid_http_c_s_s_www_eclipse_org_s_qvt_s_2015_s_QVTbaseLibrary = IdManager.getNsURIPackageId("http://www.eclipse.org/qvt/2015/QVTbaseLibrary", "qvtbaselib", null);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull NsURIPackageId PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCLCS = IdManager.getNsURIPackageId("http://www.eclipse.org/qvtd/doc/MiniOCLCS", null, MinioclcsPackage.eINSTANCE);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull NsURIPackageId PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCL_s_1_0 = IdManager.getNsURIPackageId("http://www.eclipse.org/qvtd/doc/MiniOCL/1.0", null, MiniOCLPackage.eINSTANCE);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_CSTrace = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCLCS.getClassId("CSTrace", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_CallExpCS = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCLCS.getClassId("CallExpCS", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Class = PACKid_$metamodel$.getClassId("Class", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_ClassCS = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_doc_s_MiniOCLCS.getClassId("ClassCS", 0);
@@ -190,6 +192,14 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
{7} // 7 : RootCS -> {RootCS}
};
+ protected final @NonNull AbstractInvocationConstructor CTOR_m_NameExpCS_ast_1 = new AbstractInvocationConstructor(idResolver)
+ {
+ @Override
+ public @NonNull MAP_m_NameExpCS_ast_1 newInstance(@NonNull Object @NonNull [] values) {
+ return new MAP_m_NameExpCS_ast_1(values);
+ }
+ };
+
protected final @NonNull AbstractInvocationConstructor CTOR_m_NameExpCS_ast_3 = new AbstractInvocationConstructor(idResolver)
{
@Override
@@ -198,11 +208,11 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
};
- protected final @NonNull AbstractInvocationConstructor CTOR_m_NameExpCS_ast_4 = new AbstractInvocationConstructor(idResolver)
+ protected final @NonNull AbstractInvocationConstructor CTOR_m_NameExpCS_ast_expName = new AbstractInvocationConstructor(idResolver)
{
@Override
- public @NonNull MAP_m_NameExpCS_ast_4 newInstance(@NonNull Object @NonNull [] values) {
- return new MAP_m_NameExpCS_ast_4(values);
+ public @NonNull MAP_m_NameExpCS_ast_expName newInstance(@NonNull Object @NonNull [] values) {
+ return new MAP_m_NameExpCS_ast_expName(values);
}
};
@@ -214,11 +224,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
};
- protected final @NonNull AbstractInvocationConstructor CTOR_m_NameExpCS_ast_expName_2 = new AbstractInvocationConstructor(idResolver)
+ protected final @NonNull AbstractInvocationConstructor CTOR_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr = new AbstractInvocationConstructor(idResolver)
+ {
+ @Override
+ public @NonNull MAP_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr newInstance(@NonNull Object @NonNull [] values) {
+ return new MAP_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr(values);
+ }
+ };
+
+ protected final @NonNull AbstractInvocationConstructor CTOR_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi = new AbstractInvocationConstructor(idResolver)
{
@Override
- public @NonNull MAP_m_NameExpCS_ast_expName_2 newInstance(@NonNull Object @NonNull [] values) {
- return new MAP_m_NameExpCS_ast_expName_2(values);
+ public @NonNull MAP_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi newInstance(@NonNull Object @NonNull [] values) {
+ return new MAP_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi(values);
}
};
@@ -257,15 +275,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments);
if (aPathElementCS == null) {
- throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Package> _lookupResult = lookupSolver._lookupUnqualifiedPackage(self_0, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Package> _lookupResult = lookupSolver._lookupUnqualifiedPackage(self_0, (String)elementName);
Package _lookupUnqualifiedPackage = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedPackage = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
symbol_1 = _lookupUnqualifiedPackage;
}
@@ -293,15 +311,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments);
if (aPathElementCS_0 == null) {
- throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw new InvalidValueException("Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<Package> _lookupResult_0 = lookupSolver._lookupQualifiedPackage(qualifier, (String)pathName_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<Package> _lookupResult_0 = lookupSolver._lookupQualifiedPackage(qualifier, (String)elementName_0);
Package _lookupQualifiedPackage = null;
if (_lookupResult_0.size() == 1) {
_lookupQualifiedPackage = _lookupResult_0.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS_0,elementName_0);
};
safe_lookupQualifiedPackage_source = _lookupQualifiedPackage;
}
@@ -330,7 +348,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* ;
* _'\u00ABRootCS\u00BB' : Set(minioclcs::RootCS) = leftCS.objectsOfKind(minioclcs::RootCS)
* ;
- * ji_CallExpCS : Set(minioclcs::CallExpCS)[*|1] = _'\u00ABCallExpCS\u00BB';
+ * ji_CallExpCS_1 : Set(minioclcs::CallExpCS)[*|1] = _'\u00ABCallExpCS\u00BB';
* ji_ClassCS : Set(minioclcs::ClassCS)[*|1] = _'\u00ABClassCS\u00BB';
* ji_NameExpCS : Set(minioclcs::NameExpCS)[*|1] = _'\u00ABNameExpCS\u00BB';
* ji_OperationCS : Set(minioclcs::OperationCS)[*|1] = _'\u00ABOperationCS\u00BB';
@@ -368,45 +386,21 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* lRootCS := loop0;
* }}
* for loop0 : minioclcs::ClassCS in ji_ClassCS {
- * call m_OrderedSet_ClassCS {
+ * call m_OrderedSet_ClassCS_2 {
* lClassCS := loop0;
* }}
* for loop0 : minioclcs::OperationCS in ji_OperationCS {
- * call m_OrderedSet_OperationCS {
+ * call m_OrderedSet_OperationCS_1 {
* lOperationCS := loop0;
* }}
* for loop0 : minioclcs::PackageCS in ji_PackageCS {
- * call m_OrderedSet_PackageCS {
+ * call m_OrderedSet_PackageCS_2 {
* lPackageCS := loop0;
* }}
* for loop0 : minioclcs::ParameterCS in ji_ParameterCS {
* call m_String_ParameterCS {
* lParameterCS := loop0;
* }}
- * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_PropertyCallExp_NameExpCS_NamedElement_Variable {
- * lNameExpCS := loop0;
- * }}
- * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_VariableExp_NameExpCS_NamedElement_Variable {
- * lNameExpCS := loop0;
- * }}
- * for loop0 : minioclcs::CallExpCS in ji_CallExpCS {
- * call m_CallExpCS_ast_nameExp {
- * lCallExpCS := loop0;
- * }}
- * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_NameExpCS_ast {
- * lNameExpCS := loop0;
- * }}
- * for loop0 : minioclcs::OperationCS in ji_OperationCS {
- * call m_OperationCS_ast_body {
- * lOperationCS := loop0;
- * }}
- * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_NameExpCS_ast_expName {
- * lNameExpCS := loop0;
- * }}
* for loop0 : minioclcs::PropertyCS in ji_PropertyCS {
* call m_String_PropertyCS {
* lPropertyCS := loop0;
@@ -427,24 +421,28 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* call m_ParameterCS_ast_typeRef {
* lParameterCS := loop0;
* }}
+ * for loop0 : minioclcs::PropertyCS in ji_PropertyCS {
+ * call m_PropertyCS_ast_typeRef {
+ * lPropertyCS := loop0;
+ * }}
* for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_NameExpCS_ast_1 {
+ * call m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr {
* lNameExpCS := loop0;
* }}
* for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_NameExpCS_ast_2 {
+ * call m_VariableExp_NameExpCS_CallExpCS_Element_Expressi {
* lNameExpCS := loop0;
* }}
- * for loop0 : minioclcs::PropertyCS in ji_PropertyCS {
- * call m_PropertyCS_ast_typeRef {
- * lPropertyCS := loop0;
+ * for loop0 : minioclcs::CallExpCS in ji_CallExpCS_1 {
+ * call m_CallExpCS_ast_nameExp {
+ * lCallExpCS := loop0;
* }}
* for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_NameExpCS_ast_expName_1 {
+ * call m_NameExpCS_ast {
* lNameExpCS := loop0;
* }}
* for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
- * call m_NameExpCS_ast_3 {
+ * call m_NameExpCS_ast_2 {
* lNameExpCS := loop0;
* }}
* for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
@@ -455,6 +453,26 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* call m_NameExpCS_ast_4 {
* lNameExpCS := loop0;
* }}
+ * for loop0 : minioclcs::OperationCS in ji_OperationCS {
+ * call m_OperationCS_ast_body {
+ * lOperationCS := loop0;
+ * }}
+ * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
+ * call m_NameExpCS_ast_expName {
+ * lNameExpCS := loop0;
+ * }}
+ * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
+ * call m_NameExpCS_ast_1 {
+ * lNameExpCS := loop0;
+ * }}
+ * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
+ * call m_NameExpCS_ast_expName_1 {
+ * lNameExpCS := loop0;
+ * }}
+ * for loop0 : minioclcs::NameExpCS in ji_NameExpCS {
+ * call m_NameExpCS_ast_3 {
+ * lNameExpCS := loop0;
+ * }}
*/
protected boolean MAP___root__() {
try {
@@ -477,9 +495,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_RootCS_0 = idResolver.getClass(CLSSid_RootCS, null);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SetValue objectsOfKind_6 = ModelObjectsOfKindOperation.INSTANCE.evaluate(executor, SET_CLSSid_RootCS, models[0/*leftCS*/], TYP_minioclcs_c_c_RootCS_0);
// connection variables
- final SetValue.@NonNull Accumulator ji_CallExpCS = (SetValue.Accumulator)ValueUtil.createCollectionAccumulatorValue(SET_CLSSid_CallExpCS);
+ final SetValue.@NonNull Accumulator ji_CallExpCS_1 = (SetValue.Accumulator)ValueUtil.createCollectionAccumulatorValue(SET_CLSSid_CallExpCS);
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS iterator : ValueUtil.typedIterable(CallExpCS.class, objectsOfKind)) {
- ji_CallExpCS.add(iterator);
+ ji_CallExpCS_1.add(iterator);
}
final SetValue.@NonNull Accumulator ji_ClassCS = (SetValue.Accumulator)ValueUtil.createCollectionAccumulatorValue(SET_CLSSid_ClassCS);
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS iterator_0 : ValueUtil.typedIterable(ClassCS.class, objectsOfKind_0)) {
@@ -532,70 +550,70 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
MAP_m_Root_RootCS(loop0_5);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS loop0_6 : ValueUtil.typedIterable(ClassCS.class, ji_ClassCS)) {
- MAP_m_OrderedSet_ClassCS(loop0_6);
+ MAP_m_OrderedSet_ClassCS_2(loop0_6);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS loop0_7 : ValueUtil.typedIterable(OperationCS.class, ji_OperationCS)) {
- MAP_m_OrderedSet_OperationCS(loop0_7);
+ MAP_m_OrderedSet_OperationCS_1(loop0_7);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PackageCS loop0_8 : ValueUtil.typedIterable(PackageCS.class, ji_PackageCS)) {
- MAP_m_OrderedSet_PackageCS(loop0_8);
+ MAP_m_OrderedSet_PackageCS_2(loop0_8);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ParameterCS loop0_9 : ValueUtil.typedIterable(ParameterCS.class, ji_ParameterCS)) {
MAP_m_String_ParameterCS(loop0_9);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_10 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- MAP_m_PropertyCallExp_NameExpCS_NamedElement_Variable(loop0_10);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PropertyCS loop0_10 : ValueUtil.typedIterable(PropertyCS.class, ji_PropertyCS)) {
+ MAP_m_String_PropertyCS(loop0_10);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_11 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- MAP_m_VariableExp_NameExpCS_NamedElement_Variable(loop0_11);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull RootCS loop0_11 : ValueUtil.typedIterable(RootCS.class, ji_RootCS)) {
+ MAP_m_OrderedSet_RootCS(loop0_11);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS loop0_12 : ValueUtil.typedIterable(CallExpCS.class, ji_CallExpCS)) {
- MAP_m_CallExpCS_ast_nameExp(loop0_12);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS loop0_12 : ValueUtil.typedIterable(ClassCS.class, ji_ClassCS)) {
+ MAP_m_ClassCS_ast_extends(loop0_12);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_13 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- MAP_m_NameExpCS_ast(loop0_13);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS loop0_13 : ValueUtil.typedIterable(OperationCS.class, ji_OperationCS)) {
+ MAP_m_OperationCS_ast_resultRef(loop0_13);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS loop0_14 : ValueUtil.typedIterable(OperationCS.class, ji_OperationCS)) {
- MAP_m_OperationCS_ast_body(loop0_14);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ParameterCS loop0_14 : ValueUtil.typedIterable(ParameterCS.class, ji_ParameterCS)) {
+ MAP_m_ParameterCS_ast_typeRef(loop0_14);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_15 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- MAP_m_NameExpCS_ast_expName(loop0_15);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PropertyCS loop0_15 : ValueUtil.typedIterable(PropertyCS.class, ji_PropertyCS)) {
+ MAP_m_PropertyCS_ast_typeRef(loop0_15);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PropertyCS loop0_16 : ValueUtil.typedIterable(PropertyCS.class, ji_PropertyCS)) {
- MAP_m_String_PropertyCS(loop0_16);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_16 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
+ invoke(CTOR_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr, loop0_16);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull RootCS loop0_17 : ValueUtil.typedIterable(RootCS.class, ji_RootCS)) {
- MAP_m_OrderedSet_RootCS(loop0_17);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_17 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
+ invoke(CTOR_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi, loop0_17);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS loop0_18 : ValueUtil.typedIterable(ClassCS.class, ji_ClassCS)) {
- MAP_m_ClassCS_ast_extends(loop0_18);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS loop0_18 : ValueUtil.typedIterable(CallExpCS.class, ji_CallExpCS_1)) {
+ MAP_m_CallExpCS_ast_nameExp(loop0_18);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS loop0_19 : ValueUtil.typedIterable(OperationCS.class, ji_OperationCS)) {
- MAP_m_OperationCS_ast_resultRef(loop0_19);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_19 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
+ MAP_m_NameExpCS_ast(loop0_19);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ParameterCS loop0_20 : ValueUtil.typedIterable(ParameterCS.class, ji_ParameterCS)) {
- MAP_m_ParameterCS_ast_typeRef(loop0_20);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_20 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
+ MAP_m_NameExpCS_ast_2(loop0_20);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_21 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- MAP_m_NameExpCS_ast_1(loop0_21);
+ MAP_m_NameExpCS_ast_expName_2(loop0_21);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_22 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- MAP_m_NameExpCS_ast_2(loop0_22);
+ MAP_m_NameExpCS_ast_4(loop0_22);
}
- for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PropertyCS loop0_23 : ValueUtil.typedIterable(PropertyCS.class, ji_PropertyCS)) {
- MAP_m_PropertyCS_ast_typeRef(loop0_23);
+ for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS loop0_23 : ValueUtil.typedIterable(OperationCS.class, ji_OperationCS)) {
+ MAP_m_OperationCS_ast_body(loop0_23);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_24 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- invoke(CTOR_m_NameExpCS_ast_expName_1, loop0_24);
+ invoke(CTOR_m_NameExpCS_ast_expName, loop0_24);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_25 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- invoke(CTOR_m_NameExpCS_ast_3, loop0_25);
+ invoke(CTOR_m_NameExpCS_ast_1, loop0_25);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_26 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- invoke(CTOR_m_NameExpCS_ast_expName_2, loop0_26);
+ invoke(CTOR_m_NameExpCS_ast_expName_1, loop0_26);
}
for (org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS loop0_27 : ValueUtil.typedIterable(NameExpCS.class, ji_NameExpCS)) {
- invoke(CTOR_m_NameExpCS_ast_4, loop0_27);
+ invoke(CTOR_m_NameExpCS_ast_3, loop0_27);
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean __root__ = ValueUtil.TRUE_VALUE;
return __root__;
@@ -656,6 +674,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
// property assignments
lCallExpCS.setAst(symbol_2);
+ objectManager.assigned(lCallExpCS, MinioclcsPackage.Literals.CS_TRACE__AST, symbol_2, null);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_CallExpCS_ast_nameExp = ValueUtil.TRUE_VALUE;
raw_ast = m_CallExpCS_ast_nameExp;
}
@@ -739,10 +758,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_4 == null) {
- throw throwNull(lClassCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lClassCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::pathElements\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = symbol_4.getPath();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = symbol_4.getPathElements();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_segments_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, segments_0);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_segments_0);
final /*@Thrown*/ boolean eq = size.equals(INT_1);
@@ -750,15 +769,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS == null) {
- throw throwNull(lClassCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lClassCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)elementName);
org.eclipse.qvtd.doc.miniocl.Class _lookupUnqualifiedClass = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedClass = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
symbol_7 = _lookupUnqualifiedClass;
}
@@ -786,15 +805,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS_0 == null) {
- throw throwNull(lClassCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lClassCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)pathName_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)elementName_0);
org.eclipse.qvtd.doc.miniocl.Class _lookupQualifiedClass = null;
if (_lookupResult_0.size() == 1) {
_lookupQualifiedClass = _lookupResult_0.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS_0,elementName_0);
};
safe_lookupQualifiedClass_source = _lookupQualifiedClass;
}
@@ -872,205 +891,6 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* map m_NameExpCS_ast in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
- * {_'if' : minioclcs::CallExpCS[?];
- * parentAsCallExpCS : minioclcs::CallExpCS[?];
- * |}
- * rightAS ( |)
- * {aPropertyCallExp : miniocl::PropertyCallExp[1];
- * ast : miniocl::Element[1];
- * if1 : miniocl::Element[?];
- * ownedSource : miniocl::OCLExpression[1];
- * |}
- * where ( |
- * lNameExpCS.isPropCallExpWithExplicitSource()
- * )
- * {_'=' : Boolean[1];
- * _'=1' : Boolean[1];
- * _'=2' : Boolean[1];
- * |
- * aPropertyCallExp := lNameExpCS.ast;
- * ast := lNameExpCS.ast;
- * parentAsCallExpCS := lNameExpCS.parentAsCallExpCS();
- * _'=' := parentAsCallExpCS =
- * null;
- * _'if' := if _'='
- * then null
- * else parentAsCallExpCS.source
- * endif;
- * _'=1' := _'if' =
- * null;
- * if1 := if _'=1'
- * then null
- * else _'if'.ast
- * endif;
- * _'=2' := if1 =
- * null;
- * ownedSource := if _'=2'
- * then null
- * else if1.oclAsType(miniocl::OCLExpression)
- * endif;
- * aPropertyCallExp.ownedSource := ownedSource;
- * }
- *
- */
- protected boolean MAP_m_NameExpCS_ast(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS) {
- try {
- // predicates and unrealized variables
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
- /*@Caught*/ @NonNull Object CAUGHT_eq;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS.getRoundedBrackets();
- final /*@Thrown*/ boolean eq = roundedBrackets == null;
- CAUGHT_eq = eq;
- }
- catch (Exception e) {
- CAUGHT_eq = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_symbol_1;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
- if (oclIsKindOf) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
- symbol_0 = oclAsType;
- }
- else {
- symbol_0 = null;
- }
- final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
- /*@Thrown*/ boolean symbol_1;
- if (eq_0) {
- symbol_1 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_0 == null) {
- throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS.equals(nameExp);
- symbol_1 = eq_1;
- }
- CAUGHT_symbol_1 = symbol_1;
- }
- catch (Exception e) {
- CAUGHT_symbol_1 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
- if (and == null) {
- throw throwNull(lNameExpCS, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_16;
- if (and) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS.getAst();
- final /*@Thrown*/ boolean symbol_2 = ast != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
- if (symbol_2) {
- final /*@NonInvalid*/ boolean symbol_3 = ast instanceof PropertyCallExp;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_15;
- if (symbol_3) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_4 = (PropertyCallExp)ast;
- if (symbol_4 == null) {
- throw throwNull(lNameExpCS, "Null where non-null value required");
- }
- final /*@Thrown*/ boolean symbol_5 = ast != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
- if (symbol_5) {
- if (ast == null) {
- throw throwNull(lNameExpCS, "Null where non-null value required");
- }
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_6;
- if (oclIsKindOf_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
- symbol_6 = oclAsType_0;
- }
- else {
- symbol_6 = null;
- }
- final /*@Thrown*/ boolean symbol_7 = symbol_6 == null;
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_8;
- if (symbol_7) {
- symbol_8 = null;
- }
- else {
- if (symbol_6 == null) {
- throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::source\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS source = symbol_6.getSource();
- symbol_8 = source;
- }
- final /*@Thrown*/ boolean symbol_9 = symbol_8 == null;
- /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element symbol_10;
- if (symbol_9) {
- symbol_10 = null;
- }
- else {
- if (symbol_8 == null) {
- throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CSTrace::ast\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast_1 = symbol_8.getAst();
- symbol_10 = ast_1;
- }
- final /*@Thrown*/ boolean symbol_11 = symbol_10 == null;
- /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable OCLExpression symbol_12;
- if (symbol_11) {
- symbol_12 = null;
- }
- else {
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_OCLExpression_0 = idResolver.getClass(CLSSid_OCLExpression, null);
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull OCLExpression oclAsType_1 = ClassUtil.nonNullState((OCLExpression)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, symbol_10, TYP_miniocl_c_c_OCLExpression_0));
- symbol_12 = oclAsType_1;
- }
- final /*@Thrown*/ boolean symbol_13 = symbol_12 != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ownedSource;
- if (symbol_13) {
- if (symbol_12 == null) {
- throw throwNull(lNameExpCS, "Null where non-null value required");
- }
- // property assignments
- symbol_4.setOwnedSource(symbol_12);
- objectManager.assigned(symbol_4, MiniOCLPackage.Literals.CALL_EXP__OWNED_SOURCE, symbol_12, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast = ValueUtil.TRUE_VALUE;
- raw_ownedSource = m_NameExpCS_ast;
- }
- else {
- raw_ownedSource = ValueUtil.FALSE_VALUE;
- }
- raw_ast = raw_ownedSource;
- }
- else {
- raw_ast = ValueUtil.FALSE_VALUE;
- }
- symbol_15 = raw_ast;
- }
- else {
- symbol_15 = ValueUtil.FALSE_VALUE;
- }
- raw_aPropertyCallExp = symbol_15;
- }
- else {
- raw_aPropertyCallExp = ValueUtil.FALSE_VALUE;
- }
- symbol_16 = raw_aPropertyCallExp;
- }
- else {
- symbol_16 = ValueUtil.FALSE_VALUE;
- }
- return symbol_16;
- } catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast", e);
- }
- }
-
- /**
- *
- * map m_NameExpCS_ast_1 in MiniOCLCS2AS_qvtp_qvtcas {
- * leftCS (lNameExpCS : minioclcs::NameExpCS[1];
- * |)
* { |}
* rightAS ( |)
* {aPropertyCallExp : miniocl::PropertyCallExp[1];
@@ -1096,13 +916,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected boolean MAP_m_NameExpCS_ast_1(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_0) {
+ protected boolean MAP_m_NameExpCS_ast(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS) {
try {
// predicates and unrealized variables
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
/*@Caught*/ @NonNull Object CAUGHT_eq;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_0.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS.getRoundedBrackets();
final /*@Thrown*/ boolean eq = roundedBrackets == null;
CAUGHT_eq = eq;
}
@@ -1111,7 +931,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_symbol_1;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
@@ -1129,10 +949,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_0 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_0.equals(nameExp);
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS.equals(nameExp);
symbol_1 = eq_1;
}
CAUGHT_symbol_1 = symbol_1;
@@ -1143,7 +963,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(and);
if (not == null) {
- throw throwNull(lNameExpCS_0, "Null if condition");
+ throw throwNull(lNameExpCS, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_17;
if (not) {
@@ -1153,7 +973,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
try {
/*@Caught*/ @NonNull Object CAUGHT_eq_2;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_0.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS.getRoundedBrackets();
final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
CAUGHT_eq_2 = eq_2;
}
@@ -1162,7 +982,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @Nullable Object CAUGHT_not_0;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
@@ -1180,10 +1000,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_2 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
- final /*@Thrown*/ boolean eq_4 = lNameExpCS_0.equals(nameExp_0);
+ final /*@Thrown*/ boolean eq_4 = lNameExpCS.equals(nameExp_0);
symbol_3 = eq_4;
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
@@ -1200,9 +1020,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_eq_5;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_0.getExpName();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS.getExpName();
if (expName == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
@@ -1222,28 +1042,31 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_ne;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_0.getAst();
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_1 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_1.getAst();
if (self_1 == null) {
- throw throwNull(lNameExpCS_0, "Null where non-null value required");
+ throw throwNull(lNameExpCS, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_0.getExpName();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS.getExpName();
if (expName_0 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
Variable _lookupUnqualifiedVariable = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedVariable = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
CAUGHT_ne = ne;
@@ -1254,97 +1077,58 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_1, CAUGHT_ne);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_1 = BooleanNotOperation.INSTANCE.evaluate(and_2);
if (not_1 == null) {
- throw throwNull(lNameExpCS_0, "Null if condition");
+ throw throwNull(lNameExpCS, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_16;
if (not_1) {
- /*@Caught*/ @Nullable Object CAUGHT_and_3;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_6;
try {
- /*@Caught*/ @NonNull Object CAUGHT_eq_6;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_0.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_6 = roundedBrackets_1 == null;
- CAUGHT_eq_6 = eq_6;
- }
- catch (Exception e) {
- CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @Nullable Object CAUGHT_not_2;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
- if (oclIsKindOf_1) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_1 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
- symbol_4 = oclAsType_1;
- }
- else {
- symbol_4 = null;
- }
- final /*@Thrown*/ boolean eq_7 = symbol_4 == null;
- /*@Thrown*/ boolean symbol_5;
- if (eq_7) {
- symbol_5 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_4 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
- final /*@Thrown*/ boolean eq_8 = lNameExpCS_0.equals(nameExp_1);
- symbol_5 = eq_8;
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(symbol_5);
- CAUGHT_not_2 = not_2;
- }
- catch (Exception e) {
- CAUGHT_not_2 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_6, CAUGHT_not_2);
- CAUGHT_and_3 = and_3;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_6 = roundedBrackets_1 == null;
+ CAUGHT_eq_6 = eq_6;
}
catch (Exception e) {
- CAUGHT_and_3 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_eq_9;
+ /*@Caught*/ @Nullable Object CAUGHT_not_2;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_2 = lNameExpCS_0.getAst();
- if (self_2 == null) {
- throw throwNull(lNameExpCS_0, "Null where non-null value required");
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
+ if (oclIsKindOf_1) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_2 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
+ symbol_4 = oclAsType_2;
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_0.getExpName();
- if (expName_1 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ else {
+ symbol_4 = null;
}
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_1 = expName_1.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_1 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_1);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_1);
- if (aPathElementCS_0 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(self_2, (String)pathName_0);
- Variable _lookupUnqualifiedVariable_0 = null;
- if (_lookupResult_0.size() == 1) {
- _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
- } else {
- handleLookupError(aPathElementCS_0,pathName_0);
- };
- final /*@Thrown*/ boolean eq_9 = _lookupUnqualifiedVariable_0 == null;
- CAUGHT_eq_9 = eq_9;
+ final /*@Thrown*/ boolean eq_7 = symbol_4 == null;
+ /*@Thrown*/ boolean symbol_5;
+ if (eq_7) {
+ symbol_5 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_4 == null) {
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
+ final /*@Thrown*/ boolean eq_8 = lNameExpCS.equals(nameExp_1);
+ symbol_5 = eq_8;
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(symbol_5);
+ CAUGHT_not_2 = not_2;
}
catch (Exception e) {
- CAUGHT_eq_9 = ValueUtil.createInvalidValue(e);
+ CAUGHT_not_2 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_4 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_3, CAUGHT_eq_9);
- if (and_4 == null) {
- throw throwNull(lNameExpCS_0, "Null if condition");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_6, CAUGHT_not_2);
+ if (and_3 == null) {
+ throw throwNull(lNameExpCS, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_15;
- if (and_4) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_0.getAst();
+ if (and_3) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS.getAst();
final /*@Thrown*/ boolean symbol_6 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
if (symbol_6) {
@@ -1353,37 +1137,37 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (symbol_7) {
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_8 = (PropertyCallExp)ast;
if (symbol_8 == null) {
- throw throwNull(lNameExpCS_0, "Null where non-null value required");
+ throw throwNull(lNameExpCS, "Null where non-null value required");
}
final /*@Thrown*/ boolean symbol_9 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
if (symbol_9) {
if (ast == null) {
- throw throwNull(lNameExpCS_0, "Null where non-null value required");
+ throw throwNull(lNameExpCS, "Null where non-null value required");
}
- MiniOCLLookupResult<Variable> _lookupResult_1 = lookupSolver._lookupUnqualifiedVariable(symbol_8, STR_self);
- Variable _lookupUnqualifiedVariable_1 = null;
- if (_lookupResult_1.size() == 1) {
- _lookupUnqualifiedVariable_1 = _lookupResult_1.getSingleResult();
+ MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(symbol_8, STR_self);
+ Variable _lookupUnqualifiedVariable_0 = null;
+ if (_lookupResult_0.size() == 1) {
+ _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
} else {
};
- if (_lookupUnqualifiedVariable_1 == null) {
- throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCL/1.0\'::TypedElement::type\'");
+ if (_lookupUnqualifiedVariable_0 == null) {
+ throw throwNull(lNameExpCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCL/1.0\'::TypedElement::type\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class type = _lookupUnqualifiedVariable_1.getType();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class type = _lookupUnqualifiedVariable_0.getType();
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Property CTORid_referredVariable = idResolver.getProperty(PROPid_referredVariable);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Property CTORid_type = idResolver.getProperty(PROPid_type);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_VariableExp_0 = idResolver.getClass(CLSSid_VariableExp, null);
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull VariableExp symbol_12 = (VariableExp)TYP_miniocl_c_c_VariableExp_0.createInstance();
- CTORid_referredVariable.initValue(symbol_12, _lookupUnqualifiedVariable_1);
+ CTORid_referredVariable.initValue(symbol_12, _lookupUnqualifiedVariable_0);
CTORid_type.initValue(symbol_12, type);
models[1/*rightAS*/].add(symbol_12);
// property assignments
symbol_8.setOwnedSource(symbol_12);
objectManager.assigned(symbol_8, MiniOCLPackage.Literals.CALL_EXP__OWNED_SOURCE, symbol_12, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_1 = ValueUtil.TRUE_VALUE;
- raw_ast = m_NameExpCS_ast_1;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast = ValueUtil.TRUE_VALUE;
+ raw_ast = m_NameExpCS_ast;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
@@ -1415,254 +1199,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return symbol_17;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_1", e);
- }
- }
-
- /**
- *
- * map m_NameExpCS_ast_2 in MiniOCLCS2AS_qvtp_qvtcas {
- * leftCS (lNameExpCS : minioclcs::NameExpCS[1];
- * |)
- * { |}
- * rightAS ( |)
- * {aVariableExp : miniocl::VariableExp[1];
- * ast : miniocl::Element[1];
- * referredVariable : miniocl::Variable[1];
- * type : miniocl::Class[1];
- * |}
- * where ( |
- * lNameExpCS.isVariableExp()
- * not lNameExpCS.isPropCallExpWithExplicitSource())
- * { |
- * aVariableExp := lNameExpCS.ast;
- * ast := lNameExpCS.ast;
- * referredVariable := aVariableExp.referredVariable;
- * type := referredVariable.type;
- * aVariableExp.type := type;
- * }
- *
- */
- protected boolean MAP_m_NameExpCS_ast_2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_1) {
- try {
- // predicates and unrealized variables
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
- /*@Caught*/ @Nullable Object CAUGHT_and_0;
- try {
- /*@Caught*/ @Nullable Object CAUGHT_and;
- try {
- /*@Caught*/ @NonNull Object CAUGHT_eq;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_1.getRoundedBrackets();
- final /*@Thrown*/ boolean eq = roundedBrackets == null;
- CAUGHT_eq = eq;
- }
- catch (Exception e) {
- CAUGHT_eq = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @Nullable Object CAUGHT_not;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_1);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
- if (oclIsKindOf) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
- symbol_0 = oclAsType;
- }
- else {
- symbol_0 = null;
- }
- final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
- /*@Thrown*/ boolean symbol_1;
- if (eq_0) {
- symbol_1 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_0 == null) {
- throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_1.equals(nameExp);
- symbol_1 = eq_1;
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(symbol_1);
- CAUGHT_not = not;
- }
- catch (Exception e) {
- CAUGHT_not = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_not);
- CAUGHT_and = and;
- }
- catch (Exception e) {
- CAUGHT_and = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_eq_2;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_1.getExpName();
- if (expName == null) {
- throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
- }
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
- final /*@Thrown*/ boolean eq_2 = size.equals(INT_1);
- CAUGHT_eq_2 = eq_2;
- }
- catch (Exception e) {
- CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and, CAUGHT_eq_2);
- CAUGHT_and_0 = and_0;
- }
- catch (Exception e) {
- CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_ne;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_1.getAst();
- if (self_1 == null) {
- throw throwNull(lNameExpCS_1, "Null where non-null value required");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_1.getExpName();
- if (expName_0 == null) {
- throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
- }
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
- if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
- Variable _lookupUnqualifiedVariable = null;
- if (_lookupResult.size() == 1) {
- _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
- } else {
- handleLookupError(aPathElementCS,pathName);
- };
- final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
- CAUGHT_ne = ne;
- }
- catch (Exception e) {
- CAUGHT_ne = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_ne);
- if (and_1 == null) {
- throw throwNull(lNameExpCS_1, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_11;
- if (and_1) {
- /*@Caught*/ @NonNull Object CAUGHT_eq_3;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_1.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_3 = roundedBrackets_0 == null;
- CAUGHT_eq_3 = eq_3;
- }
- catch (Exception e) {
- CAUGHT_eq_3 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_symbol_3;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_1);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
- if (oclIsKindOf_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
- symbol_2 = oclAsType_0;
- }
- else {
- symbol_2 = null;
- }
- final /*@Thrown*/ boolean eq_4 = symbol_2 == null;
- /*@Thrown*/ boolean symbol_3;
- if (eq_4) {
- symbol_3 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_2 == null) {
- throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
- final /*@Thrown*/ boolean eq_5 = lNameExpCS_1.equals(nameExp_0);
- symbol_3 = eq_5;
- }
- CAUGHT_symbol_3 = symbol_3;
- }
- catch (Exception e) {
- CAUGHT_symbol_3 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_3, CAUGHT_symbol_3);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(and_2);
- if (not_0 == null) {
- throw throwNull(lNameExpCS_1, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_10;
- if (not_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_1.getAst();
- final /*@Thrown*/ boolean symbol_4 = ast != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aVariableExp;
- if (symbol_4) {
- final /*@NonInvalid*/ boolean symbol_5 = ast instanceof VariableExp;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_9;
- if (symbol_5) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable VariableExp symbol_6 = (VariableExp)ast;
- if (symbol_6 == null) {
- throw throwNull(lNameExpCS_1, "Null where non-null value required");
- }
- final /*@Thrown*/ boolean symbol_7 = ast != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
- if (symbol_7) {
- if (ast == null) {
- throw throwNull(lNameExpCS_1, "Null where non-null value required");
- }
- @SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Variable referredVariable = symbol_6.getReferredVariable();
- @SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class type = referredVariable.getType();
- // property assignments
- symbol_6.setType(type);
- objectManager.assigned(symbol_6, MiniOCLPackage.Literals.TYPED_ELEMENT__TYPE, type, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_2 = ValueUtil.TRUE_VALUE;
- raw_ast = m_NameExpCS_ast_2;
- }
- else {
- raw_ast = ValueUtil.FALSE_VALUE;
- }
- symbol_9 = raw_ast;
- }
- else {
- symbol_9 = ValueUtil.FALSE_VALUE;
- }
- raw_aVariableExp = symbol_9;
- }
- else {
- raw_aVariableExp = ValueUtil.FALSE_VALUE;
- }
- symbol_10 = raw_aVariableExp;
- }
- else {
- symbol_10 = ValueUtil.FALSE_VALUE;
- }
- symbol_11 = symbol_10;
- }
- else {
- symbol_11 = ValueUtil.FALSE_VALUE;
- }
- return symbol_11;
- } catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_2", e);
+ return handleExecutionFailure("MAP_m_NameExpCS_ast", e);
}
}
/**
*
- * map m_NameExpCS_ast_3 in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_NameExpCS_ast_1 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
* { |}
@@ -1673,9 +1216,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* type : miniocl::Class[1];
* |}
* where ( |
- * not lNameExpCS.isPropCallExpWithExplicitSource()
- * lNameExpCS.isPropCallExpWithImplicitSource()
- * not lNameExpCS.isVariableExp())
+ * lNameExpCS.isPropCallExpWithImplicitSource()
+ * not lNameExpCS.isVariableExp()
+ * not lNameExpCS.isPropCallExpWithExplicitSource())
* {_'=' : Boolean[1];
* |
* aPropertyCallExp := lNameExpCS.ast;
@@ -1691,12 +1234,12 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected class MAP_m_NameExpCS_ast_3 extends AbstractInvocation
+ protected class MAP_m_NameExpCS_ast_1 extends AbstractInvocation
{
- protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_2;
+ protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_0;
- public MAP_m_NameExpCS_ast_3(@NonNull Object @NonNull [] boundValues) {
- lNameExpCS_2 = (NameExpCS)boundValues[0];
+ public MAP_m_NameExpCS_ast_1(@NonNull Object @NonNull [] boundValues) {
+ lNameExpCS_0 = (NameExpCS)boundValues[0];
}
public boolean execute() {
@@ -1705,16 +1248,16 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
/*@Caught*/ @NonNull Object CAUGHT_eq;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_2.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_0.getRoundedBrackets();
final /*@Thrown*/ boolean eq = roundedBrackets == null;
CAUGHT_eq = eq;
}
catch (Exception e) {
CAUGHT_eq = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_symbol_1;
+ /*@Caught*/ @Nullable Object CAUGHT_not;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_2);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
@@ -1732,222 +1275,186 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_0 == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_2.equals(nameExp);
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_0.equals(nameExp);
symbol_1 = eq_1;
}
- CAUGHT_symbol_1 = symbol_1;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(symbol_1);
+ CAUGHT_not = not;
}
catch (Exception e) {
- CAUGHT_symbol_1 = ValueUtil.createInvalidValue(e);
+ CAUGHT_not = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(and);
- if (not == null) {
- throw throwNull(lNameExpCS_2, "Null if condition");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_not);
+ if (and == null) {
+ throw throwNull(lNameExpCS_0, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_14;
- if (not) {
- /*@Caught*/ @Nullable Object CAUGHT_and_0;
+ if (and) {
+ /*@Caught*/ @Nullable Object CAUGHT_and_1;
try {
- /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ /*@Caught*/ @Nullable Object CAUGHT_and_0;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_2.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
- CAUGHT_eq_2 = eq_2;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_0.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
+ CAUGHT_eq_2 = eq_2;
+ }
+ catch (Exception e) {
+ CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @Nullable Object CAUGHT_not_0;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
+ if (oclIsKindOf_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
+ symbol_2 = oclAsType_0;
+ }
+ else {
+ symbol_2 = null;
+ }
+ final /*@Thrown*/ boolean eq_3 = symbol_2 == null;
+ /*@Thrown*/ boolean symbol_3;
+ if (eq_3) {
+ symbol_3 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_2 == null) {
+ throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
+ final /*@Thrown*/ boolean eq_4 = lNameExpCS_0.equals(nameExp_0);
+ symbol_3 = eq_4;
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
+ CAUGHT_not_0 = not_0;
+ }
+ catch (Exception e) {
+ CAUGHT_not_0 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_2, CAUGHT_not_0);
+ CAUGHT_and_0 = and_0;
}
catch (Exception e) {
- CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @Nullable Object CAUGHT_not_0;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_5;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_2);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
- if (oclIsKindOf_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
- symbol_2 = oclAsType_0;
- }
- else {
- symbol_2 = null;
- }
- final /*@Thrown*/ boolean eq_3 = symbol_2 == null;
- /*@Thrown*/ boolean symbol_3;
- if (eq_3) {
- symbol_3 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_2 == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
- final /*@Thrown*/ boolean eq_4 = lNameExpCS_2.equals(nameExp_0);
- symbol_3 = eq_4;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_0.getExpName();
+ if (expName == null) {
+ throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
- CAUGHT_not_0 = not_0;
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
+ final /*@Thrown*/ boolean eq_5 = size.equals(INT_1);
+ CAUGHT_eq_5 = eq_5;
}
catch (Exception e) {
- CAUGHT_not_0 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_5 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_2, CAUGHT_not_0);
- CAUGHT_and_0 = and_0;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_eq_5);
+ CAUGHT_and_1 = and_1;
}
catch (Exception e) {
- CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_1 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_eq_5;
+ /*@Caught*/ @NonNull Object CAUGHT_ne;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_2.getAst();
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_1 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_1.getAst();
if (self_1 == null) {
- throw throwNull(lNameExpCS_2, "Null where non-null value required");
+ throw throwNull(lNameExpCS_0, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_2.getExpName();
- if (expName == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_0.getExpName();
+ if (expName_0 == null) {
+ throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path);
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
Variable _lookupUnqualifiedVariable = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedVariable = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
- final /*@Thrown*/ boolean eq_5 = _lookupUnqualifiedVariable == null;
- CAUGHT_eq_5 = eq_5;
+ final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
+ CAUGHT_ne = ne;
}
catch (Exception e) {
- CAUGHT_eq_5 = ValueUtil.createInvalidValue(e);
+ CAUGHT_ne = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_eq_5);
- if (and_1 == null) {
- throw throwNull(lNameExpCS_2, "Null if condition");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_1, CAUGHT_ne);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_1 = BooleanNotOperation.INSTANCE.evaluate(and_2);
+ if (not_1 == null) {
+ throw throwNull(lNameExpCS_0, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_13;
- if (and_1) {
- /*@Caught*/ @Nullable Object CAUGHT_and_3;
+ if (not_1) {
+ /*@Caught*/ @NonNull Object CAUGHT_eq_6;
try {
- /*@Caught*/ @Nullable Object CAUGHT_and_2;
- try {
- /*@Caught*/ @NonNull Object CAUGHT_eq_6;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_2.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_6 = roundedBrackets_1 == null;
- CAUGHT_eq_6 = eq_6;
- }
- catch (Exception e) {
- CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @Nullable Object CAUGHT_not_1;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_2);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
- if (oclIsKindOf_1) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_1 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
- symbol_4 = oclAsType_1;
- }
- else {
- symbol_4 = null;
- }
- final /*@Thrown*/ boolean eq_7 = symbol_4 == null;
- /*@Thrown*/ boolean symbol_5;
- if (eq_7) {
- symbol_5 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_4 == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
- final /*@Thrown*/ boolean eq_8 = lNameExpCS_2.equals(nameExp_1);
- symbol_5 = eq_8;
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_1 = BooleanNotOperation.INSTANCE.evaluate(symbol_5);
- CAUGHT_not_1 = not_1;
- }
- catch (Exception e) {
- CAUGHT_not_1 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_6, CAUGHT_not_1);
- CAUGHT_and_2 = and_2;
- }
- catch (Exception e) {
- CAUGHT_and_2 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_eq_9;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_2.getExpName();
- if (expName_0 == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
- }
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path_0);
- final /*@Thrown*/ boolean eq_9 = size.equals(INT_1);
- CAUGHT_eq_9 = eq_9;
- }
- catch (Exception e) {
- CAUGHT_eq_9 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_2, CAUGHT_eq_9);
- CAUGHT_and_3 = and_3;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_0.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_6 = roundedBrackets_1 == null;
+ CAUGHT_eq_6 = eq_6;
}
catch (Exception e) {
- CAUGHT_and_3 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_ne;
+ /*@Caught*/ @NonNull Object CAUGHT_symbol_5;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_2 = lNameExpCS_2.getAst();
- if (self_2 == null) {
- throw throwNull(lNameExpCS_2, "Null where non-null value required");
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_0);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
+ if (oclIsKindOf_1) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_2 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
+ symbol_4 = oclAsType_2;
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_2.getExpName();
- if (expName_1 == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ else {
+ symbol_4 = null;
}
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_1 = expName_1.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_1 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_1);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_1);
- if (aPathElementCS_0 == null) {
- throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ final /*@Thrown*/ boolean eq_7 = symbol_4 == null;
+ /*@Thrown*/ boolean symbol_5;
+ if (eq_7) {
+ symbol_5 = ValueUtil.FALSE_VALUE;
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(self_2, (String)pathName_0);
- Variable _lookupUnqualifiedVariable_0 = null;
- if (_lookupResult_0.size() == 1) {
- _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
- } else {
- handleLookupError(aPathElementCS_0,pathName_0);
- };
- final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable_0 != null;
- CAUGHT_ne = ne;
+ else {
+ if (symbol_4 == null) {
+ throw throwNull(lNameExpCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
+ final /*@Thrown*/ boolean eq_8 = lNameExpCS_0.equals(nameExp_1);
+ symbol_5 = eq_8;
+ }
+ CAUGHT_symbol_5 = symbol_5;
}
catch (Exception e) {
- CAUGHT_ne = ValueUtil.createInvalidValue(e);
+ CAUGHT_symbol_5 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_4 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_3, CAUGHT_ne);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(and_4);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_6, CAUGHT_symbol_5);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(and_3);
if (not_2 == null) {
- throw throwNull(lNameExpCS_2, "Null if condition");
+ throw throwNull(lNameExpCS_0, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_12;
if (not_2) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_2.getAst();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_0.getAst();
final /*@Thrown*/ boolean symbol_6 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
if (symbol_6) {
@@ -1956,13 +1463,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (symbol_7) {
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_8 = (PropertyCallExp)ast;
if (symbol_8 == null) {
- throw throwNull(lNameExpCS_2, "Null where non-null value required");
+ throw throwNull(lNameExpCS_0, "Null where non-null value required");
}
final /*@Thrown*/ boolean symbol_9 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
if (symbol_9) {
if (ast == null) {
- throw throwNull(lNameExpCS_2, "Null where non-null value required");
+ throw throwNull(lNameExpCS_0, "Null where non-null value required");
}
objectManager.getting(symbol_8, MiniOCLPackage.Literals.PROPERTY_CALL_EXP__REFERRED_PROPERTY, false);
@SuppressWarnings("null")
@@ -1972,8 +1479,8 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
// property assignments
symbol_8.setType(type);
objectManager.assigned(symbol_8, MiniOCLPackage.Literals.TYPED_ELEMENT__TYPE, type, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_3 = ValueUtil.TRUE_VALUE;
- raw_ast = m_NameExpCS_ast_3;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_1 = ValueUtil.TRUE_VALUE;
+ raw_ast = m_NameExpCS_ast_1;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
@@ -2005,18 +1512,217 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return symbol_14;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_3", e);
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_1", e);
}
}
public boolean isEqual(@NonNull IdResolver idResolver, @NonNull Object @NonNull [] thoseValues) {
- return idResolver.oclEquals(lNameExpCS_2, thoseValues[0]);
+ return idResolver.oclEquals(lNameExpCS_0, thoseValues[0]);
}
}
/**
*
- * map m_NameExpCS_ast_4 in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_NameExpCS_ast_2 in MiniOCLCS2AS_qvtp_qvtcas {
+ * leftCS (lNameExpCS : minioclcs::NameExpCS[1];
+ * |)
+ * {_'if' : minioclcs::CallExpCS[?];
+ * parentAsCallExpCS : minioclcs::CallExpCS[?];
+ * |}
+ * rightAS ( |)
+ * {aPropertyCallExp : miniocl::PropertyCallExp[1];
+ * ast : miniocl::Element[1];
+ * if1 : miniocl::Element[?];
+ * ownedSource : miniocl::OCLExpression[1];
+ * |}
+ * where ( |
+ * lNameExpCS.isPropCallExpWithExplicitSource()
+ * )
+ * {_'=' : Boolean[1];
+ * _'=1' : Boolean[1];
+ * _'=2' : Boolean[1];
+ * |
+ * aPropertyCallExp := lNameExpCS.ast;
+ * ast := lNameExpCS.ast;
+ * parentAsCallExpCS := lNameExpCS.parentAsCallExpCS();
+ * _'=' := parentAsCallExpCS =
+ * null;
+ * _'if' := if _'='
+ * then null
+ * else parentAsCallExpCS.source
+ * endif;
+ * _'=1' := _'if' =
+ * null;
+ * if1 := if _'=1'
+ * then null
+ * else _'if'.ast
+ * endif;
+ * _'=2' := if1 =
+ * null;
+ * ownedSource := if _'=2'
+ * then null
+ * else if1.oclAsType(miniocl::OCLExpression)
+ * endif;
+ * aPropertyCallExp.ownedSource := ownedSource;
+ * }
+ *
+ */
+ protected boolean MAP_m_NameExpCS_ast_2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_1) {
+ try {
+ // predicates and unrealized variables
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
+ /*@Caught*/ @NonNull Object CAUGHT_eq;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_1.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq = roundedBrackets == null;
+ CAUGHT_eq = eq;
+ }
+ catch (Exception e) {
+ CAUGHT_eq = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @NonNull Object CAUGHT_symbol_1;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_1);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
+ if (oclIsKindOf) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
+ symbol_0 = oclAsType;
+ }
+ else {
+ symbol_0 = null;
+ }
+ final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
+ /*@Thrown*/ boolean symbol_1;
+ if (eq_0) {
+ symbol_1 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_0 == null) {
+ throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_1.equals(nameExp);
+ symbol_1 = eq_1;
+ }
+ CAUGHT_symbol_1 = symbol_1;
+ }
+ catch (Exception e) {
+ CAUGHT_symbol_1 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
+ if (and == null) {
+ throw throwNull(lNameExpCS_1, "Null if condition");
+ }
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_16;
+ if (and) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_1.getAst();
+ final /*@Thrown*/ boolean symbol_2 = ast != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
+ if (symbol_2) {
+ final /*@NonInvalid*/ boolean symbol_3 = ast instanceof PropertyCallExp;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_15;
+ if (symbol_3) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_4 = (PropertyCallExp)ast;
+ if (symbol_4 == null) {
+ throw throwNull(lNameExpCS_1, "Null where non-null value required");
+ }
+ final /*@Thrown*/ boolean symbol_5 = ast != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
+ if (symbol_5) {
+ if (ast == null) {
+ throw throwNull(lNameExpCS_1, "Null where non-null value required");
+ }
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_1);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_6;
+ if (oclIsKindOf_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
+ symbol_6 = oclAsType_0;
+ }
+ else {
+ symbol_6 = null;
+ }
+ final /*@Thrown*/ boolean symbol_7 = symbol_6 == null;
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_8;
+ if (symbol_7) {
+ symbol_8 = null;
+ }
+ else {
+ if (symbol_6 == null) {
+ throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::source\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS source = symbol_6.getSource();
+ symbol_8 = source;
+ }
+ final /*@Thrown*/ boolean symbol_9 = symbol_8 == null;
+ /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element symbol_10;
+ if (symbol_9) {
+ symbol_10 = null;
+ }
+ else {
+ if (symbol_8 == null) {
+ throw throwNull(lNameExpCS_1, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CSTrace::ast\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast_1 = symbol_8.getAst();
+ symbol_10 = ast_1;
+ }
+ final /*@Thrown*/ boolean symbol_11 = symbol_10 == null;
+ /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable OCLExpression symbol_12;
+ if (symbol_11) {
+ symbol_12 = null;
+ }
+ else {
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_OCLExpression_0 = idResolver.getClass(CLSSid_OCLExpression, null);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull OCLExpression oclAsType_1 = ClassUtil.nonNullState((OCLExpression)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, symbol_10, TYP_miniocl_c_c_OCLExpression_0));
+ symbol_12 = oclAsType_1;
+ }
+ final /*@Thrown*/ boolean symbol_13 = symbol_12 != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ownedSource;
+ if (symbol_13) {
+ if (symbol_12 == null) {
+ throw throwNull(lNameExpCS_1, "Null where non-null value required");
+ }
+ // property assignments
+ symbol_4.setOwnedSource(symbol_12);
+ objectManager.assigned(symbol_4, MiniOCLPackage.Literals.CALL_EXP__OWNED_SOURCE, symbol_12, null);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_2 = ValueUtil.TRUE_VALUE;
+ raw_ownedSource = m_NameExpCS_ast_2;
+ }
+ else {
+ raw_ownedSource = ValueUtil.FALSE_VALUE;
+ }
+ raw_ast = raw_ownedSource;
+ }
+ else {
+ raw_ast = ValueUtil.FALSE_VALUE;
+ }
+ symbol_15 = raw_ast;
+ }
+ else {
+ symbol_15 = ValueUtil.FALSE_VALUE;
+ }
+ raw_aPropertyCallExp = symbol_15;
+ }
+ else {
+ raw_aPropertyCallExp = ValueUtil.FALSE_VALUE;
+ }
+ symbol_16 = raw_aPropertyCallExp;
+ }
+ else {
+ symbol_16 = ValueUtil.FALSE_VALUE;
+ }
+ return symbol_16;
+ } catch (Throwable e) {
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_2", e);
+ }
+ }
+
+ /**
+ *
+ * map m_NameExpCS_ast_3 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
* { |}
@@ -2043,12 +1749,12 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected class MAP_m_NameExpCS_ast_4 extends AbstractInvocation
+ protected class MAP_m_NameExpCS_ast_3 extends AbstractInvocation
{
- protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_3;
+ protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_2;
- public MAP_m_NameExpCS_ast_4(@NonNull Object @NonNull [] boundValues) {
- lNameExpCS_3 = (NameExpCS)boundValues[0];
+ public MAP_m_NameExpCS_ast_3(@NonNull Object @NonNull [] boundValues) {
+ lNameExpCS_2 = (NameExpCS)boundValues[0];
}
public boolean execute() {
@@ -2057,7 +1763,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
/*@Caught*/ @NonNull Object CAUGHT_eq;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_3.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_2.getRoundedBrackets();
final /*@Thrown*/ boolean eq = roundedBrackets == null;
CAUGHT_eq = eq;
}
@@ -2066,7 +1772,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_symbol_1;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_3);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_2);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
@@ -2084,10 +1790,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_0 == null) {
- throw throwNull(lNameExpCS_3, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS_2, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_3.equals(nameExp);
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_2.equals(nameExp);
symbol_1 = eq_1;
}
CAUGHT_symbol_1 = symbol_1;
@@ -2097,11 +1803,11 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
if (and == null) {
- throw throwNull(lNameExpCS_3, "Null if condition");
+ throw throwNull(lNameExpCS_2, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_8;
if (and) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_3.getAst();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_2.getAst();
final /*@Thrown*/ boolean symbol_2 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
if (symbol_2) {
@@ -2110,13 +1816,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (symbol_3) {
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_4 = (PropertyCallExp)ast;
if (symbol_4 == null) {
- throw throwNull(lNameExpCS_3, "Null where non-null value required");
+ throw throwNull(lNameExpCS_2, "Null where non-null value required");
}
final /*@Thrown*/ boolean symbol_5 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
if (symbol_5) {
if (ast == null) {
- throw throwNull(lNameExpCS_3, "Null where non-null value required");
+ throw throwNull(lNameExpCS_2, "Null where non-null value required");
}
objectManager.getting(symbol_4, MiniOCLPackage.Literals.PROPERTY_CALL_EXP__REFERRED_PROPERTY, false);
@SuppressWarnings("null")
@@ -2126,8 +1832,8 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
// property assignments
symbol_4.setType(type);
objectManager.assigned(symbol_4, MiniOCLPackage.Literals.TYPED_ELEMENT__TYPE, type, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_4 = ValueUtil.TRUE_VALUE;
- raw_ast = m_NameExpCS_ast_4;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_3 = ValueUtil.TRUE_VALUE;
+ raw_ast = m_NameExpCS_ast_3;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
@@ -2149,52 +1855,46 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return symbol_8;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_4", e);
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_3", e);
}
}
public boolean isEqual(@NonNull IdResolver idResolver, @NonNull Object @NonNull [] thoseValues) {
- return idResolver.oclEquals(lNameExpCS_3, thoseValues[0]);
+ return idResolver.oclEquals(lNameExpCS_2, thoseValues[0]);
}
}
/**
*
- * map m_NameExpCS_ast_expName in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_NameExpCS_ast_4 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
- * {expName : minioclcs::PathNameCS[?];
- * first : minioclcs::PathElementCS[?];
- * path : OrderedSet(minioclcs::PathElementCS)[*|1];
- * |}
+ * { |}
* rightAS ( |)
* {aVariableExp : miniocl::VariableExp[1];
* ast : miniocl::Element[1];
* referredVariable : miniocl::Variable[1];
+ * type : miniocl::Class[1];
* |}
* where ( |
* not lNameExpCS.isPropCallExpWithExplicitSource()
- * lNameExpCS.isVariableExp()
- * )
+ * lNameExpCS.isVariableExp())
* { |
* aVariableExp := lNameExpCS.ast;
* ast := lNameExpCS.ast;
- * expName := lNameExpCS.expName;
- * path := expName.path;
- * first := path->first()
- * ;
- * referredVariable := aVariableExp.lookupVariable(first);
- * aVariableExp.referredVariable := referredVariable;
+ * referredVariable := aVariableExp.referredVariable;
+ * type := referredVariable.type;
+ * aVariableExp.type := type;
* }
*
*/
- protected boolean MAP_m_NameExpCS_ast_expName(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_4) {
+ protected boolean MAP_m_NameExpCS_ast_4(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_3) {
try {
// predicates and unrealized variables
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
/*@Caught*/ @NonNull Object CAUGHT_eq;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_4.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_3.getRoundedBrackets();
final /*@Thrown*/ boolean eq = roundedBrackets == null;
CAUGHT_eq = eq;
}
@@ -2203,7 +1903,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_symbol_1;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_4);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_3);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
@@ -2221,10 +1921,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_0 == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS_3, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_4.equals(nameExp);
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_3.equals(nameExp);
symbol_1 = eq_1;
}
CAUGHT_symbol_1 = symbol_1;
@@ -2235,9 +1935,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(and);
if (not == null) {
- throw throwNull(lNameExpCS_4, "Null if condition");
+ throw throwNull(lNameExpCS_3, "Null if condition");
}
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_12;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_11;
if (not) {
/*@Caught*/ @Nullable Object CAUGHT_and_1;
try {
@@ -2245,7 +1945,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
try {
/*@Caught*/ @NonNull Object CAUGHT_eq_2;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_4.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_3.getRoundedBrackets();
final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
CAUGHT_eq_2 = eq_2;
}
@@ -2254,7 +1954,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @Nullable Object CAUGHT_not_0;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_4);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_3);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
@@ -2272,10 +1972,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_2 == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS_3, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
- final /*@Thrown*/ boolean eq_4 = lNameExpCS_4.equals(nameExp_0);
+ final /*@Thrown*/ boolean eq_4 = lNameExpCS_3.equals(nameExp_0);
symbol_3 = eq_4;
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
@@ -2292,9 +1992,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_eq_5;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_4.getExpName();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_3.getExpName();
if (expName == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lNameExpCS_3, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
@@ -2314,28 +2014,31 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_ne;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_4.getAst();
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_3);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_1 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_1.getAst();
if (self_1 == null) {
- throw throwNull(lNameExpCS_4, "Null where non-null value required");
+ throw throwNull(lNameExpCS_3, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_4.getExpName();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_3.getExpName();
if (expName_0 == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lNameExpCS_3, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS_3, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
Variable _lookupUnqualifiedVariable = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedVariable = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
CAUGHT_ne = ne;
@@ -2345,95 +2048,69 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_1, CAUGHT_ne);
if (and_2 == null) {
- throw throwNull(lNameExpCS_4, "Null if condition");
+ throw throwNull(lNameExpCS_3, "Null if condition");
}
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_11;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_10;
if (and_2) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_4.getAst();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_3.getAst();
final /*@Thrown*/ boolean symbol_4 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aVariableExp;
if (symbol_4) {
final /*@NonInvalid*/ boolean symbol_5 = ast instanceof VariableExp;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_10;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_9;
if (symbol_5) {
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable VariableExp symbol_6 = (VariableExp)ast;
if (symbol_6 == null) {
- throw throwNull(lNameExpCS_4, "Null where non-null value required");
+ throw throwNull(lNameExpCS_3, "Null where non-null value required");
}
final /*@Thrown*/ boolean symbol_7 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
if (symbol_7) {
if (ast == null) {
- throw throwNull(lNameExpCS_4, "Null where non-null value required");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_4.getExpName();
- if (expName_1 == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lNameExpCS_3, "Null where non-null value required");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_1 = expName_1.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_1 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_1);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS first = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_1);
- if (first == null) {
- throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = first.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(symbol_6, (String)pathName_0);
- Variable _lookupUnqualifiedVariable_0 = null;
- if (_lookupResult_0.size() == 1) {
- _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
- } else {
- handleLookupError(first,pathName_0);
- };
- final /*@Thrown*/ boolean symbol_8 = _lookupUnqualifiedVariable_0 != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_referredVariable;
- if (symbol_8) {
- if (_lookupUnqualifiedVariable_0 == null) {
- throw throwNull(lNameExpCS_4, "Null where non-null value required");
- }
- // property assignments
- symbol_6.setReferredVariable(_lookupUnqualifiedVariable_0);
- objectManager.assigned(symbol_6, MiniOCLPackage.Literals.VARIABLE_EXP__REFERRED_VARIABLE, _lookupUnqualifiedVariable_0, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_expName = ValueUtil.TRUE_VALUE;
- raw_referredVariable = m_NameExpCS_ast_expName;
- }
- else {
- raw_referredVariable = ValueUtil.FALSE_VALUE;
- }
- raw_ast = raw_referredVariable;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Variable referredVariable = symbol_6.getReferredVariable();
+ @SuppressWarnings("null")
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class type = referredVariable.getType();
+ // property assignments
+ symbol_6.setType(type);
+ objectManager.assigned(symbol_6, MiniOCLPackage.Literals.TYPED_ELEMENT__TYPE, type, null);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_4 = ValueUtil.TRUE_VALUE;
+ raw_ast = m_NameExpCS_ast_4;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
}
- symbol_10 = raw_ast;
+ symbol_9 = raw_ast;
}
else {
- symbol_10 = ValueUtil.FALSE_VALUE;
+ symbol_9 = ValueUtil.FALSE_VALUE;
}
- raw_aVariableExp = symbol_10;
+ raw_aVariableExp = symbol_9;
}
else {
raw_aVariableExp = ValueUtil.FALSE_VALUE;
}
- symbol_11 = raw_aVariableExp;
+ symbol_10 = raw_aVariableExp;
}
else {
- symbol_11 = ValueUtil.FALSE_VALUE;
+ symbol_10 = ValueUtil.FALSE_VALUE;
}
- symbol_12 = symbol_11;
+ symbol_11 = symbol_10;
}
else {
- symbol_12 = ValueUtil.FALSE_VALUE;
+ symbol_11 = ValueUtil.FALSE_VALUE;
}
- return symbol_12;
+ return symbol_11;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_expName", e);
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_4", e);
}
}
/**
*
- * map m_NameExpCS_ast_expName_1 in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_NameExpCS_ast_expName in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
* {expName : minioclcs::PathNameCS[?];
@@ -2446,9 +2123,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* type : miniocl::Class[1];
* |}
* where ( |
- * not lNameExpCS.isVariableExp()
+ * not lNameExpCS.isPropCallExpWithExplicitSource()
+ * not lNameExpCS.isVariableExp()
* lNameExpCS.isPropCallExpWithImplicitSource()
- * not lNameExpCS.isPropCallExpWithExplicitSource()
* )
* { |
* aPropertyCallExp := lNameExpCS.ast;
@@ -2461,263 +2138,227 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected class MAP_m_NameExpCS_ast_expName_1 extends AbstractInvocation
+ protected class MAP_m_NameExpCS_ast_expName extends AbstractInvocation
{
- protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_5;
+ protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_4;
- public MAP_m_NameExpCS_ast_expName_1(@NonNull Object @NonNull [] boundValues) {
- lNameExpCS_5 = (NameExpCS)boundValues[0];
+ public MAP_m_NameExpCS_ast_expName(@NonNull Object @NonNull [] boundValues) {
+ lNameExpCS_4 = (NameExpCS)boundValues[0];
}
public boolean execute() {
try {
// predicates and unrealized variables
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
- /*@Caught*/ @Nullable Object CAUGHT_and_0;
+ /*@Caught*/ @NonNull Object CAUGHT_eq;
try {
- /*@Caught*/ @Nullable Object CAUGHT_and;
- try {
- /*@Caught*/ @NonNull Object CAUGHT_eq;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_5.getRoundedBrackets();
- final /*@Thrown*/ boolean eq = roundedBrackets == null;
- CAUGHT_eq = eq;
- }
- catch (Exception e) {
- CAUGHT_eq = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @Nullable Object CAUGHT_not;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_5);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
- if (oclIsKindOf) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
- symbol_0 = oclAsType;
- }
- else {
- symbol_0 = null;
- }
- final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
- /*@Thrown*/ boolean symbol_1;
- if (eq_0) {
- symbol_1 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_0 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_5.equals(nameExp);
- symbol_1 = eq_1;
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(symbol_1);
- CAUGHT_not = not;
- }
- catch (Exception e) {
- CAUGHT_not = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_not);
- CAUGHT_and = and;
- }
- catch (Exception e) {
- CAUGHT_and = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_eq_2;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_5.getExpName();
- if (expName == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
- }
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
- final /*@Thrown*/ boolean eq_2 = size.equals(INT_1);
- CAUGHT_eq_2 = eq_2;
- }
- catch (Exception e) {
- CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and, CAUGHT_eq_2);
- CAUGHT_and_0 = and_0;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_4.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq = roundedBrackets == null;
+ CAUGHT_eq = eq;
}
catch (Exception e) {
- CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_ne;
+ /*@Caught*/ @NonNull Object CAUGHT_symbol_1;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_5.getAst();
- if (self_1 == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_4);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
+ if (oclIsKindOf) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
+ symbol_0 = oclAsType;
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_5.getExpName();
- if (expName_0 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ else {
+ symbol_0 = null;
}
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
- if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
+ /*@Thrown*/ boolean symbol_1;
+ if (eq_0) {
+ symbol_1 = ValueUtil.FALSE_VALUE;
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
- Variable _lookupUnqualifiedVariable = null;
- if (_lookupResult.size() == 1) {
- _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
- } else {
- handleLookupError(aPathElementCS,pathName);
- };
- final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
- CAUGHT_ne = ne;
+ else {
+ if (symbol_0 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_4.equals(nameExp);
+ symbol_1 = eq_1;
+ }
+ CAUGHT_symbol_1 = symbol_1;
}
catch (Exception e) {
- CAUGHT_ne = ValueUtil.createInvalidValue(e);
+ CAUGHT_symbol_1 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_ne);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(and_1);
- if (not_0 == null) {
- throw throwNull(lNameExpCS_5, "Null if condition");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(and);
+ if (not == null) {
+ throw throwNull(lNameExpCS_4, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_19;
- if (not_0) {
- /*@Caught*/ @Nullable Object CAUGHT_and_2;
+ if (not) {
+ /*@Caught*/ @Nullable Object CAUGHT_and_1;
try {
- /*@Caught*/ @NonNull Object CAUGHT_eq_3;
+ /*@Caught*/ @Nullable Object CAUGHT_and_0;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_5.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_3 = roundedBrackets_0 == null;
- CAUGHT_eq_3 = eq_3;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_4.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
+ CAUGHT_eq_2 = eq_2;
+ }
+ catch (Exception e) {
+ CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @Nullable Object CAUGHT_not_0;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_4);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
+ if (oclIsKindOf_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
+ symbol_2 = oclAsType_0;
+ }
+ else {
+ symbol_2 = null;
+ }
+ final /*@Thrown*/ boolean eq_3 = symbol_2 == null;
+ /*@Thrown*/ boolean symbol_3;
+ if (eq_3) {
+ symbol_3 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_2 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
+ final /*@Thrown*/ boolean eq_4 = lNameExpCS_4.equals(nameExp_0);
+ symbol_3 = eq_4;
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
+ CAUGHT_not_0 = not_0;
+ }
+ catch (Exception e) {
+ CAUGHT_not_0 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_2, CAUGHT_not_0);
+ CAUGHT_and_0 = and_0;
}
catch (Exception e) {
- CAUGHT_eq_3 = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @Nullable Object CAUGHT_not_1;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_5;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_5);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
- if (oclIsKindOf_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
- symbol_2 = oclAsType_0;
- }
- else {
- symbol_2 = null;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_4.getExpName();
+ if (expName == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
- final /*@Thrown*/ boolean eq_4 = symbol_2 == null;
- /*@Thrown*/ boolean symbol_3;
- if (eq_4) {
- symbol_3 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_2 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
- final /*@Thrown*/ boolean eq_5 = lNameExpCS_5.equals(nameExp_0);
- symbol_3 = eq_5;
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_1 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
- CAUGHT_not_1 = not_1;
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
+ final /*@Thrown*/ boolean eq_5 = size.equals(INT_1);
+ CAUGHT_eq_5 = eq_5;
}
catch (Exception e) {
- CAUGHT_not_1 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_5 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_3, CAUGHT_not_1);
- CAUGHT_and_2 = and_2;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_eq_5);
+ CAUGHT_and_1 = and_1;
}
catch (Exception e) {
- CAUGHT_and_2 = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_1 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_eq_6;
+ /*@Caught*/ @NonNull Object CAUGHT_ne;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_2 = lNameExpCS_5.getAst();
- if (self_2 == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_4);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_1 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_1.getAst();
+ if (self_1 == null) {
+ throw throwNull(lNameExpCS_4, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_5.getExpName();
- if (expName_1 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_4.getExpName();
+ if (expName_0 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_1 = expName_1.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_1 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_1);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_1);
- if (aPathElementCS_0 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(self_2, (String)pathName_0);
- Variable _lookupUnqualifiedVariable_0 = null;
- if (_lookupResult_0.size() == 1) {
- _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
+ if (aPathElementCS == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
+ Variable _lookupUnqualifiedVariable = null;
+ if (_lookupResult.size() == 1) {
+ _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS,elementName);
};
- final /*@Thrown*/ boolean eq_6 = _lookupUnqualifiedVariable_0 == null;
- CAUGHT_eq_6 = eq_6;
+ final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
+ CAUGHT_ne = ne;
}
catch (Exception e) {
- CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
+ CAUGHT_ne = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_2, CAUGHT_eq_6);
- if (and_3 == null) {
- throw throwNull(lNameExpCS_5, "Null if condition");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_1, CAUGHT_ne);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_1 = BooleanNotOperation.INSTANCE.evaluate(and_2);
+ if (not_1 == null) {
+ throw throwNull(lNameExpCS_4, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_18;
- if (and_3) {
- /*@Caught*/ @NonNull Object CAUGHT_eq_7;
+ if (not_1) {
+ /*@Caught*/ @NonNull Object CAUGHT_eq_6;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_5.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_7 = roundedBrackets_1 == null;
- CAUGHT_eq_7 = eq_7;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_4.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_6 = roundedBrackets_1 == null;
+ CAUGHT_eq_6 = eq_6;
}
catch (Exception e) {
- CAUGHT_eq_7 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_symbol_5;
+ /*@Caught*/ @Nullable Object CAUGHT_not_2;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_5);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_4);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
if (oclIsKindOf_1) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_1 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
- symbol_4 = oclAsType_1;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_2 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
+ symbol_4 = oclAsType_2;
}
else {
symbol_4 = null;
}
- final /*@Thrown*/ boolean eq_8 = symbol_4 == null;
+ final /*@Thrown*/ boolean eq_7 = symbol_4 == null;
/*@Thrown*/ boolean symbol_5;
- if (eq_8) {
+ if (eq_7) {
symbol_5 = ValueUtil.FALSE_VALUE;
}
else {
if (symbol_4 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
- final /*@Thrown*/ boolean eq_9 = lNameExpCS_5.equals(nameExp_1);
- symbol_5 = eq_9;
+ final /*@Thrown*/ boolean eq_8 = lNameExpCS_4.equals(nameExp_1);
+ symbol_5 = eq_8;
}
- CAUGHT_symbol_5 = symbol_5;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(symbol_5);
+ CAUGHT_not_2 = not_2;
}
catch (Exception e) {
- CAUGHT_symbol_5 = ValueUtil.createInvalidValue(e);
+ CAUGHT_not_2 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_4 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_7, CAUGHT_symbol_5);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(and_4);
- if (not_2 == null) {
- throw throwNull(lNameExpCS_5, "Null if condition");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_6, CAUGHT_not_2);
+ if (and_3 == null) {
+ throw throwNull(lNameExpCS_4, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_17;
- if (not_2) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_5.getAst();
+ if (and_3) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_4.getAst();
final /*@Thrown*/ boolean symbol_6 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
if (symbol_6) {
@@ -2726,39 +2367,39 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (symbol_7) {
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_8 = (PropertyCallExp)ast;
if (symbol_8 == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ throw throwNull(lNameExpCS_4, "Null where non-null value required");
}
final /*@Thrown*/ boolean symbol_9 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
if (symbol_9) {
if (ast == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ throw throwNull(lNameExpCS_4, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_2 = lNameExpCS_5.getExpName();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_4.getExpName();
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull OCLExpression ownedSource = symbol_8.getOwnedSource();
objectManager.getting(ownedSource, MiniOCLPackage.Literals.TYPED_ELEMENT__TYPE, false);
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class type = ownedSource.getType();
- if (expName_2 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ if (expName_1 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::pathElements\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = expName_2.getPath();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = expName_1.getPathElements();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_segments_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, segments_0);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size_0 = CollectionSizeOperation.INSTANCE.evaluate(BOXED_segments_0);
- final /*@Thrown*/ boolean eq_10 = size_0.equals(INT_1);
+ final /*@Thrown*/ boolean eq_9 = size_0.equals(INT_1);
/*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Property symbol_13;
- if (eq_10) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_1 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
- if (aPathElementCS_1 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ if (eq_9) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
+ if (aPathElementCS_0 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_1 = aPathElementCS_1.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult_1 = lookupSolver._lookupExportedProperty(type, symbol_8, (String)pathName_1);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult_0 = lookupSolver._lookupExportedProperty(type, symbol_8, (String)elementName_0);
org.eclipse.qvtd.doc.miniocl.Property _lookupExportedProperty = null;
- if (_lookupResult_1.size() == 1) {
- _lookupExportedProperty = _lookupResult_1.getSingleResult();
+ if (_lookupResult_0.size() == 1) {
+ _lookupExportedProperty = _lookupResult_0.getSingleResult();
} else {
handleLookupError(symbol_8,symbol_8);
};
@@ -2768,20 +2409,20 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue diff = (IntegerValue)NumericMinusOperation.INSTANCE.evaluate(size_0, INT_1);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue qualifierSegments = OrderedSetSubOrderedSetOperation.INSTANCE.evaluate(BOXED_segments_0, INT_1, diff);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size_2 = CollectionSizeOperation.INSTANCE.evaluate(qualifierSegments);
- final /*@Thrown*/ boolean eq_11 = size_2.equals(INT_1);
+ final /*@Thrown*/ boolean eq_10 = size_2.equals(INT_1);
/*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Class symbol_11;
- if (eq_11) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_2 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(qualifierSegments);
- if (aPathElementCS_2 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ if (eq_10) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_1 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(qualifierSegments);
+ if (aPathElementCS_1 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_2 = aPathElementCS_2.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_2 = lookupSolver._lookupUnqualifiedClass(symbol_8, (String)pathName_2);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_1 = aPathElementCS_1.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_1 = lookupSolver._lookupUnqualifiedClass(symbol_8, (String)elementName_1);
org.eclipse.qvtd.doc.miniocl.Class _lookupUnqualifiedClass = null;
- if (_lookupResult_2.size() == 1) {
- _lookupUnqualifiedClass = _lookupResult_2.getSingleResult();
+ if (_lookupResult_1.size() == 1) {
+ _lookupUnqualifiedClass = _lookupResult_1.getSingleResult();
} else {
- handleLookupError(aPathElementCS_2,pathName_2);
+ handleLookupError(aPathElementCS_1,elementName_1);
};
symbol_11 = _lookupUnqualifiedClass;
}
@@ -2805,19 +2446,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (qualifier == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ throw throwNull(lNameExpCS_4, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_3 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(qualifierSegments);
- if (aPathElementCS_3 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_2 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(qualifierSegments);
+ if (aPathElementCS_2 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_3 = aPathElementCS_3.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_3 = lookupSolver._lookupQualifiedClass(qualifier, (String)pathName_3);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_2 = aPathElementCS_2.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_2 = lookupSolver._lookupQualifiedClass(qualifier, (String)elementName_2);
org.eclipse.qvtd.doc.miniocl.Class _lookupQualifiedClass = null;
- if (_lookupResult_3.size() == 1) {
- _lookupQualifiedClass = _lookupResult_3.getSingleResult();
+ if (_lookupResult_2.size() == 1) {
+ _lookupQualifiedClass = _lookupResult_2.getSingleResult();
} else {
- handleLookupError(aPathElementCS_3,pathName_3);
+ handleLookupError(aPathElementCS_2,elementName_2);
};
safe_lookupQualifiedClass_source = _lookupQualifiedClass;
}
@@ -2837,19 +2478,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_11 == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ throw throwNull(lNameExpCS_4, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_4 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
- if (aPathElementCS_4 == null) {
- throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_3 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
+ if (aPathElementCS_3 == null) {
+ throw throwNull(lNameExpCS_4, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_4 = aPathElementCS_4.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult_4 = lookupSolver._lookupQualifiedProperty(symbol_11, (String)pathName_4);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_3 = aPathElementCS_3.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult_3 = lookupSolver._lookupQualifiedProperty(symbol_11, (String)elementName_3);
org.eclipse.qvtd.doc.miniocl.Property _lookupQualifiedProperty = null;
- if (_lookupResult_4.size() == 1) {
- _lookupQualifiedProperty = _lookupResult_4.getSingleResult();
+ if (_lookupResult_3.size() == 1) {
+ _lookupQualifiedProperty = _lookupResult_3.getSingleResult();
} else {
- handleLookupError(aPathElementCS_4,pathName_4);
+ handleLookupError(aPathElementCS_3,elementName_3);
};
safe_lookupQualifiedProperty_source = _lookupQualifiedProperty;
}
@@ -2859,13 +2500,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_referredProperty;
if (symbol_14) {
if (symbol_13 == null) {
- throw throwNull(lNameExpCS_5, "Null where non-null value required");
+ throw throwNull(lNameExpCS_4, "Null where non-null value required");
}
// property assignments
symbol_8.setReferredProperty(symbol_13);
objectManager.assigned(symbol_8, MiniOCLPackage.Literals.PROPERTY_CALL_EXP__REFERRED_PROPERTY, symbol_13, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_expName_1 = ValueUtil.TRUE_VALUE;
- raw_referredProperty = m_NameExpCS_ast_expName_1;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_expName = ValueUtil.TRUE_VALUE;
+ raw_referredProperty = m_NameExpCS_ast_expName;
}
else {
raw_referredProperty = ValueUtil.FALSE_VALUE;
@@ -2902,18 +2543,18 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return symbol_19;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_expName_1", e);
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_expName", e);
}
}
public boolean isEqual(@NonNull IdResolver idResolver, @NonNull Object @NonNull [] thoseValues) {
- return idResolver.oclEquals(lNameExpCS_5, thoseValues[0]);
+ return idResolver.oclEquals(lNameExpCS_4, thoseValues[0]);
}
}
/**
*
- * map m_NameExpCS_ast_expName_2 in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_NameExpCS_ast_expName_1 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
* {expName : minioclcs::PathNameCS[?];
@@ -2939,12 +2580,12 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected class MAP_m_NameExpCS_ast_expName_2 extends AbstractInvocation
+ protected class MAP_m_NameExpCS_ast_expName_1 extends AbstractInvocation
{
- protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_6;
+ protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_5;
- public MAP_m_NameExpCS_ast_expName_2(@NonNull Object @NonNull [] boundValues) {
- lNameExpCS_6 = (NameExpCS)boundValues[0];
+ public MAP_m_NameExpCS_ast_expName_1(@NonNull Object @NonNull [] boundValues) {
+ lNameExpCS_5 = (NameExpCS)boundValues[0];
}
public boolean execute() {
@@ -2953,7 +2594,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
/*@Caught*/ @NonNull Object CAUGHT_eq;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_6.getRoundedBrackets();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_5.getRoundedBrackets();
final /*@Thrown*/ boolean eq = roundedBrackets == null;
CAUGHT_eq = eq;
}
@@ -2962,7 +2603,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
/*@Caught*/ @NonNull Object CAUGHT_symbol_1;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_6);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_5);
final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
@@ -2980,10 +2621,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_0 == null) {
- throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_6.equals(nameExp);
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_5.equals(nameExp);
symbol_1 = eq_1;
}
CAUGHT_symbol_1 = symbol_1;
@@ -2993,11 +2634,11 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
if (and == null) {
- throw throwNull(lNameExpCS_6, "Null if condition");
+ throw throwNull(lNameExpCS_5, "Null if condition");
}
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_13;
if (and) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_6.getAst();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_5.getAst();
final /*@Thrown*/ boolean symbol_2 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aPropertyCallExp;
if (symbol_2) {
@@ -3006,25 +2647,25 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (symbol_3) {
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp symbol_4 = (PropertyCallExp)ast;
if (symbol_4 == null) {
- throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ throw throwNull(lNameExpCS_5, "Null where non-null value required");
}
final /*@Thrown*/ boolean symbol_5 = ast != null;
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
if (symbol_5) {
if (ast == null) {
- throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ throw throwNull(lNameExpCS_5, "Null where non-null value required");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_6.getExpName();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_5.getExpName();
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull OCLExpression ownedSource = symbol_4.getOwnedSource();
objectManager.getting(ownedSource, MiniOCLPackage.Literals.TYPED_ELEMENT__TYPE, false);
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class type = ownedSource.getType();
if (expName == null) {
- throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::pathElements\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = expName.getPath();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = expName.getPathElements();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_segments_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, segments_0);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_segments_0);
final /*@Thrown*/ boolean eq_2 = size.equals(INT_1);
@@ -3032,10 +2673,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq_2) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult = lookupSolver._lookupExportedProperty(type, symbol_4, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult = lookupSolver._lookupExportedProperty(type, symbol_4, (String)elementName);
org.eclipse.qvtd.doc.miniocl.Property _lookupExportedProperty = null;
if (_lookupResult.size() == 1) {
_lookupExportedProperty = _lookupResult.getSingleResult();
@@ -3053,15 +2694,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq_3) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(qualifierSegments);
if (aPathElementCS_0 == null) {
- throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupUnqualifiedClass(symbol_4, (String)pathName_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupUnqualifiedClass(symbol_4, (String)elementName_0);
org.eclipse.qvtd.doc.miniocl.Class _lookupUnqualifiedClass = null;
if (_lookupResult_0.size() == 1) {
_lookupUnqualifiedClass = _lookupResult_0.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS_0,elementName_0);
};
symbol_7 = _lookupUnqualifiedClass;
}
@@ -3085,19 +2726,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (qualifier == null) {
- throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ throw throwNull(lNameExpCS_5, "Null where non-null value required");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_1 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(qualifierSegments);
if (aPathElementCS_1 == null) {
- throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_1 = aPathElementCS_1.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_1 = lookupSolver._lookupQualifiedClass(qualifier, (String)pathName_1);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_1 = aPathElementCS_1.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_1 = lookupSolver._lookupQualifiedClass(qualifier, (String)elementName_1);
org.eclipse.qvtd.doc.miniocl.Class _lookupQualifiedClass = null;
if (_lookupResult_1.size() == 1) {
_lookupQualifiedClass = _lookupResult_1.getSingleResult();
} else {
- handleLookupError(aPathElementCS_1,pathName_1);
+ handleLookupError(aPathElementCS_1,elementName_1);
};
safe_lookupQualifiedClass_source = _lookupQualifiedClass;
}
@@ -3117,19 +2758,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
else {
if (symbol_7 == null) {
- throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ throw throwNull(lNameExpCS_5, "Null where non-null value required");
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_2 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS_2 == null) {
- throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lNameExpCS_5, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_2 = aPathElementCS_2.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult_2 = lookupSolver._lookupQualifiedProperty(symbol_7, (String)pathName_2);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_2 = aPathElementCS_2.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Property> _lookupResult_2 = lookupSolver._lookupQualifiedProperty(symbol_7, (String)elementName_2);
org.eclipse.qvtd.doc.miniocl.Property _lookupQualifiedProperty = null;
if (_lookupResult_2.size() == 1) {
_lookupQualifiedProperty = _lookupResult_2.getSingleResult();
} else {
- handleLookupError(aPathElementCS_2,pathName_2);
+ handleLookupError(aPathElementCS_2,elementName_2);
};
safe_lookupQualifiedProperty_source = _lookupQualifiedProperty;
}
@@ -3139,13 +2780,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
/*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_referredProperty;
if (symbol_10) {
if (symbol_9 == null) {
- throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ throw throwNull(lNameExpCS_5, "Null where non-null value required");
}
// property assignments
symbol_4.setReferredProperty(symbol_9);
objectManager.assigned(symbol_4, MiniOCLPackage.Literals.PROPERTY_CALL_EXP__REFERRED_PROPERTY, symbol_9, null);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_expName_2 = ValueUtil.TRUE_VALUE;
- raw_referredProperty = m_NameExpCS_ast_expName_2;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_expName_1 = ValueUtil.TRUE_VALUE;
+ raw_referredProperty = m_NameExpCS_ast_expName_1;
}
else {
raw_referredProperty = ValueUtil.FALSE_VALUE;
@@ -3172,12 +2813,288 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return symbol_13;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_NameExpCS_ast_expName_2", e);
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_expName_1", e);
}
}
public boolean isEqual(@NonNull IdResolver idResolver, @NonNull Object @NonNull [] thoseValues) {
- return idResolver.oclEquals(lNameExpCS_6, thoseValues[0]);
+ return idResolver.oclEquals(lNameExpCS_5, thoseValues[0]);
+ }
+ }
+
+ /**
+ *
+ * map m_NameExpCS_ast_expName_2 in MiniOCLCS2AS_qvtp_qvtcas {
+ * leftCS (lNameExpCS : minioclcs::NameExpCS[1];
+ * |)
+ * {expName : minioclcs::PathNameCS[?];
+ * first : minioclcs::PathElementCS[?];
+ * path : OrderedSet(minioclcs::PathElementCS)[*|1];
+ * |}
+ * rightAS ( |)
+ * {aVariableExp : miniocl::VariableExp[1];
+ * ast : miniocl::Element[1];
+ * referredVariable : miniocl::Variable[1];
+ * |}
+ * where ( |
+ * lNameExpCS.isVariableExp()
+ * not lNameExpCS.isPropCallExpWithExplicitSource()
+ * )
+ * { |
+ * aVariableExp := lNameExpCS.ast;
+ * ast := lNameExpCS.ast;
+ * expName := lNameExpCS.expName;
+ * path := expName.path;
+ * first := path->first()
+ * ;
+ * referredVariable := aVariableExp.lookupVariable(first);
+ * aVariableExp.referredVariable := referredVariable;
+ * }
+ *
+ */
+ protected boolean MAP_m_NameExpCS_ast_expName_2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_6) {
+ try {
+ // predicates and unrealized variables
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
+ /*@Caught*/ @Nullable Object CAUGHT_and_0;
+ try {
+ /*@Caught*/ @Nullable Object CAUGHT_and;
+ try {
+ /*@Caught*/ @NonNull Object CAUGHT_eq;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_6.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq = roundedBrackets == null;
+ CAUGHT_eq = eq;
+ }
+ catch (Exception e) {
+ CAUGHT_eq = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @Nullable Object CAUGHT_not;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_6);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
+ if (oclIsKindOf) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
+ symbol_0 = oclAsType;
+ }
+ else {
+ symbol_0 = null;
+ }
+ final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
+ /*@Thrown*/ boolean symbol_1;
+ if (eq_0) {
+ symbol_1 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_0 == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_6.equals(nameExp);
+ symbol_1 = eq_1;
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(symbol_1);
+ CAUGHT_not = not;
+ }
+ catch (Exception e) {
+ CAUGHT_not = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_not);
+ CAUGHT_and = and;
+ }
+ catch (Exception e) {
+ CAUGHT_and = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_6.getExpName();
+ if (expName == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ }
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
+ final /*@Thrown*/ boolean eq_2 = size.equals(INT_1);
+ CAUGHT_eq_2 = eq_2;
+ }
+ catch (Exception e) {
+ CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and, CAUGHT_eq_2);
+ CAUGHT_and_0 = and_0;
+ }
+ catch (Exception e) {
+ CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @NonNull Object CAUGHT_ne;
+ try {
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_6);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_0 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_0.getAst();
+ if (self_1 == null) {
+ throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_6.getExpName();
+ if (expName_0 == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ }
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
+ if (aPathElementCS == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
+ Variable _lookupUnqualifiedVariable = null;
+ if (_lookupResult.size() == 1) {
+ _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
+ } else {
+ handleLookupError(aPathElementCS,elementName);
+ };
+ final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
+ CAUGHT_ne = ne;
+ }
+ catch (Exception e) {
+ CAUGHT_ne = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_ne);
+ if (and_1 == null) {
+ throw throwNull(lNameExpCS_6, "Null if condition");
+ }
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_12;
+ if (and_1) {
+ /*@Caught*/ @NonNull Object CAUGHT_eq_3;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_6.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_3 = roundedBrackets_0 == null;
+ CAUGHT_eq_3 = eq_3;
+ }
+ catch (Exception e) {
+ CAUGHT_eq_3 = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @NonNull Object CAUGHT_symbol_3;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_6);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
+ if (oclIsKindOf_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_1 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
+ symbol_2 = oclAsType_1;
+ }
+ else {
+ symbol_2 = null;
+ }
+ final /*@Thrown*/ boolean eq_4 = symbol_2 == null;
+ /*@Thrown*/ boolean symbol_3;
+ if (eq_4) {
+ symbol_3 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_2 == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
+ final /*@Thrown*/ boolean eq_5 = lNameExpCS_6.equals(nameExp_0);
+ symbol_3 = eq_5;
+ }
+ CAUGHT_symbol_3 = symbol_3;
+ }
+ catch (Exception e) {
+ CAUGHT_symbol_3 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_3, CAUGHT_symbol_3);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(and_2);
+ if (not_0 == null) {
+ throw throwNull(lNameExpCS_6, "Null if condition");
+ }
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_11;
+ if (not_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast = lNameExpCS_6.getAst();
+ final /*@Thrown*/ boolean symbol_4 = ast != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_aVariableExp;
+ if (symbol_4) {
+ final /*@NonInvalid*/ boolean symbol_5 = ast instanceof VariableExp;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_10;
+ if (symbol_5) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable VariableExp symbol_6 = (VariableExp)ast;
+ if (symbol_6 == null) {
+ throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ }
+ final /*@Thrown*/ boolean symbol_7 = ast != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_ast;
+ if (symbol_7) {
+ if (ast == null) {
+ throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_6.getExpName();
+ if (expName_1 == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ }
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_1 = expName_1.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_1 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_1);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS first = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_1);
+ if (first == null) {
+ throw throwNull(lNameExpCS_6, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = first.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(symbol_6, (String)elementName_0);
+ Variable _lookupUnqualifiedVariable_0 = null;
+ if (_lookupResult_0.size() == 1) {
+ _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
+ } else {
+ handleLookupError(first,elementName_0);
+ };
+ final /*@Thrown*/ boolean symbol_8 = _lookupUnqualifiedVariable_0 != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_referredVariable;
+ if (symbol_8) {
+ if (_lookupUnqualifiedVariable_0 == null) {
+ throw throwNull(lNameExpCS_6, "Null where non-null value required");
+ }
+ // property assignments
+ symbol_6.setReferredVariable(_lookupUnqualifiedVariable_0);
+ objectManager.assigned(symbol_6, MiniOCLPackage.Literals.VARIABLE_EXP__REFERRED_VARIABLE, _lookupUnqualifiedVariable_0, null);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_NameExpCS_ast_expName_2 = ValueUtil.TRUE_VALUE;
+ raw_referredVariable = m_NameExpCS_ast_expName_2;
+ }
+ else {
+ raw_referredVariable = ValueUtil.FALSE_VALUE;
+ }
+ raw_ast = raw_referredVariable;
+ }
+ else {
+ raw_ast = ValueUtil.FALSE_VALUE;
+ }
+ symbol_10 = raw_ast;
+ }
+ else {
+ symbol_10 = ValueUtil.FALSE_VALUE;
+ }
+ raw_aVariableExp = symbol_10;
+ }
+ else {
+ raw_aVariableExp = ValueUtil.FALSE_VALUE;
+ }
+ symbol_11 = raw_aVariableExp;
+ }
+ else {
+ symbol_11 = ValueUtil.FALSE_VALUE;
+ }
+ symbol_12 = symbol_11;
+ }
+ else {
+ symbol_12 = ValueUtil.FALSE_VALUE;
+ }
+ return symbol_12;
+ } catch (Throwable e) {
+ return handleExecutionFailure("MAP_m_NameExpCS_ast_expName_2", e);
}
}
@@ -3266,7 +3183,6 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
models[1/*rightAS*/].add(symbol_10);
// property assignments
symbol_2.setOwnedBodyExpression(symbol_10);
- objectManager.assigned(symbol_2, MiniOCLPackage.Literals.OPERATION__OWNED_BODY_EXPRESSION, symbol_10, null);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OperationCS_ast_body = ValueUtil.TRUE_VALUE;
raw_ast1 = m_OperationCS_ast_body;
}
@@ -3339,10 +3255,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS resultRef = lOperationCS_0.getResultRef();
if (resultRef == null) {
- throw throwNull(lOperationCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lOperationCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::pathElements\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = resultRef.getPath();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = resultRef.getPathElements();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_segments_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, segments_0);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_segments_0);
final /*@Thrown*/ boolean eq = size.equals(INT_1);
@@ -3350,15 +3266,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS == null) {
- throw throwNull(lOperationCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lOperationCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)elementName);
org.eclipse.qvtd.doc.miniocl.Class _lookupUnqualifiedClass = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedClass = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
symbol_5 = _lookupUnqualifiedClass;
}
@@ -3386,15 +3302,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS_0 == null) {
- throw throwNull(lOperationCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lOperationCS_0, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)pathName_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)elementName_0);
org.eclipse.qvtd.doc.miniocl.Class _lookupQualifiedClass = null;
if (_lookupResult_0.size() == 1) {
_lookupQualifiedClass = _lookupResult_0.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS_0,elementName_0);
};
safe_lookupQualifiedClass_source = _lookupQualifiedClass;
}
@@ -3467,7 +3383,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
/**
*
- * map m_OrderedSet_ClassCS in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_OrderedSet_ClassCS_2 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lClassCS : minioclcs::ClassCS[1];
* |)
* {operations : OrderedSet(minioclcs::OperationCS)[*|1];
@@ -3475,11 +3391,11 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* |}
* rightAS ( |)
* {aClass : miniocl::Class[1];
- * asOrderedSet : OrderedSet(miniocl::Property)[*|1];
- * asOrderedSet1 : OrderedSet(miniocl::Operation)[*|1];
+ * asOrderedSet : OrderedSet(miniocl::Operation)[*|1];
+ * asOrderedSet1 : OrderedSet(miniocl::Property)[*|1];
* ast : miniocl::Element[1];
- * _'\u00ABcollect\u00BB' : Sequence(miniocl::Property)[*|1];
- * _'\u00ABcollect\u00BB1' : Sequence(miniocl::Operation)[*|1];
+ * _'\u00ABcollect\u00BB' : Sequence(miniocl::Operation)[*|1];
+ * _'\u00ABcollect\u00BB1' : Sequence(miniocl::Property)[*|1];
* |}
* where ( |)
* {name : ecore::EString[?];
@@ -3492,22 +3408,22 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* properties := lClassCS.properties;
* toString := name.toString()
* ;
- * _'\u00ABcollect\u00BB' := properties->collect(_'1_' |
- * _'1_'.ast.oclAsType(miniocl::Property))
- * ;
- * _'\u00ABcollect\u00BB1' := operations->collect(_'1_' |
+ * _'\u00ABcollect\u00BB' := operations->collect(_'1_' |
* _'1_'.ast.oclAsType(miniocl::Operation))
* ;
+ * _'\u00ABcollect\u00BB1' := properties->collect(_'1_' |
+ * _'1_'.ast.oclAsType(miniocl::Property))
+ * ;
* asOrderedSet := _'\u00ABcollect\u00BB'->asOrderedSet()
* ;
* asOrderedSet1 := _'\u00ABcollect\u00BB1'->asOrderedSet();
* aClass.name := toString;
- * aClass.ownedOperations := asOrderedSet1;
- * aClass.ownedProperties := asOrderedSet;
+ * aClass.ownedOperations := asOrderedSet;
+ * aClass.ownedProperties := asOrderedSet1;
* }
*
*/
- protected boolean MAP_m_OrderedSet_ClassCS(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS lClassCS_1) {
+ protected boolean MAP_m_OrderedSet_ClassCS_2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS lClassCS_1) {
try {
// predicates and unrealized variables
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
@@ -3534,9 +3450,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PropertyCS> properties = lClassCS_1.getProperties();
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.NonNull String toString = OclAnyToStringOperation.INSTANCE.evaluate(name);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_properties = idResolver.createOrderedSetOfAll(ORD_CLSSid_PropertyCS, properties);
- /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Property);
- @NonNull Iterator<Object> ITERATOR__1 = BOXED_properties.iterator();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_operations = idResolver.createOrderedSetOfAll(ORD_CLSSid_OperationCS, operations);
+ /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Operation);
+ @NonNull Iterator<Object> ITERATOR__1 = BOXED_operations.iterator();
/*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SequenceValue collect;
while (true) {
if (!ITERATOR__1.hasNext()) {
@@ -3544,19 +3460,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
break;
}
@SuppressWarnings("null")
- /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PropertyCS _1 = (PropertyCS)ITERATOR__1.next();
+ /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS _1 = (OperationCS)ITERATOR__1.next();
/**
- * _'1_'.ast.oclAsType(miniocl::Property)
+ * _'1_'.ast.oclAsType(miniocl::Operation)
*/
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Property_0 = idResolver.getClass(CLSSid_Property, null);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Operation_0 = idResolver.getClass(CLSSid_Operation, null);
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast_1 = _1.getAst();
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Property oclAsType = ClassUtil.nonNullState((org.eclipse.qvtd.doc.miniocl.Property)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_1, TYP_miniocl_c_c_Property_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Operation oclAsType = ClassUtil.nonNullState((Operation)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_1, TYP_miniocl_c_c_Operation_0));
//
accumulator.add(oclAsType);
}
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_operations = idResolver.createOrderedSetOfAll(ORD_CLSSid_OperationCS, operations);
- /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator_0 = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Operation);
- @NonNull Iterator<Object> ITERATOR__1_0 = BOXED_operations.iterator();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_properties = idResolver.createOrderedSetOfAll(ORD_CLSSid_PropertyCS, properties);
+ /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator_0 = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Property);
+ @NonNull Iterator<Object> ITERATOR__1_0 = BOXED_properties.iterator();
/*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SequenceValue collect_0;
while (true) {
if (!ITERATOR__1_0.hasNext()) {
@@ -3564,13 +3480,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
break;
}
@SuppressWarnings("null")
- /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS _1_0 = (OperationCS)ITERATOR__1_0.next();
+ /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PropertyCS _1_0 = (PropertyCS)ITERATOR__1_0.next();
/**
- * _'1_'.ast.oclAsType(miniocl::Operation)
+ * _'1_'.ast.oclAsType(miniocl::Property)
*/
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Operation_0 = idResolver.getClass(CLSSid_Operation, null);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Property_0 = idResolver.getClass(CLSSid_Property, null);
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast_2 = _1_0.getAst();
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Operation oclAsType_0 = ClassUtil.nonNullState((Operation)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_2, TYP_miniocl_c_c_Operation_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Property oclAsType_0 = ClassUtil.nonNullState((org.eclipse.qvtd.doc.miniocl.Property)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_2, TYP_miniocl_c_c_Property_0));
//
accumulator_0.add(oclAsType_0);
}
@@ -3578,12 +3494,12 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue asOrderedSet_0 = CollectionAsOrderedSetOperation.INSTANCE.evaluate(collect_0);
// property assignments
symbol_2.setName(toString);
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Operation> ECORE_asOrderedSet_0 = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(Operation.class, asOrderedSet_0);
- symbol_2.getOwnedOperations().addAll(ECORE_asOrderedSet_0);
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<org.eclipse.qvtd.doc.miniocl.Property> ECORE_asOrderedSet = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(org.eclipse.qvtd.doc.miniocl.Property.class, asOrderedSet);
- symbol_2.getOwnedProperties().addAll(ECORE_asOrderedSet);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OrderedSet_ClassCS = ValueUtil.TRUE_VALUE;
- raw_ast = m_OrderedSet_ClassCS;
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Operation> ECORE_asOrderedSet = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(Operation.class, asOrderedSet);
+ symbol_2.getOwnedOperations().addAll(ECORE_asOrderedSet);
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<org.eclipse.qvtd.doc.miniocl.Property> ECORE_asOrderedSet_0 = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(org.eclipse.qvtd.doc.miniocl.Property.class, asOrderedSet_0);
+ symbol_2.getOwnedProperties().addAll(ECORE_asOrderedSet_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OrderedSet_ClassCS_2 = ValueUtil.TRUE_VALUE;
+ raw_ast = m_OrderedSet_ClassCS_2;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
@@ -3600,13 +3516,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return raw_aClass;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_OrderedSet_ClassCS", e);
+ return handleExecutionFailure("MAP_m_OrderedSet_ClassCS_2", e);
}
}
/**
*
- * map m_OrderedSet_OperationCS in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_OrderedSet_OperationCS_1 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lOperationCS : minioclcs::OperationCS[1];
* |)
* {params : OrderedSet(minioclcs::ParameterCS)[*|1];
@@ -3636,7 +3552,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected boolean MAP_m_OrderedSet_OperationCS(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS lOperationCS_2) {
+ protected boolean MAP_m_OrderedSet_OperationCS_1(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull OperationCS lOperationCS_2) {
try {
// predicates and unrealized variables
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
@@ -3686,8 +3602,8 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
symbol_2.setName(toString);
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Parameter> ECORE_asOrderedSet = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(Parameter.class, asOrderedSet);
symbol_2.getOwnedParameters().addAll(ECORE_asOrderedSet);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OrderedSet_OperationCS = ValueUtil.TRUE_VALUE;
- raw_ast = m_OrderedSet_OperationCS;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OrderedSet_OperationCS_1 = ValueUtil.TRUE_VALUE;
+ raw_ast = m_OrderedSet_OperationCS_1;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
@@ -3704,13 +3620,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return raw_aOperation;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_OrderedSet_OperationCS", e);
+ return handleExecutionFailure("MAP_m_OrderedSet_OperationCS_1", e);
}
}
/**
*
- * map m_OrderedSet_PackageCS in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_OrderedSet_PackageCS_2 in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lPackageCS : minioclcs::PackageCS[1];
* |)
* {classes : OrderedSet(minioclcs::ClassCS)[*|1];
@@ -3718,11 +3634,11 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* |}
* rightAS ( |)
* {aPackage : miniocl::Package[1];
- * asOrderedSet : OrderedSet(miniocl::Class)[*|1];
- * asOrderedSet1 : OrderedSet(miniocl::Package)[*|1];
+ * asOrderedSet : OrderedSet(miniocl::Package)[*|1];
+ * asOrderedSet1 : OrderedSet(miniocl::Class)[*|1];
* ast : miniocl::Element[1];
- * _'\u00ABcollect\u00BB' : Sequence(miniocl::Class)[*|1];
- * _'\u00ABcollect\u00BB1' : Sequence(miniocl::Package)[*|1];
+ * _'\u00ABcollect\u00BB' : Sequence(miniocl::Package)[*|1];
+ * _'\u00ABcollect\u00BB1' : Sequence(miniocl::Class)[*|1];
* |}
* where ( |)
* {name : ecore::EString[?];
@@ -3735,22 +3651,22 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* packages := lPackageCS.packages;
* toString := name.toString()
* ;
- * _'\u00ABcollect\u00BB' := classes->collect(_'1_' |
- * _'1_'.ast.oclAsType(miniocl::Class))
- * ;
- * _'\u00ABcollect\u00BB1' := packages->collect(_'1_' |
+ * _'\u00ABcollect\u00BB' := packages->collect(_'1_' |
* _'1_'.ast.oclAsType(miniocl::Package))
* ;
+ * _'\u00ABcollect\u00BB1' := classes->collect(_'1_' |
+ * _'1_'.ast.oclAsType(miniocl::Class))
+ * ;
* asOrderedSet := _'\u00ABcollect\u00BB'->asOrderedSet()
* ;
* asOrderedSet1 := _'\u00ABcollect\u00BB1'->asOrderedSet();
* aPackage.name := toString;
- * aPackage.ownedClasses := asOrderedSet;
- * aPackage.ownedPackages := asOrderedSet1;
+ * aPackage.ownedClasses := asOrderedSet1;
+ * aPackage.ownedPackages := asOrderedSet;
* }
*
*/
- protected boolean MAP_m_OrderedSet_PackageCS(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PackageCS lPackageCS) {
+ protected boolean MAP_m_OrderedSet_PackageCS_2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PackageCS lPackageCS) {
try {
// predicates and unrealized variables
final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
@@ -3777,9 +3693,9 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
@SuppressWarnings("null")
final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PackageCS> packages = lPackageCS.getPackages();
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.NonNull String toString = OclAnyToStringOperation.INSTANCE.evaluate(name);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_classes = idResolver.createOrderedSetOfAll(ORD_CLSSid_ClassCS, classes);
- /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Class);
- @NonNull Iterator<Object> ITERATOR__1 = BOXED_classes.iterator();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_packages = idResolver.createOrderedSetOfAll(ORD_CLSSid_PackageCS, packages);
+ /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Package);
+ @NonNull Iterator<Object> ITERATOR__1 = BOXED_packages.iterator();
/*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SequenceValue collect;
while (true) {
if (!ITERATOR__1.hasNext()) {
@@ -3787,19 +3703,19 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
break;
}
@SuppressWarnings("null")
- /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS _1 = (ClassCS)ITERATOR__1.next();
+ /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PackageCS _1 = (PackageCS)ITERATOR__1.next();
/**
- * _'1_'.ast.oclAsType(miniocl::Class)
+ * _'1_'.ast.oclAsType(miniocl::Package)
*/
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Class_0 = idResolver.getClass(CLSSid_Class_0, null);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Package_0 = idResolver.getClass(CLSSid_Package, null);
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast_1 = _1.getAst();
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class oclAsType = ClassUtil.nonNullState((org.eclipse.qvtd.doc.miniocl.Class)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_1, TYP_miniocl_c_c_Class_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Package oclAsType = ClassUtil.nonNullState((Package)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_1, TYP_miniocl_c_c_Package_0));
//
accumulator.add(oclAsType);
}
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_packages = idResolver.createOrderedSetOfAll(ORD_CLSSid_PackageCS, packages);
- /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator_0 = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Package);
- @NonNull Iterator<Object> ITERATOR__1_0 = BOXED_packages.iterator();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_classes = idResolver.createOrderedSetOfAll(ORD_CLSSid_ClassCS, classes);
+ /*@Thrown*/ SequenceValue.@org.eclipse.jdt.annotation.NonNull Accumulator accumulator_0 = ValueUtil.createSequenceAccumulatorValue(SEQ_CLSSid_Class);
+ @NonNull Iterator<Object> ITERATOR__1_0 = BOXED_classes.iterator();
/*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull SequenceValue collect_0;
while (true) {
if (!ITERATOR__1_0.hasNext()) {
@@ -3807,13 +3723,13 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
break;
}
@SuppressWarnings("null")
- /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull PackageCS _1_0 = (PackageCS)ITERATOR__1_0.next();
+ /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull ClassCS _1_0 = (ClassCS)ITERATOR__1_0.next();
/**
- * _'1_'.ast.oclAsType(miniocl::Package)
+ * _'1_'.ast.oclAsType(miniocl::Class)
*/
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Package_0 = idResolver.getClass(CLSSid_Package, null);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_miniocl_c_c_Class_0 = idResolver.getClass(CLSSid_Class_0, null);
final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element ast_2 = _1_0.getAst();
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Package oclAsType_0 = ClassUtil.nonNullState((Package)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_2, TYP_miniocl_c_c_Package_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.NonNull Class oclAsType_0 = ClassUtil.nonNullState((org.eclipse.qvtd.doc.miniocl.Class)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, ast_2, TYP_miniocl_c_c_Class_0));
//
accumulator_0.add(oclAsType_0);
}
@@ -3821,12 +3737,12 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue asOrderedSet_0 = CollectionAsOrderedSetOperation.INSTANCE.evaluate(collect_0);
// property assignments
symbol_2.setName(toString);
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<org.eclipse.qvtd.doc.miniocl.Class> ECORE_asOrderedSet = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(org.eclipse.qvtd.doc.miniocl.Class.class, asOrderedSet);
- symbol_2.getOwnedClasses().addAll(ECORE_asOrderedSet);
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Package> ECORE_asOrderedSet_0 = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(Package.class, asOrderedSet_0);
- symbol_2.getOwnedPackages().addAll(ECORE_asOrderedSet_0);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OrderedSet_PackageCS = ValueUtil.TRUE_VALUE;
- raw_ast = m_OrderedSet_PackageCS;
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<org.eclipse.qvtd.doc.miniocl.Class> ECORE_asOrderedSet_0 = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(org.eclipse.qvtd.doc.miniocl.Class.class, asOrderedSet_0);
+ symbol_2.getOwnedClasses().addAll(ECORE_asOrderedSet_0);
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<Package> ECORE_asOrderedSet = ((IdResolver.IdResolverExtension)idResolver).ecoreValueOfAll(Package.class, asOrderedSet);
+ symbol_2.getOwnedPackages().addAll(ECORE_asOrderedSet);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_OrderedSet_PackageCS_2 = ValueUtil.TRUE_VALUE;
+ raw_ast = m_OrderedSet_PackageCS_2;
}
else {
raw_ast = ValueUtil.FALSE_VALUE;
@@ -3843,7 +3759,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
return raw_aPackage;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_OrderedSet_PackageCS", e);
+ return handleExecutionFailure("MAP_m_OrderedSet_PackageCS_2", e);
}
}
@@ -4017,10 +3933,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS typeRef = lParameterCS.getTypeRef();
if (typeRef == null) {
- throw throwNull(lParameterCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lParameterCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::pathElements\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = typeRef.getPath();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = typeRef.getPathElements();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_segments_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, segments_0);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_segments_0);
final /*@Thrown*/ boolean eq = size.equals(INT_1);
@@ -4028,15 +3944,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS == null) {
- throw throwNull(lParameterCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lParameterCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)elementName);
org.eclipse.qvtd.doc.miniocl.Class _lookupUnqualifiedClass = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedClass = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
symbol_5 = _lookupUnqualifiedClass;
}
@@ -4064,15 +3980,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS_0 == null) {
- throw throwNull(lParameterCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lParameterCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)pathName_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)elementName_0);
org.eclipse.qvtd.doc.miniocl.Class _lookupQualifiedClass = null;
if (_lookupResult_0.size() == 1) {
_lookupQualifiedClass = _lookupResult_0.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS_0,elementName_0);
};
safe_lookupQualifiedClass_source = _lookupQualifiedClass;
}
@@ -4189,10 +4105,10 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS typeRef = lPropertyCS.getTypeRef();
if (typeRef == null) {
- throw throwNull(lPropertyCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ throw throwNull(lPropertyCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::pathElements\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = typeRef.getPath();
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> segments_0 = typeRef.getPathElements();
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_segments_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, segments_0);
final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_segments_0);
final /*@Thrown*/ boolean eq = size.equals(INT_1);
@@ -4200,15 +4116,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
if (eq) {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS == null) {
- throw throwNull(lPropertyCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lPropertyCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)pathName);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult = lookupSolver._lookupUnqualifiedClass(symbol_2, (String)elementName);
org.eclipse.qvtd.doc.miniocl.Class _lookupUnqualifiedClass = null;
if (_lookupResult.size() == 1) {
_lookupUnqualifiedClass = _lookupResult.getSingleResult();
} else {
- handleLookupError(aPathElementCS,pathName);
+ handleLookupError(aPathElementCS,elementName);
};
symbol_5 = _lookupUnqualifiedClass;
}
@@ -4236,15 +4152,15 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
}
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionLastOperation.INSTANCE.evaluate(BOXED_segments_0);
if (aPathElementCS_0 == null) {
- throw throwNull(lPropertyCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ throw throwNull(lPropertyCS, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)pathName_0);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName_0 = aPathElementCS_0.getElementName();
+ MiniOCLLookupResult<org.eclipse.qvtd.doc.miniocl.Class> _lookupResult_0 = lookupSolver._lookupQualifiedClass(qualifier, (String)elementName_0);
org.eclipse.qvtd.doc.miniocl.Class _lookupQualifiedClass = null;
if (_lookupResult_0.size() == 1) {
_lookupQualifiedClass = _lookupResult_0.getSingleResult();
} else {
- handleLookupError(aPathElementCS_0,pathName_0);
+ handleLookupError(aPathElementCS_0,elementName_0);
};
safe_lookupQualifiedClass_source = _lookupQualifiedClass;
}
@@ -4358,6 +4274,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
models[1/*rightAS*/].add(rPropertyCallExp);
// property assignments
lNameExpCS_7.setAst(rPropertyCallExp);
+ objectManager.assigned(lNameExpCS_7, MinioclcsPackage.Literals.CS_TRACE__AST, rPropertyCallExp, null);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_PropertyCallExp_NameExpCS = ValueUtil.TRUE_VALUE;
symbol_3 = m_PropertyCallExp_NameExpCS;
}
@@ -4372,7 +4289,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
/**
*
- * map m_PropertyCallExp_NameExpCS_NamedElement_Variable in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
* { |}
@@ -4388,123 +4305,132 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected boolean MAP_m_PropertyCallExp_NameExpCS_NamedElement_Variable(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_8) {
- try {
- // predicates and unrealized variables
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
- /*@Caught*/ @Nullable Object CAUGHT_and_0;
+ protected class MAP_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr extends AbstractInvocation
+ {
+ protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_8;
+
+ public MAP_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr(@NonNull Object @NonNull [] boundValues) {
+ lNameExpCS_8 = (NameExpCS)boundValues[0];
+ }
+
+ public boolean execute() {
try {
- /*@Caught*/ @Nullable Object CAUGHT_and;
+ // predicates and unrealized variables
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
+ /*@Caught*/ @Nullable Object CAUGHT_and_0;
try {
- /*@Caught*/ @NonNull Object CAUGHT_eq;
+ /*@Caught*/ @Nullable Object CAUGHT_and;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_8.getRoundedBrackets();
- final /*@Thrown*/ boolean eq = roundedBrackets == null;
- CAUGHT_eq = eq;
+ /*@Caught*/ @NonNull Object CAUGHT_eq;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_8.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq = roundedBrackets == null;
+ CAUGHT_eq = eq;
+ }
+ catch (Exception e) {
+ CAUGHT_eq = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @Nullable Object CAUGHT_not;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_8);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
+ if (oclIsKindOf) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
+ symbol_0 = oclAsType;
+ }
+ else {
+ symbol_0 = null;
+ }
+ final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
+ /*@Thrown*/ boolean symbol_1;
+ if (eq_0) {
+ symbol_1 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_0 == null) {
+ throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_8.equals(nameExp);
+ symbol_1 = eq_1;
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(symbol_1);
+ CAUGHT_not = not;
+ }
+ catch (Exception e) {
+ CAUGHT_not = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_not);
+ CAUGHT_and = and;
}
catch (Exception e) {
- CAUGHT_eq = ValueUtil.createInvalidValue(e);
+ CAUGHT_and = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @Nullable Object CAUGHT_not;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_2;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_8);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
- if (oclIsKindOf) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
- symbol_0 = oclAsType;
- }
- else {
- symbol_0 = null;
- }
- final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
- /*@Thrown*/ boolean symbol_1;
- if (eq_0) {
- symbol_1 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_0 == null) {
- throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_8.equals(nameExp);
- symbol_1 = eq_1;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_8.getExpName();
+ if (expName == null) {
+ throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(symbol_1);
- CAUGHT_not = not;
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
+ final /*@Thrown*/ boolean eq_2 = size.equals(INT_1);
+ CAUGHT_eq_2 = eq_2;
}
catch (Exception e) {
- CAUGHT_not = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_not);
- CAUGHT_and = and;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and, CAUGHT_eq_2);
+ CAUGHT_and_0 = and_0;
}
catch (Exception e) {
- CAUGHT_and = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ /*@Caught*/ @NonNull Object CAUGHT_ne;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_8.getExpName();
- if (expName == null) {
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_8);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_0 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_0.getAst();
+ if (self_1 == null) {
+ throw throwNull(lNameExpCS_8, "Null where non-null value required");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_8.getExpName();
+ if (expName_0 == null) {
throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
- final /*@Thrown*/ boolean eq_2 = size.equals(INT_1);
- CAUGHT_eq_2 = eq_2;
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
+ if (aPathElementCS == null) {
+ throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
+ Variable _lookupUnqualifiedVariable = null;
+ if (_lookupResult.size() == 1) {
+ _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
+ } else {
+ handleLookupError(aPathElementCS,elementName);
+ };
+ final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
+ CAUGHT_ne = ne;
}
catch (Exception e) {
- CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and, CAUGHT_eq_2);
- CAUGHT_and_0 = and_0;
- }
- catch (Exception e) {
- CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_ne;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_8.getAst();
- if (self_1 == null) {
- throw throwNull(lNameExpCS_8, "Null where non-null value required");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_8.getExpName();
- if (expName_0 == null) {
- throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ CAUGHT_ne = ValueUtil.createInvalidValue(e);
}
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
- if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_ne);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(and_1);
+ if (not_0 == null) {
+ throw throwNull(lNameExpCS_8, "Null if condition");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
- Variable _lookupUnqualifiedVariable = null;
- if (_lookupResult.size() == 1) {
- _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
- } else {
- handleLookupError(aPathElementCS,pathName);
- };
- final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
- CAUGHT_ne = ne;
- }
- catch (Exception e) {
- CAUGHT_ne = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_ne);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(and_1);
- if (not_0 == null) {
- throw throwNull(lNameExpCS_8, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_9;
- if (not_0) {
- /*@Caught*/ @Nullable Object CAUGHT_and_2;
- try {
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_9;
+ if (not_0) {
/*@Caught*/ @NonNull Object CAUGHT_eq_3;
try {
final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_8.getRoundedBrackets();
@@ -4521,8 +4447,8 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
/*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
if (oclIsKindOf_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
- symbol_2 = oclAsType_0;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_1 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
+ symbol_2 = oclAsType_1;
}
else {
symbol_2 = null;
@@ -4547,120 +4473,89 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
CAUGHT_not_1 = ValueUtil.createInvalidValue(e);
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_3, CAUGHT_not_1);
- CAUGHT_and_2 = and_2;
- }
- catch (Exception e) {
- CAUGHT_and_2 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_eq_6;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_2 = lNameExpCS_8.getAst();
- if (self_2 == null) {
- throw throwNull(lNameExpCS_8, "Null where non-null value required");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_1 = lNameExpCS_8.getExpName();
- if (expName_1 == null) {
- throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
- }
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_1 = expName_1.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_1 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_1);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS_0 = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_1);
- if (aPathElementCS_0 == null) {
- throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName_0 = aPathElementCS_0.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult_0 = lookupSolver._lookupUnqualifiedVariable(self_2, (String)pathName_0);
- Variable _lookupUnqualifiedVariable_0 = null;
- if (_lookupResult_0.size() == 1) {
- _lookupUnqualifiedVariable_0 = _lookupResult_0.getSingleResult();
- } else {
- handleLookupError(aPathElementCS_0,pathName_0);
- };
- final /*@Thrown*/ boolean eq_6 = _lookupUnqualifiedVariable_0 == null;
- CAUGHT_eq_6 = eq_6;
- }
- catch (Exception e) {
- CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_2, CAUGHT_eq_6);
- if (and_3 == null) {
- throw throwNull(lNameExpCS_8, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_8;
- if (and_3) {
- /*@Caught*/ @NonNull Object CAUGHT_eq_7;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_8.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_7 = roundedBrackets_1 == null;
- CAUGHT_eq_7 = eq_7;
- }
- catch (Exception e) {
- CAUGHT_eq_7 = ValueUtil.createInvalidValue(e);
+ if (and_2 == null) {
+ throw throwNull(lNameExpCS_8, "Null if condition");
}
- /*@Caught*/ @NonNull Object CAUGHT_symbol_5;
- try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_8);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
- if (oclIsKindOf_1) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_1 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
- symbol_4 = oclAsType_1;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_8;
+ if (and_2) {
+ /*@Caught*/ @NonNull Object CAUGHT_eq_6;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_1 = lNameExpCS_8.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_6 = roundedBrackets_1 == null;
+ CAUGHT_eq_6 = eq_6;
}
- else {
- symbol_4 = null;
+ catch (Exception e) {
+ CAUGHT_eq_6 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ boolean eq_8 = symbol_4 == null;
- /*@Thrown*/ boolean symbol_5;
- if (eq_8) {
- symbol_5 = ValueUtil.FALSE_VALUE;
+ /*@Caught*/ @NonNull Object CAUGHT_symbol_5;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_1 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_8);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_6 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_1 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_4;
+ if (oclIsKindOf_1) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_2 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_1, TYP_minioclcs_c_c_CallExpCS_6));
+ symbol_4 = oclAsType_2;
+ }
+ else {
+ symbol_4 = null;
+ }
+ final /*@Thrown*/ boolean eq_7 = symbol_4 == null;
+ /*@Thrown*/ boolean symbol_5;
+ if (eq_7) {
+ symbol_5 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_4 == null) {
+ throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
+ final /*@Thrown*/ boolean eq_8 = lNameExpCS_8.equals(nameExp_1);
+ symbol_5 = eq_8;
+ }
+ CAUGHT_symbol_5 = symbol_5;
+ }
+ catch (Exception e) {
+ CAUGHT_symbol_5 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_3 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_6, CAUGHT_symbol_5);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(and_3);
+ if (not_2 == null) {
+ throw throwNull(lNameExpCS_8, "Null if condition");
+ }
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_7;
+ if (not_2) {
+ // creations
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp rPropertyCallExp = MiniOCLFactory.eINSTANCE.createPropertyCallExp();
+ assert rPropertyCallExp != null;
+ models[1/*rightAS*/].add(rPropertyCallExp);
+ // property assignments
+ lNameExpCS_8.setAst(rPropertyCallExp);
+ objectManager.assigned(lNameExpCS_8, MinioclcsPackage.Literals.CS_TRACE__AST, rPropertyCallExp, null);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr = ValueUtil.TRUE_VALUE;
+ symbol_7 = m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr;
}
else {
- if (symbol_4 == null) {
- throw throwNull(lNameExpCS_8, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_1 = symbol_4.getNameExp();
- final /*@Thrown*/ boolean eq_9 = lNameExpCS_8.equals(nameExp_1);
- symbol_5 = eq_9;
+ symbol_7 = ValueUtil.FALSE_VALUE;
}
- CAUGHT_symbol_5 = symbol_5;
- }
- catch (Exception e) {
- CAUGHT_symbol_5 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_4 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_7, CAUGHT_symbol_5);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_2 = BooleanNotOperation.INSTANCE.evaluate(and_4);
- if (not_2 == null) {
- throw throwNull(lNameExpCS_8, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_7;
- if (not_2) {
- // creations
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable PropertyCallExp rPropertyCallExp = MiniOCLFactory.eINSTANCE.createPropertyCallExp();
- assert rPropertyCallExp != null;
- models[1/*rightAS*/].add(rPropertyCallExp);
- // property assignments
- lNameExpCS_8.setAst(rPropertyCallExp);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_PropertyCallExp_NameExpCS_NamedElement_Variable = ValueUtil.TRUE_VALUE;
- symbol_7 = m_PropertyCallExp_NameExpCS_NamedElement_Variable;
+ symbol_8 = symbol_7;
}
else {
- symbol_7 = ValueUtil.FALSE_VALUE;
+ symbol_8 = ValueUtil.FALSE_VALUE;
}
- symbol_8 = symbol_7;
+ symbol_9 = symbol_8;
}
else {
- symbol_8 = ValueUtil.FALSE_VALUE;
+ symbol_9 = ValueUtil.FALSE_VALUE;
}
- symbol_9 = symbol_8;
- }
- else {
- symbol_9 = ValueUtil.FALSE_VALUE;
+ return symbol_9;
+ } catch (Throwable e) {
+ return handleExecutionFailure("MAP_m_PropertyCallExp_NameExpCS_CallExpCS_Element_Expr", e);
}
- return symbol_9;
- } catch (Throwable e) {
- return handleExecutionFailure("MAP_m_PropertyCallExp_NameExpCS_NamedElement_Variable", e);
+ }
+
+ public boolean isEqual(@NonNull IdResolver idResolver, @NonNull Object @NonNull [] thoseValues) {
+ return idResolver.oclEquals(lNameExpCS_8, thoseValues[0]);
}
}
@@ -4862,7 +4757,7 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
/**
*
- * map m_VariableExp_NameExpCS_NamedElement_Variable in MiniOCLCS2AS_qvtp_qvtcas {
+ * map m_VariableExp_NameExpCS_CallExpCS_Element_Expressi in MiniOCLCS2AS_qvtp_qvtcas {
* leftCS (lNameExpCS : minioclcs::NameExpCS[1];
* |)
* { |}
@@ -4877,187 +4772,204 @@ public class MiniOCLCS2AS_qvtp_qvtcas extends AbstractCS2ASTransformer
* }
*
*/
- protected boolean MAP_m_VariableExp_NameExpCS_NamedElement_Variable(final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_9) {
- try {
- // predicates and unrealized variables
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
- /*@Caught*/ @NonNull Object CAUGHT_eq;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_9.getRoundedBrackets();
- final /*@Thrown*/ boolean eq = roundedBrackets == null;
- CAUGHT_eq = eq;
- }
- catch (Exception e) {
- CAUGHT_eq = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_symbol_1;
+ protected class MAP_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi extends AbstractInvocation
+ {
+ protected final /*@NonInvalid*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull NameExpCS lNameExpCS_9;
+
+ public MAP_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi(@NonNull Object @NonNull [] boundValues) {
+ lNameExpCS_9 = (NameExpCS)boundValues[0];
+ }
+
+ public boolean execute() {
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_9);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
- if (oclIsKindOf) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
- symbol_0 = oclAsType;
- }
- else {
- symbol_0 = null;
+ // predicates and unrealized variables
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull IdResolver idResolver = executor.getIdResolver();
+ /*@Caught*/ @NonNull Object CAUGHT_eq;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets = lNameExpCS_9.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq = roundedBrackets == null;
+ CAUGHT_eq = eq;
}
- final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
- /*@Thrown*/ boolean symbol_1;
- if (eq_0) {
- symbol_1 = ValueUtil.FALSE_VALUE;
+ catch (Exception e) {
+ CAUGHT_eq = ValueUtil.createInvalidValue(e);
}
- else {
- if (symbol_0 == null) {
- throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ /*@Caught*/ @NonNull Object CAUGHT_symbol_1;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_9);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_2 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_0;
+ if (oclIsKindOf) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container, TYP_minioclcs_c_c_CallExpCS_2));
+ symbol_0 = oclAsType;
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
- final /*@Thrown*/ boolean eq_1 = lNameExpCS_9.equals(nameExp);
- symbol_1 = eq_1;
+ else {
+ symbol_0 = null;
+ }
+ final /*@Thrown*/ boolean eq_0 = symbol_0 == null;
+ /*@Thrown*/ boolean symbol_1;
+ if (eq_0) {
+ symbol_1 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_0 == null) {
+ throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp = symbol_0.getNameExp();
+ final /*@Thrown*/ boolean eq_1 = lNameExpCS_9.equals(nameExp);
+ symbol_1 = eq_1;
+ }
+ CAUGHT_symbol_1 = symbol_1;
}
- CAUGHT_symbol_1 = symbol_1;
- }
- catch (Exception e) {
- CAUGHT_symbol_1 = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(and);
- if (not == null) {
- throw throwNull(lNameExpCS_9, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_6;
- if (not) {
- /*@Caught*/ @Nullable Object CAUGHT_and_1;
- try {
- /*@Caught*/ @Nullable Object CAUGHT_and_0;
+ catch (Exception e) {
+ CAUGHT_symbol_1 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq, CAUGHT_symbol_1);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not = BooleanNotOperation.INSTANCE.evaluate(and);
+ if (not == null) {
+ throw throwNull(lNameExpCS_9, "Null if condition");
+ }
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_6;
+ if (not) {
+ /*@Caught*/ @Nullable Object CAUGHT_and_1;
try {
- /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ /*@Caught*/ @Nullable Object CAUGHT_and_0;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_9.getRoundedBrackets();
- final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
- CAUGHT_eq_2 = eq_2;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_2;
+ try {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable RoundedBracketClauseCS roundedBrackets_0 = lNameExpCS_9.getRoundedBrackets();
+ final /*@Thrown*/ boolean eq_2 = roundedBrackets_0 == null;
+ CAUGHT_eq_2 = eq_2;
+ }
+ catch (Exception e) {
+ CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
+ }
+ /*@Caught*/ @Nullable Object CAUGHT_not_0;
+ try {
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_9);
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
+ final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
+ /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
+ if (oclIsKindOf_0) {
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
+ symbol_2 = oclAsType_0;
+ }
+ else {
+ symbol_2 = null;
+ }
+ final /*@Thrown*/ boolean eq_3 = symbol_2 == null;
+ /*@Thrown*/ boolean symbol_3;
+ if (eq_3) {
+ symbol_3 = ValueUtil.FALSE_VALUE;
+ }
+ else {
+ if (symbol_2 == null) {
+ throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
+ final /*@Thrown*/ boolean eq_4 = lNameExpCS_9.equals(nameExp_0);
+ symbol_3 = eq_4;
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
+ CAUGHT_not_0 = not_0;
+ }
+ catch (Exception e) {
+ CAUGHT_not_0 = ValueUtil.createInvalidValue(e);
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_2, CAUGHT_not_0);
+ CAUGHT_and_0 = and_0;
}
catch (Exception e) {
- CAUGHT_eq_2 = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @Nullable Object CAUGHT_not_0;
+ /*@Caught*/ @NonNull Object CAUGHT_eq_5;
try {
- final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object container_0 = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_9);
- final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CallExpCS_4 = idResolver.getClass(CLSSid_CallExpCS, null);
- final /*@Thrown*/ boolean oclIsKindOf_0 = OclAnyOclIsKindOfOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4).booleanValue();
- /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable CallExpCS symbol_2;
- if (oclIsKindOf_0) {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CallExpCS oclAsType_0 = ClassUtil.nonNullState((CallExpCS)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, container_0, TYP_minioclcs_c_c_CallExpCS_4));
- symbol_2 = oclAsType_0;
- }
- else {
- symbol_2 = null;
- }
- final /*@Thrown*/ boolean eq_3 = symbol_2 == null;
- /*@Thrown*/ boolean symbol_3;
- if (eq_3) {
- symbol_3 = ValueUtil.FALSE_VALUE;
- }
- else {
- if (symbol_2 == null) {
- throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::CallExpCS::nameExp\'");
- }
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable NameExpCS nameExp_0 = symbol_2.getNameExp();
- final /*@Thrown*/ boolean eq_4 = lNameExpCS_9.equals(nameExp_0);
- symbol_3 = eq_4;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_9.getExpName();
+ if (expName == null) {
+ throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean not_0 = BooleanNotOperation.INSTANCE.evaluate(symbol_3);
- CAUGHT_not_0 = not_0;
+ @SuppressWarnings("null")
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
+ final /*@Thrown*/ boolean eq_5 = size.equals(INT_1);
+ CAUGHT_eq_5 = eq_5;
}
catch (Exception e) {
- CAUGHT_not_0 = ValueUtil.createInvalidValue(e);
+ CAUGHT_eq_5 = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_0 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_eq_2, CAUGHT_not_0);
- CAUGHT_and_0 = and_0;
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_eq_5);
+ CAUGHT_and_1 = and_1;
}
catch (Exception e) {
- CAUGHT_and_0 = ValueUtil.createInvalidValue(e);
+ CAUGHT_and_1 = ValueUtil.createInvalidValue(e);
}
- /*@Caught*/ @NonNull Object CAUGHT_eq_5;
+ /*@Caught*/ @NonNull Object CAUGHT_ne;
try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName = lNameExpCS_9.getExpName();
- if (expName == null) {
+ final /*@NonInvalid*/ org.eclipse.ocl.pivot.@org.eclipse.jdt.annotation.NonNull Class TYP_minioclcs_c_c_CSTrace_0 = idResolver.getClass(CLSSid_CSTrace, null);
+ final /*@NonInvalid*/ java.lang.@org.eclipse.jdt.annotation.Nullable Object oclContainer = ClassifierOclContainerOperation.INSTANCE.evaluate(executor, lNameExpCS_9);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.NonNull CSTrace oclAsType_1 = ClassUtil.nonNullState((CSTrace)OclAnyOclAsTypeOperation.INSTANCE.evaluate(executor, oclContainer, TYP_minioclcs_c_c_CSTrace_0));
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = oclAsType_1.getAst();
+ if (self_1 == null) {
+ throw throwNull(lNameExpCS_9, "Null where non-null value required");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_9.getExpName();
+ if (expName_0 == null) {
throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
}
@SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path = expName.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path);
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull IntegerValue size = CollectionSizeOperation.INSTANCE.evaluate(BOXED_path);
- final /*@Thrown*/ boolean eq_5 = size.equals(INT_1);
- CAUGHT_eq_5 = eq_5;
+ final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
+ final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
+ if (aPathElementCS == null) {
+ throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::elementName\'");
+ }
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String elementName = aPathElementCS.getElementName();
+ MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)elementName);
+ Variable _lookupUnqualifiedVariable = null;
+ if (_lookupResult.size() == 1) {
+ _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
+ } else {
+ handleLookupError(aPathElementCS,elementName);
+ };
+ final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
+ CAUGHT_ne = ne;
}
catch (Exception e) {
- CAUGHT_eq_5 = ValueUtil.createInvalidValue(e);
+ CAUGHT_ne = ValueUtil.createInvalidValue(e);
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_1 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_0, CAUGHT_eq_5);
- CAUGHT_and_1 = and_1;
- }
- catch (Exception e) {
- CAUGHT_and_1 = ValueUtil.createInvalidValue(e);
- }
- /*@Caught*/ @NonNull Object CAUGHT_ne;
- try {
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable Element self_1 = lNameExpCS_9.getAst();
- if (self_1 == null) {
- throw throwNull(lNameExpCS_9, "Null where non-null value required");
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_1, CAUGHT_ne);
+ if (and_2 == null) {
+ throw throwNull(lNameExpCS_9, "Null if condition");
}
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathNameCS expName_0 = lNameExpCS_9.getExpName();
- if (expName_0 == null) {
- throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathNameCS::path\'");
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_5;
+ if (and_2) {
+ // creations
+ final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable VariableExp rVariableExp = MiniOCLFactory.eINSTANCE.createVariableExp();
+ assert rVariableExp != null;
+ models[1/*rightAS*/].add(rVariableExp);
+ // property assignments
+ lNameExpCS_9.setAst(rVariableExp);
+ objectManager.assigned(lNameExpCS_9, MinioclcsPackage.Literals.CS_TRACE__AST, rVariableExp, null);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_VariableExp_NameExpCS_CallExpCS_Element_Expressi = ValueUtil.TRUE_VALUE;
+ symbol_5 = m_VariableExp_NameExpCS_CallExpCS_Element_Expressi;
}
- @SuppressWarnings("null")
- final /*@Thrown*/ java.util.@org.eclipse.jdt.annotation.NonNull List<PathElementCS> path_0 = expName_0.getPath();
- final /*@Thrown*/ org.eclipse.ocl.pivot.values.@org.eclipse.jdt.annotation.NonNull OrderedSetValue BOXED_path_0 = idResolver.createOrderedSetOfAll(ORD_CLSSid_PathElementCS, path_0);
- final /*@Thrown*/ org.eclipse.qvtd.doc.minioclcs.@org.eclipse.jdt.annotation.Nullable PathElementCS aPathElementCS = (PathElementCS)OrderedCollectionFirstOperation.INSTANCE.evaluate(BOXED_path_0);
- if (aPathElementCS == null) {
- throw throwNull(lNameExpCS_9, "Null source for \'\'http://www.eclipse.org/qvtd/doc/MiniOCLCS\'::PathElementCS::pathName\'");
+ else {
+ symbol_5 = ValueUtil.FALSE_VALUE;
}
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable String pathName = aPathElementCS.getPathName();
- MiniOCLLookupResult<Variable> _lookupResult = lookupSolver._lookupUnqualifiedVariable(self_1, (String)pathName);
- Variable _lookupUnqualifiedVariable = null;
- if (_lookupResult.size() == 1) {
- _lookupUnqualifiedVariable = _lookupResult.getSingleResult();
- } else {
- handleLookupError(aPathElementCS,pathName);
- };
- final /*@Thrown*/ boolean ne = _lookupUnqualifiedVariable != null;
- CAUGHT_ne = ne;
- }
- catch (Exception e) {
- CAUGHT_ne = ValueUtil.createInvalidValue(e);
- }
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean and_2 = BooleanAndOperation.INSTANCE.evaluate(CAUGHT_and_1, CAUGHT_ne);
- if (and_2 == null) {
- throw throwNull(lNameExpCS_9, "Null if condition");
- }
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_5;
- if (and_2) {
- // creations
- final /*@Thrown*/ org.eclipse.qvtd.doc.miniocl.@org.eclipse.jdt.annotation.Nullable VariableExp rVariableExp = MiniOCLFactory.eINSTANCE.createVariableExp();
- assert rVariableExp != null;
- models[1/*rightAS*/].add(rVariableExp);
- // property assignments
- lNameExpCS_9.setAst(rVariableExp);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_VariableExp_NameExpCS_NamedElement_Variable = ValueUtil.TRUE_VALUE;
- symbol_5 = m_VariableExp_NameExpCS_NamedElement_Variable;
+ symbol_6 = symbol_5;
}
else {
- symbol_5 = ValueUtil.FALSE_VALUE;
+ symbol_6 = ValueUtil.FALSE_VALUE;
}
- symbol_6 = symbol_5;
- }
- else {
- symbol_6 = ValueUtil.FALSE_VALUE;
+ return symbol_6;
+ } catch (Throwable e) {
+ return handleExecutionFailure("MAP_m_VariableExp_NameExpCS_CallExpCS_Element_Expressi", e);
}
- return symbol_6;
- } catch (Throwable e) {
- return handleExecutionFailure("MAP_m_VariableExp_NameExpCS_NamedElement_Variable", e);
+ }
+
+ public boolean isEqual(@NonNull IdResolver idResolver, @NonNull Object @NonNull [] thoseValues) {
+ return idResolver.oclEquals(lNameExpCS_9, thoseValues[0]);
}
}
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSAntlrTokenFileProvider.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSAntlrTokenFileProvider.java
index 97bea533e..3f0870b4d 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSAntlrTokenFileProvider.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSAntlrTokenFileProvider.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.parser.antlr;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSParser.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSParser.java
index c4ae0c281..7065276a2 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSParser.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/MiniOCLCSParser.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.parser.antlr;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCS.g b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCS.g
index 530118b9e..e6567acff 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCS.g
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCS.g
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
grammar InternalMiniOCLCS;
@@ -1324,17 +1324,17 @@ rulePathNameCS returns [EObject current=null]
(
(
{
- newCompositeNode(grammarAccess.getPathNameCSAccess().getPathPathElementCSParserRuleCall_1_1_0());
+ newCompositeNode(grammarAccess.getPathNameCSAccess().getPathElementsPathElementCSParserRuleCall_1_1_0());
}
- lv_path_2_0=rulePathElementCS
+ lv_pathElements_2_0=rulePathElementCS
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPathNameCSRule());
}
add(
$current,
- "path",
- lv_path_2_0,
+ "pathElements",
+ lv_pathElements_2_0,
"org.eclipse.qvtd.doc.MiniOCLCS.PathElementCS");
afterParserOrEnumRuleCall();
}
@@ -1361,9 +1361,9 @@ rulePathElementCS returns [EObject current=null]
}:
(
(
- lv_pathName_0_0=RULE_ID
+ lv_elementName_0_0=RULE_ID
{
- newLeafNode(lv_pathName_0_0, grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0());
+ newLeafNode(lv_elementName_0_0, grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0());
}
{
if ($current==null) {
@@ -1371,8 +1371,8 @@ rulePathElementCS returns [EObject current=null]
}
setWithLastConsumed(
$current,
- "pathName",
- lv_pathName_0_0,
+ "elementName",
+ lv_elementName_0_0,
"org.eclipse.xtext.common.Terminals.ID");
}
)
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCSParser.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCSParser.java
index 2444876c9..a2d5c01a3 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCSParser.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/parser/antlr/internal/InternalMiniOCLCSParser.java
@@ -3593,25 +3593,25 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
// $ANTLR start "rulePathNameCS"
- // InternalMiniOCLCS.g:1292:1: rulePathNameCS returns [EObject current=null] : ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) ) )* ) ;
+ // InternalMiniOCLCS.g:1292:1: rulePathNameCS returns [EObject current=null] : ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) ) )* ) ;
public final EObject rulePathNameCS() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
EObject lv_path_0_0 = null;
- EObject lv_path_2_0 = null;
+ EObject lv_pathElements_2_0 = null;
enterRule();
try {
- // InternalMiniOCLCS.g:1298:2: ( ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) ) )* ) )
- // InternalMiniOCLCS.g:1299:2: ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) ) )* )
+ // InternalMiniOCLCS.g:1298:2: ( ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) ) )* ) )
+ // InternalMiniOCLCS.g:1299:2: ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) ) )* )
{
- // InternalMiniOCLCS.g:1299:2: ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) ) )* )
- // InternalMiniOCLCS.g:1300:3: ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) ) )*
+ // InternalMiniOCLCS.g:1299:2: ( ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) ) )* )
+ // InternalMiniOCLCS.g:1300:3: ( (lv_path_0_0= rulePathElementCS ) ) (otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) ) )*
{
// InternalMiniOCLCS.g:1300:3: ( (lv_path_0_0= rulePathElementCS ) )
// InternalMiniOCLCS.g:1301:4: (lv_path_0_0= rulePathElementCS )
@@ -3648,7 +3648,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
}
- // InternalMiniOCLCS.g:1319:3: (otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) ) )*
+ // InternalMiniOCLCS.g:1319:3: (otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) ) )*
loop18:
do {
int alt18=2;
@@ -3661,7 +3661,7 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
switch (alt18) {
case 1 :
- // InternalMiniOCLCS.g:1320:4: otherlv_1= '::' ( (lv_path_2_0= rulePathElementCS ) )
+ // InternalMiniOCLCS.g:1320:4: otherlv_1= '::' ( (lv_pathElements_2_0= rulePathElementCS ) )
{
otherlv_1=(Token)match(input,31,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
@@ -3669,19 +3669,19 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_1, grammarAccess.getPathNameCSAccess().getColonColonKeyword_1_0());
}
- // InternalMiniOCLCS.g:1324:4: ( (lv_path_2_0= rulePathElementCS ) )
- // InternalMiniOCLCS.g:1325:5: (lv_path_2_0= rulePathElementCS )
+ // InternalMiniOCLCS.g:1324:4: ( (lv_pathElements_2_0= rulePathElementCS ) )
+ // InternalMiniOCLCS.g:1325:5: (lv_pathElements_2_0= rulePathElementCS )
{
- // InternalMiniOCLCS.g:1325:5: (lv_path_2_0= rulePathElementCS )
- // InternalMiniOCLCS.g:1326:6: lv_path_2_0= rulePathElementCS
+ // InternalMiniOCLCS.g:1325:5: (lv_pathElements_2_0= rulePathElementCS )
+ // InternalMiniOCLCS.g:1326:6: lv_pathElements_2_0= rulePathElementCS
{
if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPathNameCSAccess().getPathPathElementCSParserRuleCall_1_1_0());
+ newCompositeNode(grammarAccess.getPathNameCSAccess().getPathElementsPathElementCSParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_21);
- lv_path_2_0=rulePathElementCS();
+ lv_pathElements_2_0=rulePathElementCS();
state._fsp--;
if (state.failed) return current;
@@ -3692,8 +3692,8 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
}
add(
current,
- "path",
- lv_path_2_0,
+ "pathElements",
+ lv_pathElements_2_0,
"org.eclipse.qvtd.doc.MiniOCLCS.PathElementCS");
afterParserOrEnumRuleCall();
@@ -3778,29 +3778,29 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
// $ANTLR start "rulePathElementCS"
- // InternalMiniOCLCS.g:1355:1: rulePathElementCS returns [EObject current=null] : ( (lv_pathName_0_0= RULE_ID ) ) ;
+ // InternalMiniOCLCS.g:1355:1: rulePathElementCS returns [EObject current=null] : ( (lv_elementName_0_0= RULE_ID ) ) ;
public final EObject rulePathElementCS() throws RecognitionException {
EObject current = null;
- Token lv_pathName_0_0=null;
+ Token lv_elementName_0_0=null;
enterRule();
try {
- // InternalMiniOCLCS.g:1361:2: ( ( (lv_pathName_0_0= RULE_ID ) ) )
- // InternalMiniOCLCS.g:1362:2: ( (lv_pathName_0_0= RULE_ID ) )
+ // InternalMiniOCLCS.g:1361:2: ( ( (lv_elementName_0_0= RULE_ID ) ) )
+ // InternalMiniOCLCS.g:1362:2: ( (lv_elementName_0_0= RULE_ID ) )
{
- // InternalMiniOCLCS.g:1362:2: ( (lv_pathName_0_0= RULE_ID ) )
- // InternalMiniOCLCS.g:1363:3: (lv_pathName_0_0= RULE_ID )
+ // InternalMiniOCLCS.g:1362:2: ( (lv_elementName_0_0= RULE_ID ) )
+ // InternalMiniOCLCS.g:1363:3: (lv_elementName_0_0= RULE_ID )
{
- // InternalMiniOCLCS.g:1363:3: (lv_pathName_0_0= RULE_ID )
- // InternalMiniOCLCS.g:1364:4: lv_pathName_0_0= RULE_ID
+ // InternalMiniOCLCS.g:1363:3: (lv_elementName_0_0= RULE_ID )
+ // InternalMiniOCLCS.g:1364:4: lv_elementName_0_0= RULE_ID
{
- lv_pathName_0_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
+ lv_elementName_0_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
- newLeafNode(lv_pathName_0_0, grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0());
+ newLeafNode(lv_elementName_0_0, grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0());
}
if ( state.backtracking==0 ) {
@@ -3810,8 +3810,8 @@ public class InternalMiniOCLCSParser extends AbstractInternalAntlrParser {
}
setWithLastConsumed(
current,
- "pathName",
- lv_pathName_0_0,
+ "elementName",
+ lv_elementName_0_0,
"org.eclipse.xtext.common.Terminals.ID");
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/scoping/AbstractMiniOCLCSScopeProvider.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/scoping/AbstractMiniOCLCSScopeProvider.java
index 6953e1818..dade0edca 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/scoping/AbstractMiniOCLCSScopeProvider.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/scoping/AbstractMiniOCLCSScopeProvider.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.scoping;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSemanticSequencer.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSemanticSequencer.java
index 66c62dfd2..3005541ad 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSemanticSequencer.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSemanticSequencer.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.serializer;
@@ -288,15 +288,15 @@ public class MiniOCLCSSemanticSequencer extends AbstractDelegatingSemanticSequen
* PathElementCS returns PathElementCS
*
* Constraint:
- * pathName=ID
+ * elementName=ID
*/
protected void sequence_PathElementCS(ISerializationContext context, PathElementCS semanticObject) {
if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, MinioclcsPackage.Literals.PATH_ELEMENT_CS__PATH_NAME) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MinioclcsPackage.Literals.PATH_ELEMENT_CS__PATH_NAME));
+ if (transientValues.isValueTransient(semanticObject, MinioclcsPackage.Literals.PATH_ELEMENT_CS__ELEMENT_NAME) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MinioclcsPackage.Literals.PATH_ELEMENT_CS__ELEMENT_NAME));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPathElementCSAccess().getPathNameIDTerminalRuleCall_0(), semanticObject.getPathName());
+ feeder.accept(grammarAccess.getPathElementCSAccess().getElementNameIDTerminalRuleCall_0(), semanticObject.getElementName());
feeder.finish();
}
@@ -306,7 +306,7 @@ public class MiniOCLCSSemanticSequencer extends AbstractDelegatingSemanticSequen
* PathNameCS returns PathNameCS
*
* Constraint:
- * (path+=PathElementCS path+=PathElementCS*)
+ * (path+=PathElementCS pathElements+=PathElementCS*)
*/
protected void sequence_PathNameCS(ISerializationContext context, PathNameCS semanticObject) {
genericSequencer.createSequence(context, semanticObject);
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSyntacticSequencer.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSyntacticSequencer.java
index 02b05232f..5a885cade 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSyntacticSequencer.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/serializer/MiniOCLCSSyntacticSequencer.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.serializer;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/services/MiniOCLCSGrammarAccess.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/services/MiniOCLCSGrammarAccess.java
index a3e4ede8b..089eda554 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/services/MiniOCLCSGrammarAccess.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/services/MiniOCLCSGrammarAccess.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.services;
@@ -704,14 +704,14 @@ public class MiniOCLCSGrammarAccess extends AbstractGrammarElementFinder {
private final RuleCall cPathPathElementCSParserRuleCall_0_0 = (RuleCall)cPathAssignment_0.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Keyword cColonColonKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cPathAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cPathPathElementCSParserRuleCall_1_1_0 = (RuleCall)cPathAssignment_1_1.eContents().get(0);
+ private final Assignment cPathElementsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cPathElementsPathElementCSParserRuleCall_1_1_0 = (RuleCall)cPathElementsAssignment_1_1.eContents().get(0);
//PathNameCS:
- // path+=PathElementCS ('::' path+=PathElementCS)*;
+ // path+=PathElementCS ('::' pathElements+=PathElementCS)*;
@Override public ParserRule getRule() { return rule; }
- //path+=PathElementCS ('::' path+=PathElementCS)*
+ //path+=PathElementCS ('::' pathElements+=PathElementCS)*
public Group getGroup() { return cGroup; }
//path+=PathElementCS
@@ -720,32 +720,32 @@ public class MiniOCLCSGrammarAccess extends AbstractGrammarElementFinder {
//PathElementCS
public RuleCall getPathPathElementCSParserRuleCall_0_0() { return cPathPathElementCSParserRuleCall_0_0; }
- //('::' path+=PathElementCS)*
+ //('::' pathElements+=PathElementCS)*
public Group getGroup_1() { return cGroup_1; }
//'::'
public Keyword getColonColonKeyword_1_0() { return cColonColonKeyword_1_0; }
- //path+=PathElementCS
- public Assignment getPathAssignment_1_1() { return cPathAssignment_1_1; }
+ //pathElements+=PathElementCS
+ public Assignment getPathElementsAssignment_1_1() { return cPathElementsAssignment_1_1; }
//PathElementCS
- public RuleCall getPathPathElementCSParserRuleCall_1_1_0() { return cPathPathElementCSParserRuleCall_1_1_0; }
+ public RuleCall getPathElementsPathElementCSParserRuleCall_1_1_0() { return cPathElementsPathElementCSParserRuleCall_1_1_0; }
}
public class PathElementCSElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.qvtd.doc.MiniOCLCS.PathElementCS");
- private final Assignment cPathNameAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cPathNameIDTerminalRuleCall_0 = (RuleCall)cPathNameAssignment.eContents().get(0);
+ private final Assignment cElementNameAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cElementNameIDTerminalRuleCall_0 = (RuleCall)cElementNameAssignment.eContents().get(0);
//PathElementCS:
- // pathName=ID;
+ // elementName=ID;
@Override public ParserRule getRule() { return rule; }
- //pathName=ID
- public Assignment getPathNameAssignment() { return cPathNameAssignment; }
+ //elementName=ID
+ public Assignment getElementNameAssignment() { return cElementNameAssignment; }
//ID
- public RuleCall getPathNameIDTerminalRuleCall_0() { return cPathNameIDTerminalRuleCall_0; }
+ public RuleCall getElementNameIDTerminalRuleCall_0() { return cElementNameIDTerminalRuleCall_0; }
}
@@ -1025,7 +1025,7 @@ public class MiniOCLCSGrammarAccess extends AbstractGrammarElementFinder {
}
//PathNameCS:
- // path+=PathElementCS ('::' path+=PathElementCS)*;
+ // path+=PathElementCS ('::' pathElements+=PathElementCS)*;
public PathNameCSElements getPathNameCSAccess() {
return pPathNameCS;
}
@@ -1035,7 +1035,7 @@ public class MiniOCLCSGrammarAccess extends AbstractGrammarElementFinder {
}
//PathElementCS:
- // pathName=ID;
+ // elementName=ID;
public PathElementCSElements getPathElementCSAccess() {
return pPathElementCS;
}
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/validation/AbstractMiniOCLCSValidator.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/validation/AbstractMiniOCLCSValidator.java
index 025ec9c0d..0e73c750a 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/validation/AbstractMiniOCLCSValidator.java
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/validation/AbstractMiniOCLCSValidator.java
@@ -1,5 +1,5 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.validation;
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/MiniOCLCS.xtext b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/MiniOCLCS.xtext
index a2556c709..b543e4706 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/MiniOCLCS.xtext
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/MiniOCLCS.xtext
@@ -98,9 +98,9 @@ BooleanLiteralExpCS:
PathNameCS :
path+=PathElementCS
- ('::'path+=PathElementCS)*
+ ('::'pathElements+=PathElementCS)*
;
PathElementCS:
- pathName=ID
+ elementName=ID
; \ No newline at end of file
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/generator/MiniOCLCSGenerator.xtend b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/generator/MiniOCLCSGenerator.xtend
index e684f4f17..56c4945bc 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/generator/MiniOCLCSGenerator.xtend
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src/org/eclipse/qvtd/doc/generator/MiniOCLCSGenerator.xtend
@@ -15,8 +15,8 @@ import org.eclipse.xtext.generator.IGeneratorContext
*/
class MiniOCLCSGenerator extends AbstractGenerator {
- override void doGenerate(Resource resource, IFileSystemAccess2 fsa, IGeneratorContext context) {
-// fsa.generateFile('greetings.txt', 'People to greet: ' +
+ override doGenerate(Resource input, IFileSystemAccess2 fsa, IGeneratorContext context) {
+ // fsa.generateFile('greetings.txt', 'People to greet: ' +
// resource.allContents
// .filter(typeof(Greeting))
// .map[name]
diff --git a/tests/org.eclipse.qvtd.doc.minioclcs.xtext.tests/src-gen/org/eclipse/qvtd/doc/tests/MiniOCLCSInjectorProvider.java b/tests/org.eclipse.qvtd.doc.minioclcs.xtext.tests/src-gen/org/eclipse/qvtd/doc/tests/MiniOCLCSInjectorProvider.java
index 740cbf4ec..145ce3139 100644
--- a/tests/org.eclipse.qvtd.doc.minioclcs.xtext.tests/src-gen/org/eclipse/qvtd/doc/tests/MiniOCLCSInjectorProvider.java
+++ b/tests/org.eclipse.qvtd.doc.minioclcs.xtext.tests/src-gen/org/eclipse/qvtd/doc/tests/MiniOCLCSInjectorProvider.java
@@ -1,9 +1,11 @@
/*
- * generated by Xtext 2.10.0-SNAPSHOT
+ * generated by Xtext 2.10.0
*/
package org.eclipse.qvtd.doc.tests;
+import com.google.inject.Guice;
import com.google.inject.Injector;
+import org.eclipse.qvtd.doc.MiniOCLCSRuntimeModule;
import org.eclipse.qvtd.doc.MiniOCLCSStandaloneSetup;
import org.eclipse.xtext.junit4.GlobalRegistries;
import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento;
@@ -31,7 +33,24 @@ public class MiniOCLCSInjectorProvider implements IInjectorProvider, IRegistryCo
}
protected Injector internalCreateInjector() {
- return new MiniOCLCSStandaloneSetup().createInjectorAndDoEMFRegistration();
+ return new MiniOCLCSStandaloneSetup() {
+ @Override
+ public Injector createInjector() {
+ return Guice.createInjector(createRuntimeModule());
+ }
+ }.createInjectorAndDoEMFRegistration();
+ }
+
+ protected MiniOCLCSRuntimeModule createRuntimeModule() {
+ // make it work also with Maven/Tycho and OSGI
+ // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
+ return new MiniOCLCSRuntimeModule() {
+ @Override
+ public ClassLoader bindClassLoaderToInstance() {
+ return MiniOCLCSInjectorProvider.class
+ .getClassLoader();
+ }
+ };
}
@Override

Back to the top