Class IsEmptyUtilFunction

java.lang.Object
io.higson.runtime.builtin.implementation.UtilFunction
io.higson.runtime.builtin.implementation.IsEmptyUtilFunction
All Implemented Interfaces:
ContextualUtilFunction

public class IsEmptyUtilFunction extends UtilFunction implements ContextualUtilFunction
This class represents a utility function for checking a value from the Higson context is empty.

This class provides a call method that takes in a HigsonContext and an array of arguments.

It retrieves the value from the context using the given path and returns:
false: if value is null
false: if value is not sting, collection or map
false: if value is not empty string
false: if value is collection or map but it is not empty
true: if value is empty string
true: if value is collection or map but it is empty