public class SHRINK extends ListRecursiveStackFunction
This function has the side effect of sorting the GTS. In case of duplicates in the input, the output will keep one of them (impossible to guess which one after the sort)
ListRecursiveStackFunction.ElementStackFunctionUNHANDLED| Constructor and Description |
|---|
SHRINK(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
ListRecursiveStackFunction.ElementStackFunction |
generateFunction(WarpScriptStack stack)
Generates the function to be applied on the element(s) using the parameters on the stack.
|
java.lang.String |
getUnhandledErrorMessage()
Return the error message when the given element cannot be handled by this function.
|
applygetName, refSnapshot, setName, toStringpublic ListRecursiveStackFunction.ElementStackFunction generateFunction(WarpScriptStack stack) throws WarpScriptException
ListRecursiveStackFunctiongenerateFunction in class ListRecursiveStackFunctionstack - The stack to be used for parameters retrieval.WarpScriptExceptionpublic java.lang.String getUnhandledErrorMessage()
ListRecursiveStackFunctiongetUnhandledErrorMessage in class ListRecursiveStackFunction