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