org.eclipse.ocl.examples.xtext.base.cs2as
Class BasicContinuation<T>

java.lang.Object
  extended by 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.


Field Summary
protected  CS2PivotConversion context
           
protected  T csElement
           
protected  Dependency[] dependencies
           
protected  org.eclipse.emf.ecore.EStructuralFeature pivotFeature
           
protected  Element pivotParent
           
 
Constructor Summary
BasicContinuation(CS2PivotConversion context, Element pivotParent, org.eclipse.emf.ecore.EStructuralFeature pivotFeature, T csElement, Dependency... dependencies)
           
 
Method Summary
 void addError(java.lang.String message)
           
 void addTo(java.util.List<BasicContinuation<?>> simpleContinuations)
           
 boolean canExecute()
           
abstract  BasicContinuation<?> execute()
           
 Dependency[] getDependencies()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

BasicContinuation

public BasicContinuation(@NonNull
                         CS2PivotConversion context,
                         Element pivotParent,
                         org.eclipse.emf.ecore.EStructuralFeature pivotFeature,
                         @NonNull
                         T csElement,
                         Dependency... dependencies)
Method Detail

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