Constraint is part of a contract implementation in a Class definition or an operation.
Three kinds of constraints are available : pre, post, and inv (invariant constraint)
@ecore "true"
@http://www.eclipse.org/emf/2002/GenModel "null"
Property Summary | |
---|---|
Expression |
body
Body of the constraint, expressed as a KerMeta expression @ecore "true"@http://www.eclipse.org/emf/2002/GenModel "null" |
ClassDefinition |
invOwner
Owning ClassDefinition if Constraint corresponds to invariant @ecore "true"@http://www.eclipse.org/emf/2002/GenModel "null" |
|
language
Language in which the constraint is expressed @ecore "true"@http://www.eclipse.org/emf/2002/GenModel "null" |
Operation |
postOwner
Owning Operation if Constraint corresponds to post-condition @ecore "true"@http://www.eclipse.org/emf/2002/GenModel "null" |
Operation |
preOwner
Owning Operation if Constraint corresponds to pre-condition @ecore "true"@http://www.eclipse.org/emf/2002/GenModel "null" |
|
stereotype
Type of the Constraint (precond/postcond/inv) @ecore "true"@http://www.eclipse.org/emf/2002/GenModel "null" |
Expression body
ClassDefinition invOwner
language
Operation postOwner
Operation preOwner
stereotype