public interface IfExp<C> extends OCLExpression<C>
The following features are supported:
ExpressionsPackage.getIfExp()
Modifier and Type | Method and Description |
---|---|
boolean |
checkBooleanCondition(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
self.condition.type.oclIsKindOf(PrimitiveType) and self.condition.type.name = 'Boolean'
|
boolean |
checkIfType(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
self.type = thenExpression.type.commonSuperType(elseExpression.type)
|
OCLExpression<C> |
getCondition()
Returns the value of the 'Condition' containment reference.
|
OCLExpression<C> |
getElseExpression()
Returns the value of the 'Else Expression' containment reference.
|
OCLExpression<C> |
getThenExpression()
Returns the value of the 'Then Expression' containment reference.
|
void |
setCondition(OCLExpression<C> value)
Sets the value of the '
Condition ' containment reference. |
void |
setElseExpression(OCLExpression<C> value)
Sets the value of the '
Else Expression ' containment reference. |
void |
setThenExpression(OCLExpression<C> value)
Sets the value of the '
Then Expression ' containment reference. |
getName, getType, setName, setType
getEndPosition, getStartPosition, setEndPosition, setStartPosition
OCLExpression<C> getCondition()
If the meaning of the 'Condition' containment reference isn't clear, there really should be more of a description here...
setCondition(OCLExpression)
,
ExpressionsPackage.getIfExp_Condition()
void setCondition(OCLExpression<C> value)
Condition
' containment reference.
value
- the new value of the 'Condition' containment reference.getCondition()
OCLExpression<C> getThenExpression()
If the meaning of the 'Then Expression' containment reference isn't clear, there really should be more of a description here...
setThenExpression(OCLExpression)
,
ExpressionsPackage.getIfExp_ThenExpression()
void setThenExpression(OCLExpression<C> value)
Then Expression
' containment reference.
value
- the new value of the 'Then Expression' containment reference.getThenExpression()
OCLExpression<C> getElseExpression()
If the meaning of the 'Else Expression' containment reference isn't clear, there really should be more of a description here...
setElseExpression(OCLExpression)
,
ExpressionsPackage.getIfExp_ElseExpression()
void setElseExpression(OCLExpression<C> value)
Else Expression
' containment reference.
value
- the new value of the 'Else Expression' containment reference.getElseExpression()
boolean checkBooleanCondition(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean checkIfType(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.