Package net.sourceforge.jeval.function
Class FunctionResult
- java.lang.Object
 - 
- net.sourceforge.jeval.function.FunctionResult
 
 
- 
public class FunctionResult extends java.lang.ObjectThis 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.StringgetResult()Returns the result value.intgetType()Returns the result type. 
 - 
 
- 
- 
Constructor Detail
- 
FunctionResult
public FunctionResult(java.lang.String result, int type) throws FunctionExceptionConstructor.- Parameters:
 result- The result value.type- The result type.- Throws:
 FunctionException- if result type is invalid
 
 - 
 
 -