01: /*
02: * Copyright (C) Chaperon. All rights reserved.
03: * -------------------------------------------------------------------------
04: * This software is published under the terms of the Apache Software License
05: * version 1.1, a copy of which has been included with this distribution in
06: * the LICENSE file.
07: */
08:
09: package net.sourceforge.chaperon.build;
10:
11: import net.sourceforge.chaperon.model.symbol.Symbol;
12:
13: /**
14: * This symbol represents a symbol for a empty list.
15: *
16: * @author <a href="mailto:stephan@apache.org">Stephan Michels</a>
17: * @version CVS $Id: EmptyList.java,v 1.4 2003/12/09 19:55:52 benedikta Exp $
18: */
19: public class EmptyList extends Symbol {
20: /**
21: * Creates a symbol for an empty list.
22: */
23: public EmptyList() {
24: super ("EmptyList");
25: }
26:
27: /**
28: * Compares the symbol with another symbol.
29: *
30: * @param o Another object
31: *
32: * @return True, if the symbols are equal.
33: */
34: public boolean equals(Object o) {
35: if ((o != null) && (o instanceof EmptyList))
36: return true;
37:
38: return false;
39: }
40: }
|