Annotation Type Operation


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Operation
    Indicates that the annotated Java operation is a QVT operation, typically owned by a Module (Library, OperationalTransformation).
    Since:
    2.0
    See Also:
    Operation.Kind
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean contextual
      Indicates whether the associated operation is contextual or not.
      String description
      The textual description for the annotated operation, typically representing the detail semantics information, useful for a tooling support.
      Operation.Kind kind
      Indicates the operation kind specified for the annotated Java operation
      boolean withExecutionContext
      Indicates whether the associated operation would receive execution context (of org.eclipse.m2m.qvt.oml.util.IContext class) as the first parameter.
    • Element Detail

      • contextual

        boolean contextual
        Indicates whether the associated operation is contextual or not.
        Returns:
        true if the associated operation is contextual, otherwise false.
        Default:
        false
      • withExecutionContext

        boolean withExecutionContext
        Indicates whether the associated operation would receive execution context (of org.eclipse.m2m.qvt.oml.util.IContext class) as the first parameter.
        Returns:
        true if the associated operation receives execution context as the first parameter, otherwise false (default value).
        Since:
        3.0
        Default:
        false
      • kind

        Operation.Kind kind
        Indicates the operation kind specified for the annotated Java operation
        Returns:
        the kind object
        Default:
        org.eclipse.m2m.qvt.oml.blackbox.java.Operation.Kind.HELPER
      • description

        String description
        The textual description for the annotated operation, typically representing the detail semantics information, useful for a tooling support.
        Returns:
        the String object (empty string if nothing has been explicitly specified)
        Default:
        ""