001//
002// Generated by JTB 1.3.2
003//
004
005package jtb.syntaxtree;
006
007// Grammar production:
008// f0 -> "--"
009// f1 -> PrimaryExpression()
010public class PreDecrementExpression implements Node {
011   // This was added after running jtb to remove serializable warning.
012   static final long serialVersionUID = 20150406L;
013
014   private Node parent;
015   public NodeToken f0;
016   public PrimaryExpression f1;
017
018   public PreDecrementExpression(NodeToken n0, PrimaryExpression n1) {
019      f0 = n0;
020      if ( f0 != null ) f0.setParent(this);
021      f1 = n1;
022      if ( f1 != null ) f1.setParent(this);
023   }
024
025   public PreDecrementExpression(PrimaryExpression n0) {
026      f0 = new NodeToken("--");
027      if ( f0 != null ) f0.setParent(this);
028      f1 = n0;
029      if ( f1 != null ) f1.setParent(this);
030   }
031
032   public void accept(jtb.visitor.Visitor v) {
033      v.visit(this);
034   }
035   public <R,A> R accept(jtb.visitor.GJVisitor<R,A> v, A argu) {
036      return v.visit(this,argu);
037   }
038   public <R> R accept(jtb.visitor.GJNoArguVisitor<R> v) {
039      return v.visit(this);
040   }
041   public <A> void accept(jtb.visitor.GJVoidVisitor<A> v, A argu) {
042      v.visit(this,argu);
043   }
044   public void setParent(Node n) { parent = n; }
045   public Node getParent()       { return parent; }
046}
047