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