01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10:
11: * f0 -> Permissions(true)
12: * f1 -> "var"
13: * f2 -> <IDENTIFIER>
14: * f3 -> ( "=" Expression() )?
15: * </PRE>
16: */
17: public class VariableDeclaration implements Node {
18: public Permissions f0;
19: public NodeToken f1;
20: public NodeToken f2;
21: public NodeOptional f3;
22:
23: public VariableDeclaration(Permissions n0, NodeToken n1,
24: NodeToken n2, NodeOptional n3) {
25: f0 = n0;
26: f1 = n1;
27: f2 = n2;
28: f3 = n3;
29: }
30:
31: public VariableDeclaration(Permissions n0, NodeToken n1,
32: NodeOptional n2) {
33: f0 = n0;
34: f1 = new NodeToken("var");
35: f2 = n1;
36: f3 = n2;
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: }
|