Package net.sourceforge.jeval.function
Class FunctionResult
- java.lang.Object
-
- net.sourceforge.jeval.function.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.
-
-
-
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
-
-