final class jdk.nashorn.tools.jjs.EditObject 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.EditObject
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.nashorn.tools.jjs.Console console;
descriptor: Ljdk/nashorn/tools/jjs/Console;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Consumer<java.lang.String> errorHandler;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;
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;>;
private java.lang.String editor;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
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 "editor"
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
2: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putstatic jdk.nashorn.tools.jjs.EditObject.props:Ljava/util/Set;
end local 0 3: return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 s Ljava/util/HashSet<Ljava/lang/String;>;
void <init>(jdk.nashorn.tools.jjs.Console, java.util.function.Consumer<java.lang.String>, java.util.function.Consumer<java.lang.String>);
descriptor: (Ljdk/nashorn/tools/jjs/Console;Ljava/util/function/Consumer;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.EditObject.console:Ljdk/nashorn/tools/jjs/Console;
2: aload 0
aload 2
putfield jdk.nashorn.tools.jjs.EditObject.errorHandler:Ljava/util/function/Consumer;
3: aload 0
aload 3
putfield jdk.nashorn.tools.jjs.EditObject.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/EditObject;
0 5 1 console Ljdk/nashorn/tools/jjs/Console;
0 5 2 errorHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
0 5 3 evaluator Ljava/util/function/Consumer<Ljava/lang/String;>;
Signature: (Ljdk/nashorn/tools/jjs/Console;Ljava/util/function/Consumer<Ljava/lang/String;>;Ljava/util/function/Consumer<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
console final
errorHandler final
evaluator 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.EditObject.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/EditObject;
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=1, locals=1, args_size=1
start local 0 0: ldc "function edit() { [native code] }"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/EditObject;
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.EditObject.props:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/EditObject;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public java.lang.Object getMember(java.lang.String);
descriptor: (Ljava/lang/String;)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 "editor"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
getfield jdk.nashorn.tools.jjs.EditObject.editor: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/EditObject;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name final
public void setMember(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "editor"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
1: aload 0
aload 2
ifnull 2
aload 2
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 2
aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
goto 3
StackMap locals:
StackMap stack: jdk.nashorn.tools.jjs.EditObject
2: ldc ""
StackMap locals: jdk.nashorn.tools.jjs.EditObject java.lang.String java.lang.Object
StackMap stack: jdk.nashorn.tools.jjs.EditObject java.lang.String
3: putfield jdk.nashorn.tools.jjs.EditObject.editor:Ljava/lang/String;
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/tools/jjs/EditObject;
0 5 1 name Ljava/lang/String;
0 5 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
name final
value final
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=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
ifle 1
aload 2
iconst_0
aaload
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: ldc ""
StackMap locals:
StackMap stack: java.lang.String
2: astore 3
start local 3 3: new jdk.nashorn.tools.jjs.EditObject$SaveHandler
dup
aload 0
aload 3
invokespecial jdk.nashorn.tools.jjs.EditObject$SaveHandler.<init>:(Ljdk/nashorn/tools/jjs/EditObject;Ljava/lang/String;)V
astore 4
start local 4 4: aload 0
getfield jdk.nashorn.tools.jjs.EditObject.editor:Ljava/lang/String;
ifnull 7
aload 0
getfield jdk.nashorn.tools.jjs.EditObject.editor:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 7
5: aload 0
getfield jdk.nashorn.tools.jjs.EditObject.editor:Ljava/lang/String;
aload 0
getfield jdk.nashorn.tools.jjs.EditObject.errorHandler:Ljava/util/function/Consumer;
aload 3
aload 4
aload 0
getfield jdk.nashorn.tools.jjs.EditObject.console:Ljdk/nashorn/tools/jjs/Console;
invokestatic jdk.nashorn.tools.jjs.ExternalEditor.edit:(Ljava/lang/String;Ljava/util/function/Consumer;Ljava/lang/String;Ljava/util/function/Consumer;Ljdk/nashorn/tools/jjs/Console;)V
6: goto 22
7: StackMap locals: java.lang.String jdk.nashorn.tools.jjs.EditObject$SaveHandler
StackMap stack:
ldc Ljdk/internal/editor/spi/BuildInEditorProvider;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
8: astore 5
start local 5 9: aconst_null
astore 6
start local 6 10: aload 5
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 8
goto 14
StackMap locals: jdk.nashorn.tools.jjs.EditObject java.lang.Object java.lang.Object[] java.lang.String jdk.nashorn.tools.jjs.EditObject$SaveHandler java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider top java.util.Iterator
StackMap stack:
11: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.editor.spi.BuildInEditorProvider
astore 7
start local 7 12: aload 6
ifnull 13
aload 7
invokeinterface jdk.internal.editor.spi.BuildInEditorProvider.rank:()I
aload 6
invokeinterface jdk.internal.editor.spi.BuildInEditorProvider.rank:()I
if_icmple 14
13: StackMap locals: jdk.nashorn.tools.jjs.EditObject java.lang.Object java.lang.Object[] java.lang.String jdk.nashorn.tools.jjs.EditObject$SaveHandler java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider jdk.internal.editor.spi.BuildInEditorProvider java.util.Iterator
StackMap stack:
aload 7
astore 6
end local 7 14: StackMap locals: jdk.nashorn.tools.jjs.EditObject java.lang.Object java.lang.Object[] java.lang.String jdk.nashorn.tools.jjs.EditObject$SaveHandler java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
15: aload 6
ifnull 18
16: aload 6
aconst_null
aload 3
aload 4
aload 0
getfield jdk.nashorn.tools.jjs.EditObject.errorHandler:Ljava/util/function/Consumer;
invokeinterface jdk.internal.editor.spi.BuildInEditorProvider.edit:(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V
17: goto 22
18: StackMap locals: jdk.nashorn.tools.jjs.EditObject java.lang.Object java.lang.Object[] java.lang.String jdk.nashorn.tools.jjs.EditObject$SaveHandler java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider
StackMap stack:
aload 0
getfield jdk.nashorn.tools.jjs.EditObject.errorHandler:Ljava/util/function/Consumer;
ldc "jjs.err.no.builtin.editor"
invokestatic jdk.nashorn.tools.jjs.Main.getMessage:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 6 end local 5 19: goto 22
StackMap locals: jdk.nashorn.tools.jjs.EditObject java.lang.Object java.lang.Object[] java.lang.String jdk.nashorn.tools.jjs.EditObject$SaveHandler
StackMap stack: java.lang.RuntimeException
20: pop
21: aload 0
getfield jdk.nashorn.tools.jjs.EditObject.errorHandler:Ljava/util/function/Consumer;
ldc "jjs.err.cant.launch.editor"
invokestatic jdk.nashorn.tools.jjs.Main.getMessage:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
22: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljdk/nashorn/tools/jjs/EditObject;
0 23 1 thiz Ljava/lang/Object;
0 23 2 args [Ljava/lang/Object;
3 23 3 initText Ljava/lang/String;
4 23 4 saveHandler Ljdk/nashorn/tools/jjs/EditObject$SaveHandler;
9 19 5 sl Ljava/util/ServiceLoader<Ljdk/internal/editor/spi/BuildInEditorProvider;>;
10 19 6 provider Ljdk/internal/editor/spi/BuildInEditorProvider;
12 14 7 p Ljdk/internal/editor/spi/BuildInEditorProvider;
Exception table:
from to target type
7 19 20 Class java.lang.RuntimeException
MethodParameters:
Name Flags
thiz final
args 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/EditObject;
}
SourceFile: "EditObject.java"
NestMembers:
jdk.nashorn.tools.jjs.EditObject$SaveHandler
InnerClasses:
SaveHandler = jdk.nashorn.tools.jjs.EditObject$SaveHandler of jdk.nashorn.tools.jjs.EditObject