001//
002// Generated by JTB 1.3.2
003//
004
005package jtb.syntaxtree;
006
007// Grammar production:
008// f0 -> <IDENTIFIER>
009// f1 -> [ TypeBound() ]
010public class TypeParameter 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 NodeOptional f1;
017
018   public TypeParameter(NodeToken n0, NodeOptional 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 void accept(jtb.visitor.Visitor v) {
026      v.visit(this);
027   }
028   public <R,A> R accept(jtb.visitor.GJVisitor<R,A> v, A argu) {
029      return v.visit(this,argu);
030   }
031   public <R> R accept(jtb.visitor.GJNoArguVisitor<R> v) {
032      return v.visit(this);
033   }
034   public <A> void accept(jtb.visitor.GJVoidVisitor<A> v, A argu) {
035      v.visit(this,argu);
036   }
037   public void setParent(Node n) { parent = n; }
038   public Node getParent()       { return parent; }
039}
040