01: /*
02: * $Id: AbstractNode.java 265 2004-04-15 13:08:31Z hengels $
03: * (c) Copyright 2004 con:cern development team.
04: *
05: * This file is part of con:cern (http://concern.sf.net).
06: *
07: * con:cern is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU Lesser General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.concern.model.parser.ast;
15:
16: import java.util.ArrayList;
17: import java.util.List;
18:
19: /**
20: * @version $Revision: 265 $
21: */
22: public abstract class AbstractNode {
23: private List children = new ArrayList();
24:
25: public List getChildren() {
26: return children;
27: }
28:
29: public void setChildren(List children) {
30: this .children = children;
31: }
32:
33: public void addChild(AbstractNode node) {
34: children.add(node);
35: }
36:
37: public abstract Object accept(NodeVisitor v);
38: }
|