final class jdk.nashorn.tools.jjs.HistoryObject extends jdk.nashorn.api.scripting.AbstractJSObject
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.tools.jjs.HistoryObject
super_class: jdk.nashorn.api.scripting.AbstractJSObject
{
private static final java.util.Set<java.lang.String> props;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final jdk.internal.jline.console.history.History hist;
descriptor: Ljdk/internal/jline/console/history/History;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.PrintWriter err;
descriptor: Ljava/io/PrintWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Consumer<java.lang.String> evaluator;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 1: aload 0
ldc "clear"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
2: aload 0
ldc "forEach"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
3: aload 0
ldc "load"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
4: aload 0
ldc "print"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
5: aload 0
ldc "save"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
6: aload 0
ldc "size"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
7: aload 0
ldc "toString"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
8: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putstatic jdk.nashorn.tools.jjs.HistoryObject.props:Ljava/util/Set;
end local 0 9: return
LocalVariableTable:
Start End Slot Name Signature
1 9 0 s Ljava/util/HashSet<Ljava/lang/String;>;
void <init>(jdk.internal.jline.console.history.History, java.io.PrintWriter, java.util.function.Consumer<java.lang.String>);
descriptor: (Ljdk/internal/jline/console/history/History;Ljava/io/PrintWriter;Ljava/util/function/Consumer;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial jdk.nashorn.api.scripting.AbstractJSObject.<init>:()V
1: aload 0
aload 1
putfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
2: aload 0
aload 2
putfield jdk.nashorn.tools.jjs.HistoryObject.err:Ljava/io/PrintWriter;
3: aload 0
aload 3
putfield jdk.nashorn.tools.jjs.HistoryObject.evaluator:Ljava/util/function/Consumer;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 5 1 hist Ljdk/internal/jline/console/history/History;
0 5 2 err Ljava/io/PrintWriter;
0 5 3 evaluator Ljava/util/function/Consumer<Ljava/lang/String;>;
Signature: (Ljdk/internal/jline/console/history/History;Ljava/io/PrintWriter;Ljava/util/function/Consumer<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
hist final
err final
evaluator final
public boolean isFunction();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
public java.lang.Object call(java.lang.Object, java.lang.Object[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
ifle 14
1: aload 2
iconst_0
aaload
invokestatic jdk.nashorn.internal.runtime.JSType.toInteger:(Ljava/lang/Object;)I
istore 3
start local 3 2: iload 3
ifge 5
3: iload 3
aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.size:()I
iconst_1
isub
iadd
istore 3
4: goto 6
5: StackMap locals: int
StackMap stack:
iinc 3 -1
6: StackMap locals:
StackMap stack:
iload 3
iflt 12
iload 3
aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.size:()I
iconst_1
isub
if_icmpge 12
7: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
iload 3
invokeinterface jdk.internal.jline.console.history.History.get:(I)Ljava/lang/CharSequence;
astore 4
start local 4 8: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
aload 4
invokeinterface jdk.internal.jline.console.history.History.replace:(Ljava/lang/CharSequence;)V
9: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.err:Ljava/io/PrintWriter;
aload 4
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
10: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.evaluator:Ljava/util/function/Consumer;
aload 4
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 4 11: goto 14
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.removeLast:()Ljava/lang/CharSequence;
pop
13: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.err:Ljava/io/PrintWriter;
new java.lang.StringBuilder
dup
ldc "no history entry @ "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
iconst_1
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 3 14: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 15 1 thiz Ljava/lang/Object;
0 15 2 args [Ljava/lang/Object;
2 14 3 index I
8 11 4 src Ljava/lang/CharSequence;
MethodParameters:
Name Flags
thiz final
args final
public java.lang.Object getMember(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 2
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 7
-1776922004: 1
-678635926: 2
3327206: 3
3522941: 4
3530753: 5
94746189: 6
106934957: 7
default: 15
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 2
ldc "toString"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 14
goto 15
StackMap locals:
StackMap stack:
2: aload 2
ldc "forEach"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 15
StackMap locals:
StackMap stack:
3: aload 2
ldc "load"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 15
StackMap locals:
StackMap stack:
4: aload 2
ldc "save"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 15
StackMap locals:
StackMap stack:
5: aload 2
ldc "size"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
goto 15
StackMap locals:
StackMap stack:
6: aload 2
ldc "clear"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 15
StackMap locals:
StackMap stack:
7: aload 2
ldc "print"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
goto 15
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic run(Ljdk/internal/jline/console/history/History;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/internal/jline/console/history/History.clear()V (9 itf)
()V
areturn
9: StackMap locals:
StackMap stack:
aload 0
invokedynamic apply(Ljdk/nashorn/tools/jjs/HistoryObject;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/nashorn/tools/jjs/HistoryObject.iterate(Ljdk/nashorn/api/scripting/JSObject;)Ljava/lang/Object; (7)
(Ljdk/nashorn/api/scripting/JSObject;)Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
aload 0
invokedynamic accept(Ljdk/nashorn/tools/jjs/HistoryObject;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/nashorn/tools/jjs/HistoryObject.load(Ljava/lang/Object;)V (7)
(Ljava/lang/Object;)V
areturn
11: StackMap locals:
StackMap stack:
aload 0
invokedynamic run(Ljdk/nashorn/tools/jjs/HistoryObject;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/nashorn/tools/jjs/HistoryObject.print()V (7)
()V
areturn
12: StackMap locals:
StackMap stack:
aload 0
invokedynamic accept(Ljdk/nashorn/tools/jjs/HistoryObject;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/nashorn/tools/jjs/HistoryObject.save(Ljava/lang/Object;)V (7)
(Ljava/lang/Object;)V
areturn
13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
14: StackMap locals:
StackMap stack:
aload 0
invokedynamic get(Ljdk/nashorn/tools/jjs/HistoryObject;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/nashorn/tools/jjs/HistoryObject.toString()Ljava/lang/String; (5)
()Ljava/lang/String;
areturn
15: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 16 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name final
public getDefaultValue(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljava/lang/String;
if_acmpne 2
1: aload 0
invokevirtual jdk.nashorn.tools.jjs.HistoryObject.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 3 1 hint Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
hint final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject java.lang.StringBuilder top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.jline.console.history.History$Entry
astore 2
start local 2 3: aload 1
aload 2
invokeinterface jdk.internal.jline.console.history.History$Entry.value:()Ljava/lang/CharSequence;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
1 6 1 buf Ljava/lang/StringBuilder;
3 4 2 e Ljdk/internal/jline/console/history/History$Entry;
public java.util.Set<java.lang.String> keySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jdk.nashorn.tools.jjs.HistoryObject.props:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private void save(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.tools.jjs.HistoryObject.getFile:(Ljava/lang/Object;)Ljava/io/File;
astore 2
start local 2 1: aconst_null
astore 3
aconst_null
astore 4
2: new java.io.PrintWriter
dup
aload 2
invokespecial java.io.PrintWriter.<init>:(Ljava/io/File;)V
astore 5
start local 5 3: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.iterator:()Ljava/util/Iterator;
astore 7
goto 6
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject java.lang.Object java.io.File java.lang.Throwable java.lang.Throwable java.io.PrintWriter top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.jline.console.history.History$Entry
astore 6
start local 6 5: aload 5
aload 6
invokeinterface jdk.internal.jline.console.history.History$Entry.value:()Ljava/lang/CharSequence;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
end local 6 6: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 5
ifnull 15
aload 5
invokevirtual java.io.PrintWriter.close:()V
goto 15
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject java.lang.Object java.io.File java.lang.Throwable java.lang.Throwable java.io.PrintWriter
StackMap stack: java.lang.Throwable
8: astore 3
aload 5
ifnull 9
aload 5
invokevirtual java.io.PrintWriter.close:()V
end local 5 StackMap locals:
StackMap stack:
9: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 4
aload 3
ifnonnull 11
aload 4
astore 3
goto 12
StackMap locals:
StackMap stack:
11: aload 3
aload 4
if_acmpeq 12
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 3
athrow
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject java.lang.Object java.io.File
StackMap stack: java.io.IOException
13: astore 3
start local 3 14: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 16 1 obj Ljava/lang/Object;
1 16 2 file Ljava/io/File;
3 9 5 pw Ljava/io/PrintWriter;
5 6 6 e Ljdk/internal/jline/console/history/History$Entry;
14 15 3 exp Ljava/io/IOException;
Exception table:
from to target type
3 7 8 any
2 10 10 any
1 13 13 Class java.io.IOException
MethodParameters:
Name Flags
obj final
private void load(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.tools.jjs.HistoryObject.getFile:(Ljava/lang/Object;)Ljava/io/File;
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 2
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 6
start local 6 4: goto 6
5: StackMap locals: jdk.nashorn.tools.jjs.HistoryObject java.lang.Object java.io.File java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack:
aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
aload 3
invokeinterface jdk.internal.jline.console.history.History.add:(Ljava/lang/CharSequence;)V
6: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 3
ifnonnull 5
7: aload 6
ifnull 15
aload 6
invokevirtual java.io.BufferedReader.close:()V
goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
aload 6
ifnull 9
aload 6
invokevirtual java.io.BufferedReader.close:()V
end local 6 StackMap locals:
StackMap stack:
9: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 5
aload 4
ifnonnull 11
aload 5
astore 4
goto 12
StackMap locals:
StackMap stack:
11: aload 4
aload 5
if_acmpeq 12
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 4
athrow
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject java.lang.Object java.io.File java.lang.String
StackMap stack: java.io.IOException
13: astore 4
start local 4 14: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 16 1 obj Ljava/lang/Object;
1 16 2 file Ljava/io/File;
2 16 3 item Ljava/lang/String;
4 9 6 r Ljava/io/BufferedReader;
14 15 4 exp Ljava/io/IOException;
Exception table:
from to target type
4 7 8 any
3 10 10 any
2 13 13 Class java.io.IOException
MethodParameters:
Name Flags
obj final
private void print();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.jline.console.history.History$Entry
astore 1
start local 1 2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "%3d %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokeinterface jdk.internal.jline.console.history.History$Entry.index:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
invokeinterface jdk.internal.jline.console.history.History$Entry.value:()Ljava/lang/CharSequence;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
2 3 1 e Ljdk/internal/jline/console/history/History$Entry;
private java.lang.Object iterate(jdk.nashorn.api.scripting.JSObject);
descriptor: (Ljdk/nashorn/api/scripting/JSObject;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.tools.jjs.HistoryObject.hist:Ljdk/internal/jline/console/history/History;
invokeinterface jdk.internal.jline.console.history.History.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: jdk.nashorn.tools.jjs.HistoryObject jdk.nashorn.api.scripting.JSObject top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.jline.console.history.History$Entry
astore 2
start local 2 2: aload 1
aload 0
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokeinterface jdk.internal.jline.console.history.History$Entry.value:()Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
aastore
invokeinterface jdk.nashorn.api.scripting.JSObject.call:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toBoolean:(Ljava/lang/Object;)Z
ifeq 4
3: goto 5
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: StackMap locals: jdk.nashorn.tools.jjs.HistoryObject jdk.nashorn.api.scripting.JSObject
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/tools/jjs/HistoryObject;
0 6 1 func Ljdk/nashorn/api/scripting/JSObject;
2 4 2 e Ljdk/internal/jline/console/history/History$Entry;
MethodParameters:
Name Flags
func final
private static java.io.File getFile(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/io/File;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
instanceof java.lang.String
ifeq 4
2: new java.io.File
dup
aload 0
checkcast java.lang.String
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
3: goto 8
StackMap locals: java.io.File
StackMap stack:
4: aload 0
instanceof java.io.File
ifeq 7
5: aload 0
checkcast java.io.File
astore 1
6: goto 8
7: StackMap locals:
StackMap stack:
ldc "not.a.file"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 obj Ljava/lang/Object;
1 9 1 file Ljava/io/File;
MethodParameters:
Name Flags
obj final
}
SourceFile: "HistoryObject.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = jdk.internal.jline.console.history.History$Entry of jdk.internal.jline.console.history.History