Class DefaultOperation

java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultOperation
All Implemented Interfaces:
Comparable<ModelElementImpl>, ModelElement, NamedElement, Operation

public class DefaultOperation extends ModelElementImpl implements Operation
  • Constructor Details

  • Method Details

    • getInput

      public List<Property> getInput()
      A list of input parameters for the Operation. If the operation does not take any input parameters, the input may be omitted.
      Specified by:
      getInput in interface Operation
      Returns:
      the input.
    • getOutput

      public Optional<Property> getOutput()
      The return value of the Operation. If the Operation does not return anything, the output may be omitted.
      Specified by:
      getOutput in interface Operation
      Returns:
      the output.
    • accept

      public <T, C> T accept(AspectVisitor<T,C> visitor, C context)
      Accepts an Aspect visitor
      Specified by:
      accept in interface ModelElement
      Type Parameters:
      T - The result type of the traversal operation
      C - The context of the visitor traversal
      Parameters:
      visitor - The visitor to accept
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ModelElementImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ModelElementImpl