public class IfExpOperations extends OCLExpressionOperations
The following operations are supported:
| Modifier | Constructor and Description |
|---|---|
protected |
IfExpOperations() |
| Modifier and Type | Method and Description |
|---|---|
static <C> boolean |
checkBooleanCondition(IfExp<C> ifExp,
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'
|
static <C> boolean |
checkIfType(IfExp<C> ifExp,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
self.type = thenExpression.type.commonSuperType(elseExpression.type)
|
public static <C> boolean checkBooleanCondition(IfExp<C> ifExp, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
ifExp - The receiving 'If Exp' model object.diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
public static <C> boolean checkIfType(IfExp<C> ifExp, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
ifExp - The receiving 'If Exp' model object.diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.