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.process.extended;
10:
11: public class StackNodeList {
12: StackNode node;
13: StackNodeList next;
14:
15: public StackNodeList(StackNode node, StackNodeList next) {
16: this .node = node;
17: this .next = next;
18: }
19:
20: public String toString() {
21: StringBuffer buffer = new StringBuffer();
22: buffer.append("{");
23: for (StackNodeList list = this ; list != null; list = list.next) {
24: buffer.append(list.node.toString());
25: if (list.next != null)
26: buffer.append(",");
27: }
28:
29: buffer.append("}");
30: return buffer.toString();
31: }
32: }
|