Class MidFunction
java.lang.Object
org.pentaho.reporting.libraries.formula.function.text.MidFunction
- All Implemented Interfaces:
Serializable
,Function
This function returns extracted text, given an original text, starting position, and length.
- Author:
- Cedric Pronzato
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(FormulaContext context, ParameterCallback parameters) static String
Computes the substring for the given text, using the 1-based start index and the given length.
-
Constructor Details
-
MidFunction
public MidFunction()
-
-
Method Details
-
evaluate
public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters) throws EvaluationException - Specified by:
evaluate
in interfaceFunction
- Throws:
EvaluationException
-
process
-
getCanonicalName
- Specified by:
getCanonicalName
in interfaceFunction
-