Class FunctionResult


  • public class FunctionResult
    extends java.lang.Object
    This is a wrapper for the result value returned from a function that not only contains the result, but the type. All custom functions must return a FunctionResult.
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionResult​(java.lang.String result, int type)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getResult()
      Returns the result value.
      int getType()
      Returns the result type.
      • Methods inherited from class java.lang.Object

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

      • FunctionResult

        public FunctionResult​(java.lang.String result,
                              int type)
                       throws FunctionException
        Constructor.
        Parameters:
        result - The result value.
        type - The result type.
        Throws:
        FunctionException - if result type is invalid
    • Method Detail

      • getResult

        public java.lang.String getResult()
        Returns the result value.
        Returns:
        The result value.
      • getType

        public int getType()
        Returns the result type.
        Returns:
        The result type.