public class CS2ASConversion extends AbstractBase2ASConversion
Modifier and Type | Class and Description |
---|---|
static class |
CS2ASConversion.CacheKey<T> |
AbstractConversion.Predicate<T extends EObject>
Modifier and Type | Field and Description |
---|---|
static TracingOption |
CONTINUATION |
Constructor and Description |
---|
CS2ASConversion(CS2AS converter,
IDiagnosticConsumer diagnosticsConsumer) |
Modifier and Type | Method and Description |
---|---|
OCLExpression |
addBadExpressionError(ModelElementCS csElement,
String message,
Object... bindings) |
void |
addDiagnostic(ElementCS csElement,
String boundMessage)
Deprecated.
|
void |
addDiagnostic(ModelElementCS csElement,
Diagnostic diagnostic)
Deprecated.
|
void |
addError(ElementCS csElement,
String message,
Object... bindings) |
void |
addWarning(ModelElementCS csElement,
String message,
Object... bindings) |
String |
bind(EObject csContext,
String messageTemplate,
Object... bindings) |
boolean |
checkForNoErrors(BaseCSResource csResource) |
Dependency |
createTypeIsReferenceableDependency(TypeRefCS csTemplateParameter)
Deprecated.
no longer used - code null test in caller
|
void |
garbageCollect(Map<? extends Resource,? extends ASResource> cs2asResourceMap)
Prune the pivots to eliminate:
- redundant orphans - e.g.
|
CS2AS |
getConverter() |
PivotHelper |
getHelper() |
<T> T |
getIntermediate(CS2ASConversion.CacheKey<T> key) |
<T extends Element> |
getNewPivotElements(Class<T> pivotClass,
Iterable<? extends ModelElementCS> csElements) |
Package |
getOldPackageByQualifiedName(PackageCS csElement) |
Package |
getOldPackageBySimpleName(String name) |
InterDependency<org.eclipse.ocl.xtext.base.cs2as.BaseCSPreOrderVisitor.OperatorExpContinuation<?>> |
getOperatorsHavePrecedenceInterDependency() |
InterDependency<org.eclipse.ocl.xtext.base.cs2as.BaseCSPreOrderVisitor.TemplateSignatureContinuation> |
getTypesHaveSignaturesInterDependency() |
void |
handleVisitNamedElement(NamedElementCS csNamedElement,
NamedElement pivotElement) |
void |
installPivotReference(ElementRefCS csElement,
Element newPivotElement,
EReference eReference) |
void |
installPivotTypeWithMultiplicity(Type pivotType,
TypedRefCS csElement) |
void |
installPivotUsage(ModelElementCS csElement,
Element newPivotElement) |
void |
installRootElement(BaseCSResource csResource,
Element pivotElement) |
boolean |
isInReturnTypeWithUnresolvedParameters(ElementCS csElement) |
Boolean |
isRequired(TypedRefCS csTypeRef) |
Iteration |
lookupIteration(ElementCS csElement,
PathNameCS csPathName,
ScopeFilter scopeFilter) |
Operation |
lookupOperation(ElementCS csElement,
PathNameCS csPathName,
ScopeFilter scopeFilter) |
Property |
lookupProperty(ElementCS csElement,
PathNameCS csPathName,
ScopeFilter scopeFilter) |
Type |
lookupType(ElementCS csElement,
PathNameCS csPathName) |
Type |
lookupTypeValue(ElementCS csElement,
PathNameCS csPathName) |
Element |
lookupUndecoratedName(ElementCS csElement,
PathNameCS csPathName) |
<T> T |
putIntermediate(CS2ASConversion.CacheKey<T> key,
T object) |
void |
refreshComments(Element pivotElement,
ElementCS csElement) |
void |
refreshContextVariable(ElementCS csElement,
ExpressionInOCL pivotSpecification) |
<T extends Element> |
refreshList(Class<T> pivotClass,
List<T> pivotElements,
List<? extends PivotableElementCS> csElements) |
<T extends Element> |
refreshModelElement(Class<T> pivotClass,
EClass pivotEClass,
ModelElementCS csElement)
Return a pivotEClass instance cast to pivotClass registered for csElement.getCSI().
|
void |
refreshName(NamedElement pivotNamedElement,
String newName)
Deprecated.
|
void |
refreshNsURI(Package pivotPackage,
String newNsURI)
Deprecated.
|
<T extends Element> |
refreshPivotList(Class<T> pivotClass,
List<? super T> pivotElements,
Iterable<? extends ModelElementCS> csElements) |
Type |
refreshRequiredType(TypedElement pivotElement,
TypedElementCS csTypedElement) |
void |
refreshRequiredType(TypedElement pivotElement,
TypedRefCS csTypeRef) |
void |
refreshTemplateSignature(TemplateableElementCS csTemplateableElement,
TemplateableElement pivotTemplateableElement) |
void |
setBehavioralType(TypedElement targetElement,
TypedElement sourceElement)
Deprecated.
|
void |
setContextVariable(ExpressionInOCL pivotSpecification,
String selfVariableName,
Type contextType,
Type contextInstance)
Deprecated.
|
void |
setReferredIteration(LoopExp expression,
Iteration iteration) |
void |
setReferredOperation(OperationCallExp expression,
Operation operation) |
void |
setType(OCLExpression pivotElement,
Type type,
boolean isRequired,
Type typeValue)
Deprecated.
|
void |
setType(TypedElement pivotElement,
Type type,
boolean isRequired)
Deprecated.
|
void |
setType(VariableDeclaration pivotElement,
Type type,
boolean isRequired,
Type typeValue)
Deprecated.
|
boolean |
update(BaseCSResource csResource)
Sequence the update passes to make the pivot match the CS.
|
<T extends Element> |
visitLeft2Right(Class<T> pivotClass,
ElementCS csElement) |
setClassifierContext, setOperationContext, setParameterVariables, setParameterVariables, setPropertyContext, setResultVariable, setType
getEnvironmentFactory, getEPackage, getMetamodelManager, getStandardLibrary, isId, refreshList
public static final TracingOption CONTINUATION
public CS2ASConversion(CS2AS converter, IDiagnosticConsumer diagnosticsConsumer)
public OCLExpression addBadExpressionError(ModelElementCS csElement, String message, Object... bindings)
@Deprecated public void addDiagnostic(ModelElementCS csElement, Diagnostic diagnostic)
@Deprecated public void addDiagnostic(ElementCS csElement, String boundMessage)
public void addWarning(ModelElementCS csElement, String message, Object... bindings)
public boolean checkForNoErrors(BaseCSResource csResource)
@Deprecated public Dependency createTypeIsReferenceableDependency(TypeRefCS csTemplateParameter)
public void garbageCollect(Map<? extends Resource,? extends ASResource> cs2asResourceMap)
public final CS2AS getConverter()
public final PivotHelper getHelper()
public <T> T getIntermediate(CS2ASConversion.CacheKey<T> key)
public <T extends Element> List<T> getNewPivotElements(Class<T> pivotClass, Iterable<? extends ModelElementCS> csElements)
public InterDependency<org.eclipse.ocl.xtext.base.cs2as.BaseCSPreOrderVisitor.OperatorExpContinuation<?>> getOperatorsHavePrecedenceInterDependency()
public InterDependency<org.eclipse.ocl.xtext.base.cs2as.BaseCSPreOrderVisitor.TemplateSignatureContinuation> getTypesHaveSignaturesInterDependency()
public void handleVisitNamedElement(NamedElementCS csNamedElement, NamedElement pivotElement)
public void installPivotReference(ElementRefCS csElement, Element newPivotElement, EReference eReference)
public void installPivotUsage(ModelElementCS csElement, Element newPivotElement)
public void installPivotTypeWithMultiplicity(Type pivotType, TypedRefCS csElement)
public void installRootElement(BaseCSResource csResource, Element pivotElement)
public boolean isInReturnTypeWithUnresolvedParameters(ElementCS csElement)
public Boolean isRequired(TypedRefCS csTypeRef)
public Iteration lookupIteration(ElementCS csElement, PathNameCS csPathName, ScopeFilter scopeFilter)
public Operation lookupOperation(ElementCS csElement, PathNameCS csPathName, ScopeFilter scopeFilter)
public Property lookupProperty(ElementCS csElement, PathNameCS csPathName, ScopeFilter scopeFilter)
public Type lookupType(ElementCS csElement, PathNameCS csPathName)
public Type lookupTypeValue(ElementCS csElement, PathNameCS csPathName)
public Element lookupUndecoratedName(ElementCS csElement, PathNameCS csPathName)
public <T> T putIntermediate(CS2ASConversion.CacheKey<T> key, T object)
public void refreshContextVariable(ElementCS csElement, ExpressionInOCL pivotSpecification)
public <T extends Element> void refreshList(Class<T> pivotClass, List<T> pivotElements, List<? extends PivotableElementCS> csElements)
public <T extends Element> T refreshModelElement(Class<T> pivotClass, EClass pivotEClass, ModelElementCS csElement)
An existing element is re-used else an new instance is created.
The pivot element is installed as the original object of csElement.
@Deprecated public void refreshName(NamedElement pivotNamedElement, String newName)
refreshName
in class AbstractBase2ASConversion
@Deprecated public void refreshNsURI(Package pivotPackage, String newNsURI)
refreshNsURI
in class AbstractBase2ASConversion
public <T extends Element> void refreshPivotList(Class<T> pivotClass, List<? super T> pivotElements, Iterable<? extends ModelElementCS> csElements)
public Type refreshRequiredType(TypedElement pivotElement, TypedElementCS csTypedElement)
public void refreshRequiredType(TypedElement pivotElement, TypedRefCS csTypeRef)
public void refreshTemplateSignature(TemplateableElementCS csTemplateableElement, TemplateableElement pivotTemplateableElement)
@Deprecated public void setBehavioralType(TypedElement targetElement, TypedElement sourceElement)
setBehavioralType
in class AbstractBase2ASConversion
@Deprecated public void setContextVariable(ExpressionInOCL pivotSpecification, String selfVariableName, Type contextType, Type contextInstance)
setContextVariable
in interface Base2ASConversion
setContextVariable
in class AbstractBase2ASConversion
public void setReferredOperation(OperationCallExp expression, Operation operation)
@Deprecated public void setType(OCLExpression pivotElement, Type type, boolean isRequired, Type typeValue)
setType
in class AbstractBase2ASConversion
@Deprecated public void setType(VariableDeclaration pivotElement, Type type, boolean isRequired, Type typeValue)
setType
in class AbstractBase2ASConversion
@Deprecated public void setType(TypedElement pivotElement, Type type, boolean isRequired)
setType
in class AbstractBase2ASConversion
public boolean update(BaseCSResource csResource)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.