01: /*
02: * Token.java February 2006
03: *
04: * Copyright (C) 2006, Niall Gallagher <niallg@users.sf.net>
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General
16: * Public License along with this library; if not, write to the
17: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18: * Boston, MA 02111-1307 USA
19: */
20:
21: package simple.page.translate;
22:
23: import simple.util.parse.Parser;
24: import java.io.IOException;
25:
26: /**
27: * The <code>Token</code> object is used to parse a token from the
28: * JSP source. This will parse a single token and push the data
29: * into the document definition.
30: *
31: * @author Niall Gallagher
32: */
33: abstract class Token extends Parser {
34:
35: /**
36: * This will process the data parsed from the token. This method
37: * is used to push data into the document definition. For example
38: * imports could be pushed into the definition for generation.
39: *
40: * @param source this is the definition to be populated
41: * @param builder this is used for recursive JSP processing
42: */
43: public abstract void process(Definition source, Builder builder)
44: throws IOException;
45:
46: }
|