001//
002// Generated by JTB 1.3.2
003//
004
005package jtb.syntaxtree;
006
007// Grammar production:
008// f0 -> "(" Type() ")" UnaryExpression()
009//       | "(" Type() ")" UnaryExpressionNotPlusMinus()
010public class CastExpression 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 NodeChoice f0;
016
017   public CastExpression(NodeChoice n0) {
018      f0 = n0;
019      if ( f0 != null ) f0.setParent(this);
020   }
021
022   public void accept(jtb.visitor.Visitor v) {
023      v.visit(this);
024   }
025   public <R,A> R accept(jtb.visitor.GJVisitor<R,A> v, A argu) {
026      return v.visit(this,argu);
027   }
028   public <R> R accept(jtb.visitor.GJNoArguVisitor<R> v) {
029      return v.visit(this);
030   }
031   public <A> void accept(jtb.visitor.GJVoidVisitor<A> v, A argu) {
032      v.visit(this,argu);
033   }
034   public void setParent(Node n) { parent = n; }
035   public Node getParent()       { return parent; }
036}
037