01: ///////////////////////////////
02: //Makumba, Makumba tag library
03: //Copyright (C) 2000-2003 http://www.makumba.org
04: //
05: //This library is free software; you can redistribute it and/or
06: //modify it under the terms of the GNU Lesser General Public
07: //License as published by the Free Software Foundation; either
08: //version 2.1 of the License, or (at your option) any later version.
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 GNU
13: //Lesser General Public License for more details.
14: //
15: //You should have received a copy of the GNU Lesser General Public
16: //License along with this library; if not, write to the Free Software
17: //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: //
19: //-------------
20: //$Id: JspxJspAnalyzer.java 1546 2007-09-14 20:34:45Z manuel_gay $
21: //$Name$
22: /////////////////////////////////////
23:
24: package org.makumba.devel;
25:
26: import org.makumba.analyser.TagData;
27: import org.makumba.analyser.interfaces.JspAnalyzer;
28:
29: /**
30: * @version $ID $
31: * @author Cristian Bogdan
32: *
33: */
34: public class JspxJspAnalyzer implements JspAnalyzer {
35:
36: private static final class SingletonHolder {
37: static final JspAnalyzer singleton = new JspxJspAnalyzer();
38: }
39:
40: private JspxJspAnalyzer() {
41: }
42:
43: public static JspAnalyzer getInstance() {
44: return SingletonHolder.singleton;
45: }
46:
47: /**
48: * make a status holder, which is passed to all other methods
49: *
50: * @param initStatus
51: * an initial status to be passed to the JspAnalyzer. for example, the pageContext for an example-based analyzer
52: */
53: public Object makeStatusHolder(Object initStatus) {
54: return null;
55: }
56:
57: /**
58: * start a body tag
59: *
60: * @see #endTag(JspParseData.TagData, Object)
61: */
62: public void startTag(TagData td, Object status) {
63: }
64:
65: /** the end of a body tag, like </...> */
66: public void endTag(TagData td, Object status) {
67: }
68:
69: /** a simple tag, like <... /> */
70: public void simpleTag(TagData td, Object status) {
71: }
72:
73: /** a system tag, like <%@ ...%> */
74: public void systemTag(TagData td, Object status) {
75: }
76:
77: /**
78: * the end of the page
79: *
80: * @return the result of the analysis
81: */
82: public Object endPage(Object status) {
83: return null;
84: }
85:
86: }
|