01: //
02: // Generated by JTB 1.2.2
03: //
04:
05: package xtc.lang.javacc.syntaxtree;
06:
07: /**
08: * Represents a grammar choice, e.g. ( A | B ).
09: */
10: public class NodeChoice implements Node {
11: public NodeChoice(Node node) {
12: this (node, -1);
13: }
14:
15: public NodeChoice(Node node, int whichChoice) {
16: choice = node;
17: which = whichChoice;
18: }
19:
20: public void accept(xtc.lang.javacc.visitor.Visitor v) {
21: choice.accept(v);
22: }
23:
24: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
25: Object argu) {
26: return choice.accept(v, argu);
27: }
28:
29: public Node choice;
30: public int which;
31: }
|