001//
002// Generated by JTB 1.3.2
003//
004
005package jtb.syntaxtree;
006
007// Grammar production:
008// f0 -> "boolean"
009//       | "char"
010//       | "byte"
011//       | "short"
012//       | "int"
013//       | "long"
014//       | "float"
015//       | "double"
016public class PrimitiveType 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 PrimitiveType(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