org.ow2.mind.adl.jtb.syntaxtree.NodeChoice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adl-parser Show documentation
Show all versions of adl-parser Show documentation
Contains the parser of the ADL language of the Mind programming model.
//
// 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;
}