Class FunctionDefinition

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract Value evaluate​(java.util.List<Value> arguments)
      Evaluate the arguments to a given function to compute a result.
      abstract java.util.List<Type> getArguments()
      The arguments to this function.
      abstract java.lang.String getId()
      The ID of this function.
      abstract Type getReturnType()
      The return type of this function definition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FunctionDefinition

        public FunctionDefinition()
    • Method Detail

      • getId

        public abstract java.lang.String getId()
        The ID of this function.
        Returns:
        The ID string
      • getArguments

        public abstract java.util.List<Type> getArguments()
        The arguments to this function.
        Returns:
        The function arguments
      • getReturnType

        public abstract Type getReturnType()
        The return type of this function definition.
        Returns:
        The function return type
      • evaluate

        public abstract Value evaluate​(java.util.List<Value> arguments)
        Evaluate the arguments to a given function to compute a result.
        Returns:
        The resulting value