Interface OpaqueExpression

    • Method Detail

      • isSetBodies

        boolean isSetBodies()
        Returns whether the value of the 'Body' attribute list is set.
        Returns:
        whether the value of the 'Body' attribute list is set.
        See Also:
        unsetBodies(), getBodies()
      • getLanguages

        MDWEList<String> getLanguages()
        Returns the value of the 'Language' attribute list. The list contents are of type String. Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order.
        Returns:
        the value of the 'Language' attribute list.
        See Also:
        isSetLanguages(), unsetLanguages(), UMLPackage.getOpaqueExpression_Language()
      • isSetLanguages

        boolean isSetLanguages()
        Returns whether the value of the 'Language' attribute list is set.
        Returns:
        whether the value of the 'Language' attribute list is set.
        See Also:
        unsetLanguages(), getLanguages()
      • getResult

        Parameter getResult()
        Returns the value of the 'Result' reference. Restricts an opaque expression to return exactly one return result. When the invocation of the opaque expression completes, a single set of values is returned to its owner. This association is derived from the single return result parameter of the associated behavior.
        Returns:
        the value of the 'Result' reference.
        See Also:
        UMLPackage.getOpaqueExpression_Result()
      • setBehavior

        void setBehavior​(Behavior value)
        Sets the value of the 'Behavior' reference.
        Parameters:
        value - the new value of the 'Behavior' reference.
        See Also:
        getBehavior()
      • validateLanguageBodySize

        boolean validateLanguageBodySize​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         Map context)
        If the language attribute is not empty, then the size of the body and language arrays must be the same. language->notEmpty() implies (body->size() = language->size())
      • validateOnlyReturnResultParameters

        boolean validateOnlyReturnResultParameters​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                   Map context)
        The behavior may only have return result parameters. self.behavior.notEmpty() implies self.behavior.ownedParameters->select(p | p.direction<>#return)->isEmpty()
      • validateOneReturnResultParameter

        boolean validateOneReturnResultParameter​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                 Map context)
        The behavior must have exactly one return result parameter. self.behavior.notEmpty() implies self.behavior.ownedParameter->select(p | p.direction=#return)->size() = 1
      • value

        int value()
        The query value() gives an integer value for an expression intended to produce one. self.isIntegral() true
      • isIntegral

        boolean isIntegral()
        The query isIntegral() tells whether an expression is intended to produce an integer. result = false
      • isPositive

        boolean isPositive()
        The query isPositive() tells whether an integer expression has a positive value. self.isIntegral() result = false
      • isNonNegative

        boolean isNonNegative()
        The query isNonNegative() tells whether an integer expression has a non-negative value. self.isIntegral() result = false