com.google.clearsilver.jsilver.functions
Interface FunctionExecutor

All Known Implementing Classes:
ClearSilverCompatibleFunctions, CoreOperators, DefaultRenderingContext, FunctionRegistry

public interface FunctionExecutor

Execute functions in templates.


Method Summary
 void escape(String name, String input, Appendable output)
          Escapes some text.
 Value executeFunction(String functionName, Value... args)
          Lookup a function by name, execute it and return the results.
 boolean isEscapingFunction(String name)
          Look up a function by name, and report whether it is an escaping function.
 

Method Detail

executeFunction

Value executeFunction(String functionName,
                      Value... args)
Lookup a function by name, execute it and return the results.


escape

void escape(String name,
            String input,
            Appendable output)
            throws IOException
Escapes some text.

Parameters:
name - Strategy for escaping text. If null or "none", text will be left as is.
input - Text to be escaped.
output - Where to write the result to.
Throws:
IOException

isEscapingFunction

boolean isEscapingFunction(String name)
Look up a function by name, and report whether it is an escaping function.



Copyright © 2010-2012 Google. All Rights Reserved.