public interface CGOperation extends CGValuedElement
The following features are supported:
CGModelPackage.getCGOperation()
EMPTY_LIST
Modifier and Type | Method and Description |
---|---|
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. |
getDependsOn, getReferredValuedElement, getValue, getValueName, isBoxed, isCaught, isConstant, isFalse, isGlobal, isInlineable, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isTrue, isUnboxed, setCaught, setNonInvalid, setNonNull, setValueName
getPivotTypeId, getTypeId, isRequired, setRequired, setTypeId
getName, getPivot, setName, setPivot
accept, getChildren, getParent
@Nullable CGValuedElement getBody()
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.setBody(CGValuedElement)
,
CGModelPackage.getCGOperation_Body()
void setBody(CGValuedElement value)
Body
' containment reference.
value
- the new value of the 'Body' containment reference.getBody()
java.util.List<CGConstraint> getPreconditions()
CGConstraint
.
The precondition constraints of this operation.
CGModelPackage.getCGOperation_Preconditions()
java.util.List<CGConstraint> getPostconditions()
CGConstraint
.
The postcondition constraints of this operation.
CGModelPackage.getCGOperation_Postconditions()
@Nullable CGClass getContainingClass()
Operations
'.
If the meaning of the 'Containing Class' container reference isn't clear, there really should be more of a description here...
setContainingClass(CGClass)
,
CGModelPackage.getCGOperation_ContainingClass()
,
CGClass.getOperations()
void setContainingClass(CGClass value)
Containing Class
' container reference.
value
- the new value of the 'Containing Class' container reference.getContainingClass()
@NonNull java.util.List<CGParameter> getParameters()
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.CGModelPackage.getCGOperation_Parameters()