org.jfree.formula.function.text
Class MidFunction

java.lang.Object
  extended by org.jfree.formula.function.text.MidFunction
All Implemented Interfaces:
java.io.Serializable, Function

public class MidFunction
extends java.lang.Object
implements Function

This function returns extracted text, given an original text, starting position, and length.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
MidFunction()
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 java.lang.String getCanonicalName()
           
 java.lang.String process(java.lang.String text, java.lang.Number start, java.lang.Number length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidFunction

public MidFunction()
Method Detail

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
                       throws EvaluationException
Specified by:
evaluate in interface Function
Throws:
EvaluationException

process

public java.lang.String process(java.lang.String text,
                                java.lang.Number start,
                                java.lang.Number length)

getCanonicalName

public java.lang.String getCanonicalName()
Specified by:
getCanonicalName in interface Function