01: // Autogenerated AST node
02: package org.python.parser.ast;
03:
04: import org.python.parser.SimpleNode;
05: import java.io.DataOutputStream;
06: import java.io.IOException;
07:
08: public class Lambda extends exprType {
09: public argumentsType args;
10: public exprType body;
11:
12: public Lambda(argumentsType args, exprType body) {
13: this .args = args;
14: this .body = body;
15: }
16:
17: public Lambda(argumentsType args, exprType body, SimpleNode parent) {
18: this (args, body);
19: this .beginLine = parent.beginLine;
20: this .beginColumn = parent.beginColumn;
21: }
22:
23: public String toString() {
24: StringBuffer sb = new StringBuffer("Lambda[");
25: sb.append("args=");
26: sb.append(dumpThis(this .args));
27: sb.append(", ");
28: sb.append("body=");
29: sb.append(dumpThis(this .body));
30: sb.append("]");
31: return sb.toString();
32: }
33:
34: public void pickle(DataOutputStream ostream) throws IOException {
35: pickleThis(31, ostream);
36: pickleThis(this .args, ostream);
37: pickleThis(this .body, ostream);
38: }
39:
40: public Object accept(VisitorIF visitor) throws Exception {
41: return visitor.visitLambda(this );
42: }
43:
44: public void traverse(VisitorIF visitor) throws Exception {
45: if (args != null)
46: args.accept(visitor);
47: if (body != null)
48: body.accept(visitor);
49: }
50:
51: }
|