Package org.rexxla.bsf.engines.rexx
Class AbstractRedirectingCommandHandler
java.lang.Object
org.rexxla.bsf.engines.rexx.AbstractRedirectingCommandHandler
- All Implemented Interfaces:
RexxCommandHandler,RexxHandler,RexxRedirectingCommandHandler
public abstract class AbstractRedirectingCommandHandler
extends Object
implements RexxRedirectingCommandHandler
Make it easy for Rexx programs to implement redirecting command handlers in Rexx. :)
- Since:
- 850 (2022-08-23)
-
Field Summary
Fields inherited from interface org.rexxla.bsf.engines.rexx.RexxRedirectingCommandHandler
ARE_OUTPUT_AND_ERROR_SAME_TARGET, IS_ERROR_REDIRECTED, IS_INPUT_REDIRECTED, IS_OUTPUT_REDIRECTED, IS_REDIRECTION_REQUESTED, version -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rexxla.bsf.engines.rexx.RexxHandler
checkCondition, clearCondition, dropContextVariable, getAllContextVariables, getCallerContext, getConditionInfo, getContextVariable, getGlobalEnvironment, getInterpreterVersion, getLanguageLevel, getLocalEnvironment, getNil, haltThread, newArray, newDirectory, newStem, newStringTable, raiseCondition, raiseException, raiseException0, raiseException1, raiseException2, setContextVariable, setContextVariableToNil, setThreadTraceMethods inherited from interface org.rexxla.bsf.engines.rexx.RexxRedirectingCommandHandler
areOutputAndErrorSameTarget, isErrorRedirected, isInputRedirected, isOutputRedirected, isRedirectable, isRedirectionRequested, readInput, readInputAsByteArray, readInputBuffer, toString, writeError, writeError, writeErrorBuffer, writeOutput, writeOutput, writeOutputBuffer
-
Constructor Details
-
AbstractRedirectingCommandHandler
public AbstractRedirectingCommandHandler()
-
-
Method Details
-
main
-
handleCommand
Description copied from interface:RexxCommandHandlerCommand handler signature (called via native code) according to the ooRexx API documentation inrexxpg.pdf.- Specified by:
handleCommandin interfaceRexxCommandHandler- Parameters:
slot- this is an opaqueObjectargument which must be supplied unchanged to the direct Rexx API methods inRexxHandleraddress- a String denoting the name of the command environment for which this method got invokedcommand- 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)
-