Package org.oorexx.handlers.jdor
Class JavaDrawingHandler
java.lang.Object
org.oorexx.handlers.jdor.JavaDrawingHandler
- All Implemented Interfaces:
RexxCommandHandler,RexxHandler,RexxRedirectingCommandHandler
-
Field Summary
FieldsFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckBooleanValue(String value) Allow "1", ".true", "true" in any case to resolve to a boolean true; allow "0", ".false", "false" in any case to resolve to a boolean false;static booleangetBooleanValue(String value) Determines the boolean value of a BSF4ooRexx850 boolean string and returns it.static String[]getNonBlankWords(String s, ArrayList<int[]> al) This will create a word array from the supplied ArrayList returned by getWordBoundaries.static ArrayList<int[]>getWordBoundaries(String s, int maxNumberOfWords) Parses the string and returns an ArrayList of int[] denoting the start and the end of each word in the string delimited by ' ' or '\t' the Rexx whitespace characters.handleCommand(Object slot, String address, String command) Callback method of this command handler.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
-
Field Details
-
version
- See Also:
-
bUseNames4canonical
public boolean bUseNames4canonical -
bUseInt4numbers
public boolean bUseInt4numbers
-
-
Constructor Details
-
JavaDrawingHandler
public JavaDrawingHandler()
-
-
Method Details
-
handleCommand
Callback method of this command handler.- Specified by:
handleCommandin interfaceRexxCommandHandler- Parameters:
slot- opaque argument (needs to be used if invoking the Handler default methods to interact with the Rexx context)address- the environment name this handler works forcommand- the command to process- Returns:
- any value, which can be retrieved on the Rexx side via the variable
RC(result code)
-
getNonBlankWords
This will create a word array from the supplied ArrayList returned by getWordBoundaries.- Parameters:
s- Stringal- ArrayList returned by getWordBoundaries- Returns:
- array of words
-
getWordBoundaries
Parses the string and returns an ArrayList of int[] denoting the start and the end of each word in the string delimited by ' ' or '\t' the Rexx whitespace characters.- Parameters:
s- the string to parsemaxNumberOfWords- if -1 processes always entire string, otherwise stops after having created maxNumberOfWords items- Returns:
- an ArrayList of int[] arrays
-
checkBooleanValue
Allow "1", ".true", "true" in any case to resolve to a boolean true; allow "0", ".false", "false" in any case to resolve to a boolean false;- Parameters:
value- the string that represents a BSF4ooRexx850 boolean value- Returns:
- true if string represents true, false else
-
getBooleanValue
Determines the boolean value of a BSF4ooRexx850 boolean string and returns it.- Parameters:
value- the string containing a BSF4ooRexx850 boolean rendering- Returns:
- true if "1", ".TRUE", "TRUE" and false else
-