Class SubstringFunction

  • All Implemented Interfaces:
    Function

    public class SubstringFunction
    extends java.lang.Object
    implements Function

    4.2 string substring(string,number,number?)

    Author:
    bob mcwhirter (bob @ werken.com)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object call​(Context context, java.util.List args)
      Call the function object.
      static java.lang.String evaluate​(java.lang.Object strArg, java.lang.Object startArg)  
      static java.lang.String evaluate​(java.lang.Object strArg, java.lang.Object startArg, java.lang.Object lenArg)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubstringFunction

        public SubstringFunction()
    • Method Detail

      • call

        public java.lang.Object call​(Context context,
                                     java.util.List args)
        Description copied from interface: Function
        Call the function object.
        Specified by:
        call in interface Function
        Parameters:
        context - The current context the function operates upon
        args - The argument list to the function.
        Returns:
        The result from calling the function.
      • evaluate

        public static java.lang.String evaluate​(java.lang.Object strArg,
                                                java.lang.Object startArg)
      • evaluate

        public static java.lang.String evaluate​(java.lang.Object strArg,
                                                java.lang.Object startArg,
                                                java.lang.Object lenArg)