01: /* Generated by Together */
02:
03: package com.rimfaxe.xml.xmlreader.xpath;
04:
05: /** The boolean constant "true".
06: * This is part of the GoF Flyweight(195) pattern -- Only one object of
07: * this class ever exists, shared amongst all clients.
08: * You use INSTANCE instead of the constructor to get
09: * that object.
10:
11: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
12: This file is part of Sparta, an XML Parser, DOM, and XPath library.
13: This library is free software; you can redistribute it and/or
14: modify it under the terms of the <a href="doc-files/LGPL.txt">GNU
15: Lesser General Public License</a> as published by the Free Software
16: Foundation; either version 2.1 of the License, or (at your option)
17: any later version. This library is distributed in the hope that it
18: will be useful, but WITHOUT ANY WARRANTY; without even the implied
19: warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20: PURPOSE. </small></blockquote>
21: @version $Date: 2002/12/13 18:08:33 $ $Revision: 1.3 $
22: @author Eamonn O'Brien-Strain
23: */
24: public class TrueExpr extends BooleanExpr {
25:
26: //only need one of them => much memory sharing
27: private TrueExpr() {
28: }
29:
30: static final TrueExpr INSTANCE = new TrueExpr();
31:
32: public void accept(BooleanExprVisitor visitor) {
33: visitor.visit(this );
34: }
35:
36: public String toString() {
37: return "";
38: }
39:
40: }
41:
42: // $Log: TrueExpr.java,v $
43: // Revision 1.3 2002/12/13 18:08:33 eobrain
44: // Factor Visitor out into separate visitors for node tests and predicates.
45: //
46: // Revision 1.2 2002/12/06 23:39:52 eobrain
47: // Make objects that are always the same follow the Flyweight Pattern.
48: //
49: // Revision 1.1.1.1 2002/08/19 05:04:03 eobrain
50: // import from HP Labs internal CVS
51: //
52: // Revision 1.3 2002/08/19 00:42:23 eob
53: // Tweak javadoc comment -- add period (full stop) so that Javadoc knows
54: // where is end of summary.
55: //
56: // Revision 1.2 2002/08/18 23:39:16 eob
57: // Add copyright and other formatting and commenting in preparation for
58: // release to SourceForge.
59: //
60: // Revision 1.1 2002/02/01 01:43:31 eob
61: // initial
|