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