Class ExistUtilFunction

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

public class ExistUtilFunction extends UtilFunction implements ContextualUtilFunction
ExistUtilFunction is a utility function that checks if a value exists in the given context. It implements the ContextualUtilFunction interface and extends the UtilFunction abstract class.
  • Field Details

  • Constructor Details

    • ExistUtilFunction

      public ExistUtilFunction()
  • Method Details

    • call

      public Object call(HigsonContext ctx, Object[] args)
      Checks if a value exists in the given context.
      Specified by:
      call in class UtilFunction
      Parameters:
      ctx - the HigsonContext object from which to retrieve the value
      args - an array of arguments, not used in this method
      Returns:
      true if the value exists in the context, false otherwise