view test/Hello.java @ 18:d53cd4995bd4

Remember the return code of the last parsed instruction.
author Mikhail Kryshen <mikhail@kryshen.net>
date Thu, 26 Mar 2009 17:18:31 +0300
parents
children
line source
1 import java.io.Writer;
2 import java.io.IOException;
3 import kryshen.tema.*;
5 /**
6 * Test function class.
7 *
8 * @author Mikhail A. Kryshen
9 */
10 public class Hello extends Function {
11 public Hello() {}
13 public int invoke(FunctionDataParser fdp, Writer out)
14 throws IOException, TemplateException {
16 out.write("Hello, ");
17 fdp.parseData(out);
19 return 1;
20 }
21 }