Utils Module

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 Overview

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)

Methods

createListWrapper

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

strToArray

String strToArray(String string)

Convert a string to an array of string, as some scripting languages do not easily support arrays (like jython)

string
The element to add to the array

An array of string containing the element in parameter