Interface RexxCommandHandler

All Superinterfaces:
RexxHandler
All Known Subinterfaces:
RexxRedirectingCommandHandler
All Known Implementing Classes:
AbstractDirectCommandHandler, AbstractRedirectingCommandHandler, JavaDrawingHandler

public interface RexxCommandHandler extends RexxHandler
Interface class for Rexx command handlers. Cf. ooRexx' rexxapi.pdf documentation.
------------------------ Apache Version 2.0 license -------------------------
    Copyright (C) 2012-2022 Rony G. Flatscher

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 ----------------------------------------------------------------------------- 
Since:
2012-02-17 (BSF4ooRexx 641, baseline Java=6, ooRexx=4.1), 2022-08-18 (BSF4ooRexx 850, baseline Java=8, ooRexx=5.0)
Version:
2.0
Author:
Rony G. Flatscher
  • Field Details

    • version

      static final String version
      Version string indicating version of this class (majorVersion*100+minorVersion concatenated with a dot and the sorted date of last change.
      See Also:
  • Method Details

    • isRedirectable

      default boolean isRedirectable()
      Indicates that the command handler is not redirectable (a new feature in ooRexx 5.0).
      Returns:
      returns false
    • handleCommand

      Object handleCommand(Object slot, String address, String command)
      Command handler signature (called via native code) according to the ooRexx API documentation in rexxpg.pdf.
      Parameters:
      slot - this is an opaque Object argument which must be supplied unchanged to the direct Rexx API methods in RexxHandler
      address - a String denoting the name of the command environment for which this method got invoked
      command - a String containing the command passed from Rexx
      Returns:
      any value, which can be retrieved on the Rexx side via the variable RC (result code)
    • toString

      default String toString(Object slot, String environmentName)
      Create a string rendering of this environment handler.
      Parameters:
      slot - supply the received slot argument
      environmentName - supply the environment name this handler got defined for
      Returns:
      the string rendering of this instance