Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/tx/AbstractSlotState.java')
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/tx/AbstractSlotState.java76
1 files changed, 76 insertions, 0 deletions
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/tx/AbstractSlotState.java b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/tx/AbstractSlotState.java
new file mode 100644
index 000000000..fd2697029
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/src-gen/org/eclipse/qvtd/doc/minioclcs/xtext/tx/AbstractSlotState.java
@@ -0,0 +1,76 @@
+/**
+ * This file was copied and re-packaged automatically by
+ * org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything
+ * from
+ * ..\..\plugins\org.eclipse.qvtd.runtime\src\org\eclipse\qvtd\runtime\evaluation\AbstractSlotState.java
+ *
+ * Do not edit this file.
+ */
+/*******************************************************************************
+ * Copyright (c) 2013, 2016 Willink Transformations and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * E.D.Willink - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.qvtd.doc.minioclcs.xtext.tx;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.eclipse.jdt.annotation.NonNull;
+
+/**
+ * The abstract implementation of a SlotState provides the mandatory shared functionality for maintaining
+ * the state of an object slot.
+ *
+ * at-since 1.1
+ */
+public abstract class AbstractSlotState implements SlotState
+{
+
+ public abstract static class Incremental extends AbstractSlotState implements SlotState.Incremental
+ {
+ public static final @NonNull List<Invocation.@NonNull Incremental> EMPTY_INVOCATIONS_LIST = Collections.emptyList();
+
+ private Set<Invocation.@NonNull Incremental> sources = null;
+ private Set<Invocation.@NonNull Incremental> targets = null;
+
+ @Override
+ public void addSourceInternal(Invocation.@NonNull Incremental invocation) {
+ if (sources == null) {
+ sources = new HashSet<Invocation.@NonNull Incremental>();
+ }
+ sources.add(invocation);
+ }
+
+ @Override
+ public void addTargetInternal(Invocation.@NonNull Incremental invocation) {
+ if (targets == null) {
+ targets = new HashSet<Invocation.@NonNull Incremental>();
+ }
+ targets.add(invocation);
+ }
+
+ @Override
+ public @NonNull Iterable<Invocation.@NonNull Incremental> getSources() {
+ return sources != null ? sources : EMPTY_INVOCATIONS_LIST;
+ }
+
+
+ @Override
+ public @NonNull Iterable<Invocation.@NonNull Incremental> getTargets() {
+ return targets != null ? targets : EMPTY_INVOCATIONS_LIST;
+ }
+ }
+
+ @Override
+ public <R> R accept(@NonNull ExecutionVisitor<R> visitor) {
+ return visitor.visitSlotState(this);
+ }
+}

Back to the top