All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.mind.adl.jtb.syntaxtree.NodeChoice Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
//
// Generated by JTB 1.3.2
//

package org.ow2.mind.adl.jtb.syntaxtree;

/**
 * Represents a grammar choice, e.g. ( A | B )
 */
public class NodeChoice implements Node {
   public NodeChoice(Node node) {
      this(node, -1);
   }

   public NodeChoice(Node node, int whichChoice) {
      choice = node;
      which = whichChoice;
   }

   public void accept(org.ow2.mind.adl.jtb.visitor.Visitor v) {
      choice.accept(v);
   }
   public  R accept(org.ow2.mind.adl.jtb.visitor.GJVisitor v, A argu) {
      return choice.accept(v,argu);
   }
   public  R accept(org.ow2.mind.adl.jtb.visitor.GJNoArguVisitor v) {
      return choice.accept(v);
   }
   public  void accept(org.ow2.mind.adl.jtb.visitor.GJVoidVisitor v, A argu) {
      choice.accept(v,argu);
   }

   public Node choice;
   public int which;
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy