public class com.sun.tools.script.shell.Main
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.script.shell.Main
super_class: java.lang.Object
{
private static final int EXIT_SUCCESS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int EXIT_CMD_NO_CLASSPATH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int EXIT_CMD_NO_FILE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int EXIT_CMD_NO_SCRIPT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int EXIT_CMD_NO_LANG;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int EXIT_CMD_NO_ENCODING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int EXIT_CMD_NO_PROPNAME;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private static final int EXIT_UNKNOWN_OPTION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
private static final int EXIT_ENGINE_NOT_FOUND;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int EXIT_NO_ENCODING_FOUND;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 9
private static final int EXIT_SCRIPT_ERROR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final int EXIT_FILE_NOT_FOUND;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private static final int EXIT_MULTIPLE_STDIN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12
private static final java.lang.String DEFAULT_LANGUAGE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "js"
private static java.util.List<com.sun.tools.script.shell.Main$Command> scripts;
descriptor: Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/List<Lcom/sun/tools/script/shell/Main$Command;>;
private static javax.script.ScriptEngineManager engineManager;
descriptor: Ljavax/script/ScriptEngineManager;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.Map<java.lang.String, javax.script.ScriptEngine> engines;
descriptor: Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Map<Ljava/lang/String;Ljavax/script/ScriptEngine;>;
private static java.util.ResourceBundle msgRes;
descriptor: Ljava/util/ResourceBundle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String BUNDLE_NAME;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String PROGRAM_NAME;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "com.sun.tools.script.shell.messages"
putstatic com.sun.tools.script.shell.Main.BUNDLE_NAME:Ljava/lang/String;
1: ldc "jrunscript"
putstatic com.sun.tools.script.shell.Main.PROGRAM_NAME:Ljava/lang/String;
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic com.sun.tools.script.shell.Main.scripts:Ljava/util/List;
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic com.sun.tools.script.shell.Main.engines:Ljava/util/Map;
4: getstatic com.sun.tools.script.shell.Main.BUNDLE_NAME:Ljava/lang/String;
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
putstatic com.sun.tools.script.shell.Main.msgRes:Ljava/util/ResourceBundle;
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/script/shell/Main;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokestatic com.sun.tools.script.shell.Main.processOptions:([Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: getstatic com.sun.tools.script.shell.Main.scripts:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.lang.String[] java.lang.String[] top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.script.shell.Main$Command
astore 2
start local 2 3: aload 2
aload 1
invokeinterface com.sun.tools.script.shell.Main$Command.run:([Ljava/lang/String;)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iconst_0
invokestatic java.lang.System.exit:(I)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 args [Ljava/lang/String;
1 7 1 scriptArgs [Ljava/lang/String;
3 4 2 cmd Lcom/sun/tools/script/shell/Main$Command;
MethodParameters:
Name Flags
args
private static java.lang.String[] processOptions(java.lang.String[]);
descriptor: ([Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=10, args_size=1
start local 0 0: ldc "js"
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aload 0
invokestatic com.sun.tools.script.shell.Main.checkClassPath:([Ljava/lang/String;)V
3: iconst_0
istore 3
start local 3 4: iconst_0
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 75
7: StackMap locals: java.lang.String[] java.lang.String java.lang.String int int int
StackMap stack:
aload 0
iload 5
aaload
astore 6
start local 6 8: aload 6
ldc "-classpath"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
9: aload 6
ldc "-cp"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: StackMap locals: java.lang.String
StackMap stack:
iinc 5 1
11: goto 74
12: StackMap locals:
StackMap stack:
aload 6
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 24
13: iload 3
ifeq 17
14: aload 0
arraylength
iload 5
isub
istore 7
start local 7 15: iload 5
istore 8
start local 8 16: goto 21
end local 8 end local 7 17: StackMap locals:
StackMap stack:
aload 0
arraylength
iload 5
isub
iconst_1
isub
istore 7
start local 7 18: iload 5
iconst_1
iadd
istore 8
start local 8 19: aload 1
invokestatic com.sun.tools.script.shell.Main.getScriptEngine:(Ljava/lang/String;)Ljavax/script/ScriptEngine;
astore 9
start local 9 20: aload 9
aload 0
iload 5
aaload
aload 2
invokestatic com.sun.tools.script.shell.Main.addFileSource:(Ljavax/script/ScriptEngine;Ljava/lang/String;Ljava/lang/String;)V
end local 9 21: StackMap locals: int int
StackMap stack:
iload 7
anewarray java.lang.String
astore 9
start local 9 22: aload 0
iload 8
aload 9
iconst_0
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
23: aload 9
areturn
end local 9 end local 8 end local 7 24: StackMap locals:
StackMap stack:
aload 6
ldc "-D"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 37
25: aload 6
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 7
start local 7 26: aload 7
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 8
start local 8 27: iload 8
iconst_m1
if_icmpeq 32
28: aload 7
iconst_0
iload 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
29: aload 7
iload 8
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
30: invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
31: goto 74
32: StackMap locals: java.lang.String int
StackMap stack:
aload 7
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 35
33: aload 7
ldc ""
invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
34: goto 74
35: StackMap locals:
StackMap stack:
bipush 6
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
36: goto 74
end local 8 end local 7 37: StackMap locals:
StackMap stack:
aload 6
ldc "-?"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 38
aload 6
ldc "-help"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 40
38: StackMap locals:
StackMap stack:
iconst_0
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
39: goto 73
StackMap locals:
StackMap stack:
40: aload 6
ldc "-e"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 47
41: iconst_1
istore 3
42: iinc 5 1
iload 5
aload 0
arraylength
if_icmpne 44
43: iconst_3
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
44: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.tools.script.shell.Main.getScriptEngine:(Ljava/lang/String;)Ljavax/script/ScriptEngine;
astore 7
start local 7 45: aload 7
aload 0
iload 5
aaload
invokestatic com.sun.tools.script.shell.Main.addStringSource:(Ljavax/script/ScriptEngine;Ljava/lang/String;)V
46: goto 74
end local 7 47: StackMap locals:
StackMap stack:
aload 6
ldc "-encoding"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 52
48: iinc 5 1
iload 5
aload 0
arraylength
if_icmpne 50
49: iconst_5
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
50: StackMap locals:
StackMap stack:
aload 0
iload 5
aaload
astore 2
51: goto 74
52: StackMap locals:
StackMap stack:
aload 6
ldc "-f"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 66
53: iconst_1
istore 3
54: iinc 5 1
iload 5
aload 0
arraylength
if_icmpne 56
55: iconst_2
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
56: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.tools.script.shell.Main.getScriptEngine:(Ljava/lang/String;)Ljavax/script/ScriptEngine;
astore 7
start local 7 57: aload 0
iload 5
aaload
ldc "-"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 64
58: iload 4
ifeq 61
59: bipush 12
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
60: goto 62
61: StackMap locals: javax.script.ScriptEngine
StackMap stack:
iconst_1
istore 4
62: StackMap locals:
StackMap stack:
aload 7
invokestatic com.sun.tools.script.shell.Main.addInteractiveMode:(Ljavax/script/ScriptEngine;)V
63: goto 74
64: StackMap locals:
StackMap stack:
aload 7
aload 0
iload 5
aaload
aload 2
invokestatic com.sun.tools.script.shell.Main.addFileSource:(Ljavax/script/ScriptEngine;Ljava/lang/String;Ljava/lang/String;)V
65: goto 74
end local 7 66: StackMap locals:
StackMap stack:
aload 6
ldc "-l"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 71
67: iinc 5 1
iload 5
aload 0
arraylength
if_icmpne 69
68: iconst_4
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
69: StackMap locals:
StackMap stack:
aload 0
iload 5
aaload
astore 1
70: goto 74
71: StackMap locals:
StackMap stack:
aload 6
ldc "-q"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 73
72: invokestatic com.sun.tools.script.shell.Main.listScriptEngines:()V
73: StackMap locals:
StackMap stack:
bipush 7
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
end local 6 74: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
75: iload 5
aload 0
arraylength
if_icmplt 7
end local 5 76: iload 3
ifne 79
77: aload 1
invokestatic com.sun.tools.script.shell.Main.getScriptEngine:(Ljava/lang/String;)Ljavax/script/ScriptEngine;
astore 5
start local 5 78: aload 5
invokestatic com.sun.tools.script.shell.Main.addInteractiveMode:(Ljavax/script/ScriptEngine;)V
end local 5 79: StackMap locals:
StackMap stack:
iconst_0
anewarray java.lang.String
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 80 0 args [Ljava/lang/String;
1 80 1 currentLanguage Ljava/lang/String;
2 80 2 currentEncoding Ljava/lang/String;
4 80 3 seenScript Z
5 80 4 seenStdin Z
6 76 5 i I
8 74 6 arg Ljava/lang/String;
15 17 7 numScriptArgs I
18 24 7 numScriptArgs I
16 17 8 startScriptArg I
19 24 8 startScriptArg I
20 21 9 se Ljavax/script/ScriptEngine;
22 24 9 result [Ljava/lang/String;
26 37 7 value Ljava/lang/String;
27 37 8 eq I
45 47 7 se Ljavax/script/ScriptEngine;
57 66 7 se Ljavax/script/ScriptEngine;
78 79 5 se Ljavax/script/ScriptEngine;
MethodParameters:
Name Flags
args
private static void addInteractiveMode(javax.script.ScriptEngine);
descriptor: (Ljavax/script/ScriptEngine;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic com.sun.tools.script.shell.Main.scripts:Ljava/util/List;
new com.sun.tools.script.shell.Main$1
dup
aload 0
invokespecial com.sun.tools.script.shell.Main$1.<init>:(Ljavax/script/ScriptEngine;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 se Ljavax/script/ScriptEngine;
MethodParameters:
Name Flags
se final
private static void addFileSource(javax.script.ScriptEngine, java.lang.String, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.sun.tools.script.shell.Main.scripts:Ljava/util/List;
new com.sun.tools.script.shell.Main$2
dup
aload 0
aload 1
aload 2
invokespecial com.sun.tools.script.shell.Main$2.<init>:(Ljavax/script/ScriptEngine;Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 se Ljavax/script/ScriptEngine;
0 2 1 fileName Ljava/lang/String;
0 2 2 encoding Ljava/lang/String;
MethodParameters:
Name Flags
se final
fileName final
encoding final
private static void addStringSource(javax.script.ScriptEngine, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.sun.tools.script.shell.Main.scripts:Ljava/util/List;
new com.sun.tools.script.shell.Main$3
dup
aload 0
aload 1
invokespecial com.sun.tools.script.shell.Main$3.<init>:(Ljavax/script/ScriptEngine;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 se Ljavax/script/ScriptEngine;
0 2 1 source Ljava/lang/String;
MethodParameters:
Name Flags
se final
source final
private static void listScriptEngines();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=0
0: getstatic com.sun.tools.script.shell.Main.engineManager:Ljavax/script/ScriptEngineManager;
invokevirtual javax.script.ScriptEngineManager.getEngineFactories:()Ljava/util/List;
astore 0
start local 0 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 9
StackMap locals: java.util.List top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.script.ScriptEngineFactory
astore 1
start local 1 3: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "engine.info"
4: iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 1
invokeinterface javax.script.ScriptEngineFactory.getLanguageName:()Ljava/lang/String;
aastore
dup
iconst_1
5: aload 1
invokeinterface javax.script.ScriptEngineFactory.getLanguageVersion:()Ljava/lang/String;
aastore
dup
iconst_2
6: aload 1
invokeinterface javax.script.ScriptEngineFactory.getEngineName:()Ljava/lang/String;
aastore
dup
iconst_3
7: aload 1
invokeinterface javax.script.ScriptEngineFactory.getEngineVersion:()Ljava/lang/String;
aastore
8: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 1 9: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
10: iconst_0
invokestatic java.lang.System.exit:(I)V
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 12 0 factories Ljava/util/List<Ljavax/script/ScriptEngineFactory;>;
3 9 1 factory Ljavax/script/ScriptEngineFactory;
private static void processSource(javax.script.ScriptEngine, java.lang.String, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "-"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
1: new java.io.BufferedReader
dup
2: new java.io.InputStreamReader
dup
invokestatic com.sun.tools.script.shell.Main.getIn:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
3: invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: aload 0
invokestatic com.sun.tools.script.shell.Main.getPrompt:(Ljavax/script/ScriptEngine;)Ljava/lang/String;
astore 5
start local 5 6: aload 0
ldc "javax.script.filename"
ldc "<STDIN>"
invokeinterface javax.script.ScriptEngine.put:(Ljava/lang/String;Ljava/lang/Object;)V
7: goto 23
8: StackMap locals: java.io.BufferedReader int java.lang.String
StackMap stack:
invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
aload 5
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
9: ldc ""
astore 6
start local 6 10: aload 3
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 6
11: goto 14
StackMap locals: javax.script.ScriptEngine java.lang.String java.lang.String java.io.BufferedReader int java.lang.String java.lang.String
StackMap stack: java.io.IOException
12: astore 7
start local 7 13: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
aload 7
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 7 14: StackMap locals:
StackMap stack:
aload 6
ifnonnull 17
15: iconst_1
istore 4
16: goto 34
17: StackMap locals:
StackMap stack:
aload 0
aload 6
iconst_0
invokestatic com.sun.tools.script.shell.Main.evaluateString:(Ljavax/script/ScriptEngine;Ljava/lang/String;Z)Ljava/lang/Object;
astore 7
start local 7 18: aload 7
ifnull 23
19: aload 7
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
20: aload 7
ifnonnull 22
21: ldc "null"
astore 7
22: StackMap locals: java.lang.Object
StackMap stack:
invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
aload 7
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
end local 7 end local 6 23: StackMap locals:
StackMap stack:
iload 4
ifeq 8
end local 5 end local 4 end local 3 24: goto 34
25: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 26: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 3
27: goto 33
StackMap locals: javax.script.ScriptEngine java.lang.String java.lang.String java.io.FileInputStream
StackMap stack: java.io.FileNotFoundException
28: pop
29: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "file.not.found"
30: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
31: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
32: bipush 11
invokestatic java.lang.System.exit:(I)V
33: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 1
aload 2
invokestatic com.sun.tools.script.shell.Main.evaluateStream:(Ljavax/script/ScriptEngine;Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
pop
end local 3 34: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 se Ljavax/script/ScriptEngine;
0 35 1 filename Ljava/lang/String;
0 35 2 encoding Ljava/lang/String;
4 24 3 in Ljava/io/BufferedReader;
5 24 4 hitEOF Z
6 24 5 prompt Ljava/lang/String;
10 23 6 source Ljava/lang/String;
13 14 7 ioe Ljava/io/IOException;
18 23 7 res Ljava/lang/Object;
26 34 3 fis Ljava/io/FileInputStream;
Exception table:
from to target type
10 11 12 Class java.io.IOException
26 27 28 Class java.io.FileNotFoundException
MethodParameters:
Name Flags
se
filename
encoding
private static java.lang.Object evaluateString(javax.script.ScriptEngine, java.lang.String, boolean);
descriptor: (Ljavax/script/ScriptEngine;Ljava/lang/String;Z)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokeinterface javax.script.ScriptEngine.eval:(Ljava/lang/String;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: javax.script.ScriptException
astore 3
start local 3 3: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "string.script.error"
4: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual javax.script.ScriptException.getMessage:()Ljava/lang/String;
aastore
5: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: iload 2
ifeq 13
7: bipush 10
invokestatic java.lang.System.exit:(I)V
end local 3 8: goto 13
9: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 10: aload 3
invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintStream;)V
11: iload 2
ifeq 13
12: bipush 10
invokestatic java.lang.System.exit:(I)V
end local 3 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 se Ljavax/script/ScriptEngine;
0 14 1 script Ljava/lang/String;
0 14 2 exitOnError Z
3 8 3 sexp Ljavax/script/ScriptException;
10 13 3 exp Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class javax.script.ScriptException
0 1 9 Class java.lang.Exception
MethodParameters:
Name Flags
se
script
exitOnError
private static void evaluateString(javax.script.ScriptEngine, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokestatic com.sun.tools.script.shell.Main.evaluateString:(Ljavax/script/ScriptEngine;Ljava/lang/String;Z)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 se Ljavax/script/ScriptEngine;
0 2 1 script Ljava/lang/String;
MethodParameters:
Name Flags
se
script
private static java.lang.Object evaluateReader(javax.script.ScriptEngine, java.io.Reader, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/io/Reader;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokestatic com.sun.tools.script.shell.Main.setScriptFilename:(Ljavax/script/ScriptEngine;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 1
invokeinterface javax.script.ScriptEngine.eval:(Ljava/io/Reader;)Ljava/lang/Object;
astore 6
2: aload 0
aload 3
invokestatic com.sun.tools.script.shell.Main.setScriptFilename:(Ljavax/script/ScriptEngine;Ljava/lang/String;)Ljava/lang/String;
pop
3: aload 6
areturn
4: StackMap locals: javax.script.ScriptEngine java.io.Reader java.lang.String java.lang.String
StackMap stack: javax.script.ScriptException
astore 4
start local 4 5: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "file.script.error"
6: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 4
invokevirtual javax.script.ScriptException.getMessage:()Ljava/lang/String;
aastore
7: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: bipush 10
invokestatic java.lang.System.exit:(I)V
end local 4 9: aload 0
aload 3
invokestatic com.sun.tools.script.shell.Main.setScriptFilename:(Ljavax/script/ScriptEngine;Ljava/lang/String;)Ljava/lang/String;
pop
goto 17
10: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 11: aload 4
invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintStream;)V
12: bipush 10
invokestatic java.lang.System.exit:(I)V
end local 4 13: aload 0
aload 3
invokestatic com.sun.tools.script.shell.Main.setScriptFilename:(Ljavax/script/ScriptEngine;Ljava/lang/String;)Ljava/lang/String;
pop
goto 17
14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
15: aload 0
aload 3
invokestatic com.sun.tools.script.shell.Main.setScriptFilename:(Ljavax/script/ScriptEngine;Ljava/lang/String;)Ljava/lang/String;
pop
16: aload 5
athrow
17: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 se Ljavax/script/ScriptEngine;
0 18 1 reader Ljava/io/Reader;
0 18 2 name Ljava/lang/String;
1 18 3 oldFilename Ljava/lang/String;
5 9 4 sexp Ljavax/script/ScriptException;
11 13 4 exp Ljava/lang/Exception;
Exception table:
from to target type
1 2 4 Class javax.script.ScriptException
1 2 10 Class java.lang.Exception
1 2 14 any
4 9 14 any
10 13 14 any
MethodParameters:
Name Flags
se
reader
name
private static java.lang.Object evaluateStream(javax.script.ScriptEngine, java.io.InputStream, java.lang.String, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 3
ifnull 12
2: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
3: aload 3
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
4: invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
5: goto 13
StackMap locals: javax.script.ScriptEngine java.io.InputStream java.lang.String java.lang.String java.io.BufferedReader
StackMap stack: java.io.UnsupportedEncodingException
6: pop
7: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "encoding.unsupported"
8: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
9: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: bipush 9
invokestatic java.lang.System.exit:(I)V
11: goto 13
12: StackMap locals:
StackMap stack:
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
13: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 2
invokestatic com.sun.tools.script.shell.Main.evaluateReader:(Ljavax/script/ScriptEngine;Ljava/io/Reader;Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 se Ljavax/script/ScriptEngine;
0 14 1 is Ljava/io/InputStream;
0 14 2 name Ljava/lang/String;
0 14 3 encoding Ljava/lang/String;
1 14 4 reader Ljava/io/BufferedReader;
Exception table:
from to target type
2 5 6 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
se
is
name
encoding
private static void usage(int);
descriptor: (I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "main.usage"
1: iconst_1
anewarray java.lang.Object
dup
iconst_0
getstatic com.sun.tools.script.shell.Main.PROGRAM_NAME:Ljava/lang/String;
aastore
2: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: iload 0
invokestatic java.lang.System.exit:(I)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 exitCode I
MethodParameters:
Name Flags
exitCode
private static java.lang.String getPrompt(javax.script.ScriptEngine);
descriptor: (Ljavax/script/ScriptEngine;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface javax.script.ScriptEngine.getFactory:()Ljavax/script/ScriptEngineFactory;
invokeinterface javax.script.ScriptEngineFactory.getNames:()Ljava/util/List;
astore 1
start local 1 1: new java.lang.StringBuilder
dup
aload 1
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "> "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 se Ljavax/script/ScriptEngine;
1 2 1 names Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
se
private static java.lang.String getMessage(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.sun.tools.script.shell.Main.msgRes:Ljava/util/ResourceBundle;
aload 0
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 1
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 key Ljava/lang/String;
0 1 1 params [Ljava/lang/Object;
MethodParameters:
Name Flags
key
params
private static java.io.InputStream getIn();
descriptor: ()Ljava/io/InputStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.lang.System.in:Ljava/io/InputStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.io.PrintStream getError();
descriptor: ()Ljava/io/PrintStream;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.lang.System.err:Ljava/io/PrintStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static javax.script.ScriptEngine getScriptEngine(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/script/ScriptEngine;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: getstatic com.sun.tools.script.shell.Main.engines:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.script.ScriptEngine
astore 1
start local 1 1: aload 1
ifnonnull 10
2: getstatic com.sun.tools.script.shell.Main.engineManager:Ljavax/script/ScriptEngineManager;
aload 0
invokevirtual javax.script.ScriptEngineManager.getEngineByName:(Ljava/lang/String;)Ljavax/script/ScriptEngine;
astore 1
3: aload 1
ifnonnull 8
4: invokestatic com.sun.tools.script.shell.Main.getError:()Ljava/io/PrintStream;
ldc "engine.not.found"
5: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
6: invokestatic com.sun.tools.script.shell.Main.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: bipush 8
invokestatic java.lang.System.exit:(I)V
8: StackMap locals: javax.script.ScriptEngine
StackMap stack:
aload 1
invokestatic com.sun.tools.script.shell.Main.initScriptEngine:(Ljavax/script/ScriptEngine;)V
9: getstatic com.sun.tools.script.shell.Main.engines:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 lang Ljava/lang/String;
1 11 1 se Ljavax/script/ScriptEngine;
MethodParameters:
Name Flags
lang
private static void initScriptEngine(javax.script.ScriptEngine);
descriptor: (Ljavax/script/ScriptEngine;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
ldc "engine"
aload 0
invokeinterface javax.script.ScriptEngine.put:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
invokeinterface javax.script.ScriptEngine.getFactory:()Ljavax/script/ScriptEngineFactory;
invokeinterface javax.script.ScriptEngineFactory.getExtensions:()Ljava/util/List;
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
pop
4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals: javax.script.ScriptEngine java.util.List java.io.InputStream top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: ldc Lcom/sun/tools/script/shell/Main;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
new java.lang.StringBuilder
dup
ldc "com/sun/tools/script/shell/init."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.Module.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
7: goto 10
StackMap locals: javax.script.ScriptEngine java.util.List java.io.InputStream java.lang.String java.util.Iterator
StackMap stack: java.io.IOException
8: astore 5
start local 5 9: new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 10: StackMap locals:
StackMap stack:
aload 2
ifnull 11
goto 12
end local 3 11: StackMap locals: javax.script.ScriptEngine java.util.List java.io.InputStream top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: StackMap locals: javax.script.ScriptEngine java.util.List java.io.InputStream
StackMap stack:
aload 2
ifnull 14
13: aload 0
aload 2
ldc "<system-init>"
aconst_null
invokestatic com.sun.tools.script.shell.Main.evaluateStream:(Ljavax/script/ScriptEngine;Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
pop
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 se Ljavax/script/ScriptEngine;
2 15 1 exts Ljava/util/List<Ljava/lang/String;>;
3 15 2 sysIn Ljava/io/InputStream;
6 11 3 ext Ljava/lang/String;
9 10 5 ioe Ljava/io/IOException;
Exception table:
from to target type
6 7 8 Class java.io.IOException
MethodParameters:
Name Flags
se
private static void checkClassPath(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 10
3: StackMap locals: java.lang.String int
StackMap stack:
aload 0
iload 2
aaload
ldc "-classpath"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: aload 0
iload 2
aaload
ldc "-cp"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
5: StackMap locals:
StackMap stack:
iinc 2 1
iload 2
aload 0
arraylength
if_icmpne 8
6: iconst_1
invokestatic com.sun.tools.script.shell.Main.usage:(I)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
iload 2
aaload
astore 1
9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
arraylength
if_icmplt 3
end local 2 11: aload 1
ifnull 15
12: aload 1
invokestatic com.sun.tools.script.shell.Main.pathToURLs:(Ljava/lang/String;)[Ljava/net/URL;
astore 2
start local 2 13: new java.net.URLClassLoader
dup
aload 2
invokespecial java.net.URLClassLoader.<init>:([Ljava/net/URL;)V
astore 3
start local 3 14: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 3
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
end local 3 end local 2 15: StackMap locals:
StackMap stack:
new javax.script.ScriptEngineManager
dup
invokespecial javax.script.ScriptEngineManager.<init>:()V
putstatic com.sun.tools.script.shell.Main.engineManager:Ljavax/script/ScriptEngineManager;
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 args [Ljava/lang/String;
1 17 1 classPath Ljava/lang/String;
2 11 2 i I
13 15 2 urls [Ljava/net/URL;
14 15 3 loader Ljava/net/URLClassLoader;
MethodParameters:
Name Flags
args
private static java.net.URL[] pathToURLs(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/net/URL;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
arraylength
anewarray java.net.URL
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 7
4: StackMap locals: java.lang.String[] java.net.URL[] int
StackMap stack:
new java.io.File
dup
aload 1
iload 3
aaload
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokestatic com.sun.tools.script.shell.Main.fileToURL:(Ljava/io/File;)Ljava/net/URL;
astore 4
start local 4 5: aload 4
ifnull 7
6: aload 2
iload 3
iinc 3 1
aload 4
aastore
end local 4 7: StackMap locals:
StackMap stack:
iload 3
aload 1
arraylength
if_icmplt 4
8: aload 2
arraylength
iload 3
if_icmpeq 12
9: iload 3
anewarray java.net.URL
astore 4
start local 4 10: aload 2
iconst_0
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 4
astore 2
end local 4 12: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 path Ljava/lang/String;
1 13 1 components [Ljava/lang/String;
2 13 2 urls [Ljava/net/URL;
3 13 3 count I
5 7 4 url Ljava/net/URL;
10 12 4 tmp [Ljava/net/URL;
MethodParameters:
Name Flags
path
private static java.net.URL fileToURL(java.io.File);
descriptor: (Ljava/io/File;)Ljava/net/URL;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
astore 1
start local 1 1: goto 4
end local 1 StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: aload 0
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 1
start local 1 4: StackMap locals: java.lang.String
StackMap stack:
aload 1
getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 1
5: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 7
6: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.File.isFile:()Z
ifne 9
8: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
9: StackMap locals:
StackMap stack:
new java.net.URL
dup
ldc "file"
ldc ""
aload 1
invokespecial java.net.URL.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
10: areturn
11: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
12: new java.lang.IllegalArgumentException
dup
ldc "file"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 file Ljava/io/File;
1 2 1 name Ljava/lang/String;
4 13 1 name Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.io.IOException
9 10 11 Class java.net.MalformedURLException
MethodParameters:
Name Flags
file
private static void setScriptArguments(javax.script.ScriptEngine, java.lang.String[]);
descriptor: (Ljavax/script/ScriptEngine;[Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "arguments"
aload 1
invokeinterface javax.script.ScriptEngine.put:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
ldc "javax.script.argv"
aload 1
invokeinterface javax.script.ScriptEngine.put:(Ljava/lang/String;Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 se Ljavax/script/ScriptEngine;
0 3 1 args [Ljava/lang/String;
MethodParameters:
Name Flags
se
args
private static java.lang.String setScriptFilename(javax.script.ScriptEngine, java.lang.String);
descriptor: (Ljavax/script/ScriptEngine;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "javax.script.filename"
invokeinterface javax.script.ScriptEngine.get:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: aload 0
ldc "javax.script.filename"
aload 1
invokeinterface javax.script.ScriptEngine.put:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 se Ljavax/script/ScriptEngine;
0 3 1 name Ljava/lang/String;
1 3 2 oldName Ljava/lang/String;
MethodParameters:
Name Flags
se
name
}
SourceFile: "Main.java"
NestMembers:
com.sun.tools.script.shell.Main$1 com.sun.tools.script.shell.Main$2 com.sun.tools.script.shell.Main$3 com.sun.tools.script.shell.Main$Command
InnerClasses:
com.sun.tools.script.shell.Main$1
com.sun.tools.script.shell.Main$2
com.sun.tools.script.shell.Main$3
private abstract Command = com.sun.tools.script.shell.Main$Command of com.sun.tools.script.shell.Main