01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10: * f0 -> "("
11: * f1 -> PrimaryExpressionNotFunction()
12: * f2 -> ")"
13: * f3 -> PrimaryExpression()
14: * </PRE>
15: */
16: public class CastExpression implements Node {
17: public NodeToken f0;
18: public PrimaryExpressionNotFunction f1;
19: public NodeToken f2;
20: public PrimaryExpression f3;
21:
22: public CastExpression(NodeToken n0,
23: PrimaryExpressionNotFunction n1, NodeToken n2,
24: PrimaryExpression n3) {
25: f0 = n0;
26: f1 = n1;
27: f2 = n2;
28: f3 = n3;
29: }
30:
31: public CastExpression(PrimaryExpressionNotFunction n0,
32: PrimaryExpression n1) {
33: f0 = new NodeToken("(");
34: f1 = n0;
35: f2 = new NodeToken(")");
36: f3 = n1;
37: }
38:
39: public void accept(oscript.visitor.Visitor v) {
40: v.visit(this );
41: }
42:
43: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
44: return v.visit(this, argu);
45: }
46: }
|