org.eclipse.ocl.examples.pivot.context
Class AbstractBase2PivotConversion
java.lang.Object
org.eclipse.ocl.examples.pivot.utilities.AbstractConversion
org.eclipse.ocl.examples.pivot.context.AbstractBase2PivotConversion
- All Implemented Interfaces:
- Base2PivotConversion
- Direct Known Subclasses:
- CS2PivotConversion
public abstract class AbstractBase2PivotConversion
- extends AbstractConversion
- implements Base2PivotConversion
AbstractBase2PivotConversion provides the Xtext independent support for Concrete Syntax
to Pivot conversion.
Method Summary |
protected void |
addUnderspecifiedTypedElement(TypedElement pivotElement)
|
void |
refreshName(NamedElement pivotNamedElement,
java.lang.String newName)
|
void |
refreshNsURI(Package pivotPackage,
java.lang.String newNsURI)
|
protected Type |
resolveUnderspecifiedType(Type type)
|
protected void |
resolveUnderspecifiedTypes()
|
void |
setBehavioralType(TypedElement targetElement,
TypedElement sourceElement)
|
void |
setClassifierContext(ExpressionInOCL pivotSpecification,
Type contextType)
|
void |
setContextVariable(ExpressionInOCL pivotSpecification,
java.lang.String selfVariableName,
Type contextType)
|
void |
setOperationContext(ExpressionInOCL pivotSpecification,
Operation contextOperation,
java.lang.String resultName)
|
void |
setParameterVariables(ExpressionInOCL pivotSpecification,
java.util.List<Parameter> parameters)
|
void |
setParameterVariables(ExpressionInOCL pivotSpecification,
java.util.Map<java.lang.String,Type> parameters)
|
void |
setPropertyContext(ExpressionInOCL pivotSpecification,
Property contextProperty)
|
void |
setResultVariable(ExpressionInOCL pivotSpecification,
Operation contextOperation,
java.lang.String resultName)
|
void |
setType(TypedElement pivotElement,
Type type)
Deprecated. |
void |
setType(TypedElement pivotElement,
Type type,
boolean isRequired)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBase2PivotConversion
protected AbstractBase2PivotConversion(@NonNull
MetaModelManager metaModelManager)
addUnderspecifiedTypedElement
protected void addUnderspecifiedTypedElement(@NonNull
TypedElement pivotElement)
refreshName
public void refreshName(@NonNull
NamedElement pivotNamedElement,
@Nullable
java.lang.String newName)
refreshNsURI
public void refreshNsURI(@NonNull
Package pivotPackage,
java.lang.String newNsURI)
resolveUnderspecifiedTypes
protected void resolveUnderspecifiedTypes()
resolveUnderspecifiedType
@NonNull
protected Type resolveUnderspecifiedType(@NonNull
Type type)
setBehavioralType
public void setBehavioralType(@NonNull
TypedElement targetElement,
@NonNull
TypedElement sourceElement)
setContextVariable
public void setContextVariable(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
java.lang.String selfVariableName,
@Nullable
Type contextType)
- Specified by:
setContextVariable
in interface Base2PivotConversion
setClassifierContext
public void setClassifierContext(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
Type contextType)
- Specified by:
setClassifierContext
in interface Base2PivotConversion
setOperationContext
public void setOperationContext(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
Operation contextOperation,
@Nullable
java.lang.String resultName)
setParameterVariables
public void setParameterVariables(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
java.util.List<Parameter> parameters)
- Specified by:
setParameterVariables
in interface Base2PivotConversion
setParameterVariables
public void setParameterVariables(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
java.util.Map<java.lang.String,Type> parameters)
- Specified by:
setParameterVariables
in interface Base2PivotConversion
setPropertyContext
public void setPropertyContext(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
Property contextProperty)
setResultVariable
public void setResultVariable(@NonNull
ExpressionInOCL pivotSpecification,
@NonNull
Operation contextOperation,
@NonNull
java.lang.String resultName)
- Specified by:
setResultVariable
in interface Base2PivotConversion
setType
@Deprecated
public void setType(@NonNull
TypedElement pivotElement,
Type type)
- Deprecated.
- Set the type and so potentially satisfy some TypeOfDependency. This method ensures that
type is not set to null.
setType
public void setType(@NonNull
TypedElement pivotElement,
Type type,
boolean isRequired)