com.google.clearsilver.jsilver.functions.string
Class SliceFunction

java.lang.Object
  extended by com.google.clearsilver.jsilver.functions.NonEscapingFunction
      extended by com.google.clearsilver.jsilver.functions.string.SliceFunction
All Implemented Interfaces:
Function

public class SliceFunction
extends NonEscapingFunction

Returns the string slice starting at start and ending at end, similar to the Python slice operator.


Constructor Summary
SliceFunction()
           
 
Method Summary
 Value execute(Value... args)
          Execute a function.
 
Methods inherited from class com.google.clearsilver.jsilver.functions.NonEscapingFunction
isEscapingFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliceFunction

public SliceFunction()
Method Detail

execute

public Value execute(Value... args)
Description copied from interface: Function
Execute a function. Should always return a result.

Parameters:
args - 1 string values then 2 numeric values (start and end).
Returns:
Sliced string


Copyright © 2010-2012 Google. All Rights Reserved.