org.eclipse.ocl.examples.xtext.base.cs2as
Class BasicContinuation<T>
java.lang.Object
org.eclipse.ocl.examples.xtext.base.cs2as.BasicContinuation<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Continuation<T>
- Direct Known Subclasses:
- MultipleContinuation, SingleContinuation
public abstract class BasicContinuation<T>
- extends java.lang.Object
- implements Continuation<T>
A BasicContinuation defines a conversion activity that needs to be performed once
its dependencies have been satisfied. All BasicContinuations are implicitly dependent
on the end of the pre and posrt order traversals.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
context
@NonNull
protected final CS2PivotConversion context
pivotParent
protected final Element pivotParent
pivotFeature
protected final org.eclipse.emf.ecore.EStructuralFeature pivotFeature
csElement
@NonNull
protected final T csElement
dependencies
protected final Dependency[] dependencies
BasicContinuation
public BasicContinuation(@NonNull
CS2PivotConversion context,
Element pivotParent,
org.eclipse.emf.ecore.EStructuralFeature pivotFeature,
@NonNull
T csElement,
Dependency... dependencies)
addError
public void addError(@NonNull
java.lang.String message)
addTo
public void addTo(@NonNull
java.util.List<BasicContinuation<?>> simpleContinuations)
- Specified by:
addTo
in interface Continuation<T>
canExecute
public boolean canExecute()
execute
public abstract BasicContinuation<?> execute()
getDependencies
public Dependency[] getDependencies()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object