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