WithParam.java

//
// Generated by JTB 1.3.2
//

package net.metanotion.simpletemplate.parser.syntaxtree;

/**
 * Grammar production:
 * <PRE>
 * f0 -> Key()
 * f1 -> &lt;OP_WITH&gt;
 * f2 -> Expression()
 * </PRE>
 */
public class WithParam implements Node {
   public Key f0;
   public NodeToken f1;
   public Expression f2;

   public WithParam(Key n0, NodeToken n1, Expression n2) {
      f0 = n0;
      f1 = n1;
      f2 = n2;
   }

   public WithParam(Key n0, Expression n1) {
      f0 = n0;
      f1 = new NodeToken(":");
      f2 = n1;
   }

   public void accept(net.metanotion.simpletemplate.parser.visitor.Visitor v) {
      v.visit(this);
   }
   public <R,A> R accept(net.metanotion.simpletemplate.parser.visitor.GJVisitor<R,A> v, A argu) {
      return v.visit(this,argu);
   }
   public <R> R accept(net.metanotion.simpletemplate.parser.visitor.GJNoArguVisitor<R> v) {
      return v.visit(this);
   }
   public <A> void accept(net.metanotion.simpletemplate.parser.visitor.GJVoidVisitor<A> v, A argu) {
      v.visit(this,argu);
   }
}