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

All Superinterfaces:
CGCallable, CGElement, CGNamedElement, CGTypedElement, CGValuedElement, org.eclipse.emf.ecore.EObject, Nameable, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
CGContainmentVisit, CGEcoreOperation, CGLibraryOperation
All Known Implementing Classes:
CGContainmentVisitImpl, CGEcoreOperationImpl, CGLibraryOperationImpl, CGOperationImpl

public interface CGOperation
extends CGCallable

A representation of the model object 'CG Operation'.

The following features are supported:

See Also:
CGModelPackage.getCGOperation()
Generated

Method Summary
 CGClass getContainingClass()
          Returns the value of the 'Containing Class' container reference.
 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 setContainingClass(CGClass value)
          Sets the value of the 'Containing Class' container reference.
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGCallable
getBody, getParameters, setBody
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGValuedElement
getDependsOn, getInvalidValue, getNamedValue, getOwns, getReferredValue, getSourceValue, getThisValue, getTypedValue, getValueName, isAssertedNonNull, isBoxed, isCaught, isCommonable, isConstant, isEquivalentTo, isEquivalentToInternal, isFalse, isGlobal, isInlined, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isTrue, isUnboxed, isUncommonable, setCaught, setValueName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGTypedElement
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGNamedElement
getAst, getName, setAst, setName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
accept, getChildren, getParent, getPlace, isContext, rewriteAs
 
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

getPreconditions

@NonNull
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

getPostconditions

@NonNull
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

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

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