blob: 272c44310d348bda20c94d8c5071cea07d483ba2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*******************************************************************************
* Copyright (c) 2013, 2015 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.runtime.evaluation;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
/**
* A SlotState identifies the assigned/not assigned state of an Object slot.
*
* @since 1.1
* @noimplement clients should derive from AbstractSlotState
*/
public interface SlotState extends ExecutionVisitable
{
/**
* Update the SlotState as a result of an assignment of ecoreValue to the eFeature of eObject.
*/
void assigned(@NonNull Object eObject, @NonNull EStructuralFeature eFeature, @Nullable Object ecoreValue);
void block(@NonNull Invocation invocation);
/**
* Throw an InvocationFailedException if the eFeature of eObject has not been assigned.
*/
void getting(@NonNull Object eObject, @NonNull EStructuralFeature eFeature) throws InvocationFailedException;
public interface Incremental extends SlotState
{
void addSourceInternal(Invocation.@NonNull Incremental invocation);
void addTargetInternal(Invocation.@NonNull Incremental invocation);
@NonNull EStructuralFeature getEFeature();
SlotState.@NonNull Incremental getPrimarySlotState();
@Nullable Object getValue();
@NonNull Iterable<Invocation.@NonNull Incremental> getSources();
@NonNull Iterable<Invocation.@NonNull Incremental> getTargets();
}
}
|