01: /*
02: * xtc - The eXTensible Compiler
03: * Copyright (C) 2004-2007 Robert Grimm
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License
07: * version 2 as published by the Free Software Foundation.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17: * USA.
18: */
19: package xtc.parser;
20:
21: import java.util.List;
22:
23: /**
24: * The superclass of all value elements specifying a generic node as
25: * the semantic value.
26: *
27: * @author Robert Grimm
28: * @version $Revision: 1.7 $
29: */
30: public abstract class GenericValue extends ValueElement {
31:
32: /** The name of the generic node. */
33: public final String name;
34:
35: /** The list of bindings representing the generic node's children. */
36: public final List<Binding> children;
37:
38: /** The bindings capturing any formatting. */
39: public final List<Binding> formatting;
40:
41: /**
42: * Create a new generic value.
43: *
44: * @param name The name.
45: * @param children The list of children.
46: * @param formatting The list of bindings for formatting.
47: */
48: public GenericValue(String name, List<Binding> children,
49: List<Binding> formatting) {
50: this.name = name;
51: this.children = children;
52: this.formatting = formatting;
53: }
54:
55: }
|