Package com.independentsoft.calc.functions

# Class FunctionRegistry

java.lang.Object
com.independentsoft.calc.functions.FunctionRegistry

public final class FunctionRegistry extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `add​(String name, int minArgs, int maxArgs, EagerFn fn)`
  `static void`
  `addAlias​(String alias, String existing)`
  `static void`
  `addLazy​(String name, int minArgs, int maxArgs, LazyFn fn)`
  `static void`
  `addUnsupported​(String... names)`
  `static CalcValue`
  `invoke​(FuncNode fn, EvalContext ctx)`
  `static CalcValue`
  `invokeByName​(String name, CalcValue[] args, EvalContext ctx)`
  `static boolean`
  `isKnown​(String name)`
  `static void`
  `setArrayArgs​(String name, long mask)`
  `static void`
  `setLiftable​(String... names)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### add

    public static void add​(String name, int minArgs, int maxArgs, EagerFn fn)

  - ### addLazy

    public static void addLazy​(String name, int minArgs, int maxArgs, LazyFn fn)

  - ### addAlias

    public static void addAlias​(String alias, String existing)

  - ### setArrayArgs

    public static void setArrayArgs​(String name, long mask)

  - ### setLiftable

    public static void setLiftable​(String... names)

  - ### addUnsupported

    public static void addUnsupported​(String... names)

  - ### isKnown

    public static boolean isKnown​(String name)

  - ### invokeByName

    public static CalcValue invokeByName​(String name, CalcValue[] args, EvalContext ctx)

  - ### invoke

    public static CalcValue invoke​(FuncNode fn, EvalContext ctx)