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 StringComputes 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:
evaluatein interfaceFunction- Throws:
EvaluationException
-
process
Computes the substring for the given text, using the 1-based start index and the given length.- Parameters:
text-start-lengthValue-- Returns:
-
getCanonicalName
- Specified by:
getCanonicalNamein interfaceFunction
-