thon.2.7.1b2.source-code.foo.p Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython Show documentation
Show all versions of jython Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
Compiled from "/Users/fwierzbicki/hg/jython/jython/foo.py"
public class foo$py extends org.python.core.PyFunctionTable implements org.python.core.PyRunnable {
static foo$py self;
static final org.python.core.PyCode f$0;
public org.python.core.PyObject f$0(org.python.core.PyFrame, org.python.core.ThreadState);
Code:
0: aload_1
1: iconst_1
2: invokevirtual #8 // Method org/python/core/PyFrame.setline:(I)V
5: new #10 // class org/python/core/PyTuple
8: dup
9: iconst_2
10: anewarray #12 // class org/python/core/PyObject
13: dup
14: iconst_0
15: sipush 1000
18: invokestatic #18 // Method org/python/core/Py.newInteger:(I)Lorg/python/core/PyInteger;
21: aastore
22: dup
23: iconst_1
24: sipush 2000
27: invokestatic #18 // Method org/python/core/Py.newInteger:(I)Lorg/python/core/PyInteger;
30: aastore
31: invokespecial #22 // Method org/python/core/PyTuple."":([Lorg/python/core/PyObject;)V
34: astore_3
35: aload_3
36: iconst_2
37: invokestatic #26 // Method org/python/core/Py.unpackSequence:(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;
40: astore 4
42: aload 4
44: iconst_0
45: aaload
46: astore 5
48: aload_1
49: ldc #28 // String a
51: aload 5
53: invokevirtual #32 // Method org/python/core/PyFrame.setlocal:(Ljava/lang/String;Lorg/python/core/PyObject;)V
56: aconst_null
57: astore 5
59: aload 4
61: iconst_1
62: aaload
63: astore 5
65: aload_1
66: ldc #34 // String b
68: aload 5
70: invokevirtual #32 // Method org/python/core/PyFrame.setlocal:(Ljava/lang/String;Lorg/python/core/PyObject;)V
73: aconst_null
74: astore 5
76: aconst_null
77: astore_3
78: aload_1
79: iconst_m1
80: putfield #38 // Field org/python/core/PyFrame.f_lasti:I
83: getstatic #42 // Field org/python/core/Py.None:Lorg/python/core/PyObject;
86: areturn
LineNumberTable:
line 1: 0
public foo$py(java.lang.String);
Code:
0: aload_0
1: invokespecial #48 // Method org/python/core/PyFunctionTable."":()V
4: aload_0
5: putstatic #54 // Field self:Lfoo$py;
8: iconst_0
9: iconst_0
10: anewarray #57 // class java/lang/String
13: astore_2
14: aload_2
15: aload_1
16: ldc #59 // String
18: iconst_0
19: iconst_0
20: iconst_0
21: getstatic #54 // Field self:Lfoo$py;
24: iconst_0
25: aconst_null
26: aconst_null
27: iconst_0
28: sipush 4096
31: invokestatic #63 // Method org/python/core/Py.newCode:(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;
34: putstatic #65 // Field f$0:Lorg/python/core/PyCode;
37: return
public org.python.core.PyCode getMain();
Code:
0: getstatic #65 // Field f$0:Lorg/python/core/PyCode;
3: areturn
public static void main(java.lang.String[]);
Code:
0: new #52 // class foo$py
3: dup
4: ldc #70 // String foo$py
6: invokespecial #72 // Method "":(Ljava/lang/String;)V
9: invokevirtual #74 // Method getMain:()Lorg/python/core/PyCode;
12: invokestatic #80 // Method org/python/core/CodeLoader.createSimpleBootstrap:(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;
15: aload_0
16: invokestatic #84 // Method org/python/core/Py.runMain:(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V
19: return
public static org.python.core.CodeBootstrap getCodeBootstrap();
Code:
0: ldc #52 // class foo$py
2: invokestatic #92 // Method org/python/core/PyRunnableBootstrap.getFilenameConstructorReflectionBootstrap:(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;
5: areturn
public org.python.core.PyObject call_function(int, org.python.core.PyFrame, org.python.core.ThreadState);
Code:
0: aload_0
1: aload_2
2: aload_3
3: iload_1
4: tableswitch { // 0 to 0
0: 24
default: 28
}
24: invokevirtual #96 // Method f$0:(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
27: areturn
28: aconst_null
29: areturn
}