Interface FunctionChange

All Known Implementing Classes:
FunctionChange.AddDefinition, FunctionChange.AddImpl, FunctionChange.RemoveDefinition, FunctionChange.RemoveImpl, FunctionChange.UpdateComment, FunctionChange.UpdateImpl

@Evolving public interface FunctionChange
Represents a change that can be applied to a function.
  • Field Details

    • EMPTY_PARAMS

      static final FunctionParam[] EMPTY_PARAMS
      An empty array of parameters.
  • Method Details

    • updateComment

      static FunctionChange updateComment(String newComment)
      Create a FunctionChange to update the comment of a function.
      Parameters:
      newComment - The new comment value.
      Returns:
      The change instance.
    • addDefinition

      static FunctionChange addDefinition(FunctionDefinition definition)
      Create a FunctionChange to add a new definition (overload) to a function.
      Parameters:
      definition - The new definition to add.
      Returns:
      The change instance.
    • removeDefinition

      static FunctionChange removeDefinition(FunctionParam[] parameters)
      Create a FunctionChange to remove an existing definition (overload) from a function.
      Parameters:
      parameters - The parameters that identify the definition to remove.
      Returns:
      The change instance.
    • addImpl

      static FunctionChange addImpl(FunctionParam[] parameters, FunctionImpl implementation)
      Create a FunctionChange to add an implementation to a specific definition.
      Parameters:
      parameters - The parameters that identify the definition to update.
      implementation - The implementation to add.
      Returns:
      The change instance.
    • updateImpl

      static FunctionChange updateImpl(FunctionParam[] parameters, FunctionImpl.RuntimeType runtime, FunctionImpl implementation)
      Create a FunctionChange to update an implementation for a specific definition and runtime.
      Parameters:
      parameters - The parameters that identify the definition to update.
      runtime - The runtime that identifies the implementation to replace.
      implementation - The new implementation.
      Returns:
      The change instance.
    • removeImpl

      static FunctionChange removeImpl(FunctionParam[] parameters, FunctionImpl.RuntimeType runtime)
      Create a FunctionChange to remove an implementation for a specific definition and runtime.
      Parameters:
      parameters - The parameters that identify the definition to update.
      runtime - The runtime that identifies the implementation to remove.
      Returns:
      The change instance.