001//
002// Generated by JTB 1.1.2
003//
004
005package jtb.cparser.syntaxtree;
006
007/**
008 * Represents a grammar choice, e.g. ( A | B )
009 */
010public class NodeChoice implements Node {
011  static final long serialVersionUID = 20050923L;
012
013   public NodeChoice(Node node) {
014      this(node, -1);
015   }
016
017   public NodeChoice(Node node, int whichChoice) {
018      choice = node;
019      which = whichChoice;
020   }
021
022   public void accept(jtb.cparser.visitor.Visitor v) {
023      choice.accept(v);
024   }
025
026   public Node choice;
027   public int which;
028}