A utility scripting module that wraps certain classes in more convenient objects. Script developers should try to use the wrapped class directly first as it may not be problematic in some cases and if there are execution problems when running the script, use the wrapper instead.
Method | Description |
---|---|
createListWrapper() | Create a new list wrapper. |
strToArray() | Convert a string to an array of string, as some scripting languages do not easily support arrays (like jython) |
org.eclipse.tracecompass.incubator.scripting.core.utils.ListWrapper createListWrapper()
Create a new list wrapper. Useful when passing Function classes to module methods where the function return value is a List. Some scripting engines do not handle very well those objects.
The ListWrapper object with an empty list
String strToArray(String string)
Convert a string to an array of string, as some scripting languages do not easily support arrays (like jython)
An array of string containing the element in parameter