org.eclipse.ocl.examples.codegen.cgmodel
Interface CGOperation

All Superinterfaces:
CGElement, CGNamedElement, CGTypedElement, CGValuedElement, org.eclipse.emf.ecore.EObject, Nameable, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
CGOperationImpl

public interface CGOperation
extends CGValuedElement

A representation of the model object 'CG Operation'.

The following features are supported:

See Also:
CGModelPackage.getCGOperation()
Generated
Model

Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
EMPTY_LIST
 
Method Summary
 CGValuedElement getBody()
          Returns the value of the 'Body' containment reference.
 CGClass getContainingClass()
          Returns the value of the 'Containing Class' container reference.
 java.util.List<CGParameter> getParameters()
          Returns the value of the 'Parameters' containment reference list.
 java.util.List<CGConstraint> getPostconditions()
          Returns the value of the 'Postconditions' containment reference list.
 java.util.List<CGConstraint> getPreconditions()
          Returns the value of the 'Preconditions' containment reference list.
 void setBody(CGValuedElement value)
          Sets the value of the 'Body' containment reference.
 void setContainingClass(CGClass value)
          Sets the value of the 'Containing Class' container reference.
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGValuedElement
getDependsOn, getReferredValuedElement, getValue, getValueName, isBoxed, isCaught, isConstant, isFalse, isGlobal, isInlineable, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isTrue, isUnboxed, setCaught, setNonInvalid, setNonNull, setValueName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGTypedElement
getPivotTypeId, getTypeId, isRequired, setRequired, setTypeId
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGNamedElement
getName, getPivot, setName, setPivot
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
accept, getChildren, getParent
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getBody

@Nullable
CGValuedElement getBody()
Returns the value of the 'Body' containment reference.

If the meaning of the 'Body' containment reference isn't clear, there really should be more of a description here...

The OCL-defined body of this operation.

Returns:
the value of the 'Body' containment reference.
See Also:
setBody(CGValuedElement), CGModelPackage.getCGOperation_Body()
Generated
Model
containment="true"

setBody

void setBody(CGValuedElement value)
Sets the value of the 'Body' containment reference.

Parameters:
value - the new value of the 'Body' containment reference.
See Also:
getBody()
Generated

getPreconditions

java.util.List<CGConstraint> getPreconditions()
Returns the value of the 'Preconditions' containment reference list. The list contents are of type CGConstraint. The precondition constraints of this operation.

Returns:
the value of the 'Preconditions' containment reference list.
See Also:
CGModelPackage.getCGOperation_Preconditions()
Generated
Model
containment="true" ordered="false"

getPostconditions

java.util.List<CGConstraint> getPostconditions()
Returns the value of the 'Postconditions' containment reference list. The list contents are of type CGConstraint. The postcondition constraints of this operation.

Returns:
the value of the 'Postconditions' containment reference list.
See Also:
CGModelPackage.getCGOperation_Postconditions()
Generated
Model
containment="true" ordered="false"

getContainingClass

@Nullable
CGClass getContainingClass()
Returns the value of the 'Containing Class' container reference. It is bidirectional and its opposite is 'Operations'.

If the meaning of the 'Containing Class' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Containing Class' container reference.
See Also:
setContainingClass(CGClass), CGModelPackage.getCGOperation_ContainingClass(), CGClass.getOperations()
Generated
Model
opposite="operations" resolveProxies="false" required="true" transient="false"

setContainingClass

void setContainingClass(CGClass value)
Sets the value of the 'Containing Class' container reference.

Parameters:
value - the new value of the 'Containing Class' container reference.
See Also:
getContainingClass()
Generated

getParameters

@NonNull
java.util.List<CGParameter> getParameters()
Returns the value of the 'Parameters' containment reference list. The list contents are of type CGParameter.

If the meaning of the 'Parameters' containment reference list isn't clear, there really should be more of a description here...

The parameters of this operation, with 'self' as the first parameter.

Returns:
the value of the 'Parameters' containment reference list.
See Also:
CGModelPackage.getCGOperation_Parameters()
Generated
Model
containment="true" ordered="false"