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: JavaSourceAnalyzer.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.interfaces.JavaAnalyzer;
27:
28: /**
29: * @author Rudolf Mayer
30: *
31: */
32: public class JavaSourceAnalyzer implements JavaAnalyzer {
33:
34: private static final class SingletonHolder {
35: static final JavaAnalyzer singleton = new JavaSourceAnalyzer();
36: }
37:
38: private JavaSourceAnalyzer() {
39: }
40:
41: public static JavaAnalyzer getInstance() {
42: return SingletonHolder.singleton;
43: }
44:
45: /**
46: * make a status holder, which is passed to all other methods
47: *
48: * @param initStatus
49: * an initial status to be passed to the JspAnalyzer. for example, the pageContext for an example-based analyzer
50: */
51: public Object makeStatusHolder(Object initStatus) {
52: return null;
53: }
54:
55: /**
56: * the end of the page
57: *
58: * @return the result of the analysis
59: */
60: public Object endPage(Object status) {
61: return null;
62: }
63:
64: }
|