org.plovr.soy.function
Class SubstringFunction
java.lang.Object
com.google.template.soy.tofu.restricted.SoyAbstractTofuFunction
org.plovr.soy.function.SubstringFunction
- All Implemented Interfaces:
- SoyJsSrcFunction, SoyFunction, SoyJavaRuntimeFunction, SoyTofuFunction
public class SubstringFunction
- extends SoyAbstractTofuFunction
- implements SoyJsSrcFunction, SoyTofuFunction
From "Defining a Custom Function" in "Closure: The Definitive Guide"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getName
public String getName()
- Specified by:
getName
in interface SoyFunction
getValidArgsSizes
public Set<Integer> getValidArgsSizes()
- Specified by:
getValidArgsSizes
in interface SoyFunction
computeForJsSrc
public JsExpr computeForJsSrc(List<JsExpr> args)
- Specified by:
computeForJsSrc
in interface SoyJsSrcFunction
compute
public SoyData compute(List<SoyData> args)
- Specified by:
compute
in interface SoyJavaRuntimeFunction