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