001// 002// Generated by JTB 1.3.2 003// 004 005package jtb.syntaxtree; 006 007// Grammar production: 008// f0 -> "null" 009public class NullLiteral implements Node { 010 // This was added after running jtb to remove serializable warning. 011 static final long serialVersionUID = 20150406L; 012 013 private Node parent; 014 public NodeToken f0; 015 016 public NullLiteral(NodeToken n0) { 017 f0 = n0; 018 if ( f0 != null ) f0.setParent(this); 019 } 020 021 public NullLiteral() { 022 f0 = new NodeToken("null"); 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