public class BaseCS2Pivot extends CS2Pivot
Conversion/update occurs in five passes.
Pass 1: updateDeclarers()
the package/class/property/template parameter CS composition hierarchy is replicated in the pivot hierarchy
requests for unreferable declarations are accumulated in queuedDefiners.
requests for specialization are accumulated in queuedBindings.
requests for references are accumulated in queuedReferencers.
all unspecialized pivot elements have correct attributes and composed children
all unspecialized pivot nameable elements appear in moniker2pivotMap.
Pass 2: updateDefiners()
the feature/annotation/detail CS composition hierarchy is replicated in the pivot hierarchy
requests for specialization are accumulated in queuedBindings.
requests for references are accumulated in queuedReferencers.
all unspecialized pivot elements have correct attributes and composed children
all unspecialized pivot nameable elements appear in moniker2pivotMap.
Pass 3: updateReferencers()
the expression CS composition hierarchy is replicated in the pivot hierarchy
requests for resolvers are accumulated in queuedResolvers.
Pass 4: updateSpecializations()
a unique pivot specialization is created/updated from each distinct CS specialization.
further requests for references are accumulated in queuedReferencers.
all pivot elements have correct attributes and composed children
all pivot nameable elements appear in moniker2pivotMap.
all specialized elements have correct signature, formal references
Pass 5: updateResolvers()
cross-tree references are resolved in the pivot model.
- pivot specialization actual arguments
- TypedElementCS.type, TypedTypeRefCS.type, ...
Correlation between the CS and pivot is achieved by monikers which are unique for all NameableElements. The old pivot model's monikers initialize the moniker2PivotMap so the the subsequent refresh can discover a pre-existing pivot element for each required CS element. The moniker2PivotMap is updated as pivot elements are created. pivot monikers are not used during conversion since it may not be possible to create the correct moniker for a partially converted specialization.
CS2Pivot.AbstractUnresolvedProxyMessageProvider, CS2Pivot.DefaultMessageBinder, CS2Pivot.MessageBinder, CS2Pivot.MessageBinderWithLineContext, CS2Pivot.UnresolvedProxyMessageProviderAbstractConversion.Predicate<T extends org.eclipse.emf.ecore.EObject>cs2PivotMapping, cs2pivotResourceMap, showContextmetaModelManager| Constructor and Description |
|---|
BaseCS2Pivot(BaseCS2Pivot cs2pivot) |
BaseCS2Pivot(java.util.Map<? extends org.eclipse.emf.ecore.resource.Resource,? extends org.eclipse.emf.ecore.resource.Resource> cs2pivotResourceMap,
MetaModelManager metaModelManager) |
| Modifier and Type | Method and Description |
|---|---|
protected BaseContainmentVisitor |
createContainmentVisitor(CS2PivotConversion converter) |
protected BaseLeft2RightVisitor |
createLeft2RightVisitor(CS2PivotConversion converter) |
protected BasePostOrderVisitor |
createPostOrderVisitor(CS2PivotConversion converter) |
protected BasePreOrderVisitor |
createPreOrderVisitor(CS2PivotConversion converter) |
addUnresolvedProxyMessageProvider, basicGetType, bind, computePivot2CSMap, computeRootContainmentFeatures, createConversion, dispose, findAdapter, getCSElement, getCSResources, getDocumentationNodes, getMessageBinder, getPivotElement, getPivotElement, getPivotResource, getPivotResources, getTarget, getUnresolvedProxyMessage, getUnresolvedProxyText, installPivotDefinition, installPivotReference, installPivotUsage, isAdapterFor, isAdapterForType, metaModelManagerDisposed, notifyChanged, printDiagnostic, refreshModelElement, setElementType, setMessageBinder, setTarget, unsetTarget, updatebasicGet, getEPackage, getMetaModelManager, isId, refreshList, refreshSetpublic BaseCS2Pivot(@NonNull
java.util.Map<? extends org.eclipse.emf.ecore.resource.Resource,? extends org.eclipse.emf.ecore.resource.Resource> cs2pivotResourceMap,
@NonNull
MetaModelManager metaModelManager)
public BaseCS2Pivot(@NonNull
BaseCS2Pivot cs2pivot)
@NonNull protected BaseContainmentVisitor createContainmentVisitor(@NonNull CS2PivotConversion converter)
createContainmentVisitor in class CS2Pivot@NonNull protected BaseLeft2RightVisitor createLeft2RightVisitor(@NonNull CS2PivotConversion converter)
createLeft2RightVisitor in class CS2Pivot@NonNull protected BasePostOrderVisitor createPostOrderVisitor(@NonNull CS2PivotConversion converter)
createPostOrderVisitor in class CS2Pivot@NonNull protected BasePreOrderVisitor createPreOrderVisitor(@NonNull CS2PivotConversion converter)
createPreOrderVisitor in class CS2Pivot