public class javax.script.SimpleScriptContext implements javax.script.ScriptContext
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.script.SimpleScriptContext
super_class: java.lang.Object
{
protected java.io.Writer writer;
descriptor: Ljava/io/Writer;
flags: (0x0004) ACC_PROTECTED
protected java.io.Writer errorWriter;
descriptor: Ljava/io/Writer;
flags: (0x0004) ACC_PROTECTED
protected java.io.Reader reader;
descriptor: Ljava/io/Reader;
flags: (0x0004) ACC_PROTECTED
protected javax.script.Bindings engineScope;
descriptor: Ljavax/script/Bindings;
flags: (0x0004) ACC_PROTECTED
protected javax.script.Bindings globalScope;
descriptor: Ljavax/script/Bindings;
flags: (0x0004) ACC_PROTECTED
private static java.util.List<java.lang.Integer> scopes;
descriptor: Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/List<Ljava/lang/Integer;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
putstatic javax.script.SimpleScriptContext.scopes:Ljava/util/List;
1: getstatic javax.script.SimpleScriptContext.scopes:Ljava/util/List;
bipush 100
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: getstatic javax.script.SimpleScriptContext.scopes:Ljava/util/List;
sipush 200
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: getstatic javax.script.SimpleScriptContext.scopes:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic javax.script.SimpleScriptContext.scopes:Ljava/util/List;
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new javax.script.SimpleBindings
dup
invokespecial javax.script.SimpleBindings.<init>:()V
putfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
2: aload 0
aconst_null
putfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
3: aload 0
new java.io.InputStreamReader
dup
getstatic java.lang.System.in:Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
putfield javax.script.SimpleScriptContext.reader:Ljava/io/Reader;
4: aload 0
new java.io.PrintWriter
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
putfield javax.script.SimpleScriptContext.writer:Ljava/io/Writer;
5: aload 0
new java.io.PrintWriter
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
putfield javax.script.SimpleScriptContext.errorWriter:Ljava/io/Writer;
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/script/SimpleScriptContext;
public void setBindings(javax.script.Bindings, int);
descriptor: (Ljavax/script/Bindings;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
lookupswitch { // 2
100: 1
200: 5
default: 7
}
1: StackMap locals:
StackMap stack:
aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "Engine scope cannot be null."
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
6: goto 8
7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Invalid scope value."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/script/SimpleScriptContext;
0 9 1 bindings Ljavax/script/Bindings;
0 9 2 scope I
MethodParameters:
Name Flags
bindings
scope
public java.lang.Object getAttribute(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.script.SimpleScriptContext.checkName:(Ljava/lang/String;)V
1: aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.containsKey:(Ljava/lang/Object;)Z
ifeq 3
2: aload 0
aload 1
bipush 100
invokevirtual javax.script.SimpleScriptContext.getAttribute:(Ljava/lang/String;I)Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
ifnull 5
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.containsKey:(Ljava/lang/Object;)Z
ifeq 5
4: aload 0
aload 1
sipush 200
invokevirtual javax.script.SimpleScriptContext.getAttribute:(Ljava/lang/String;I)Ljava/lang/Object;
areturn
5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/script/SimpleScriptContext;
0 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.Object getAttribute(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual javax.script.SimpleScriptContext.checkName:(Ljava/lang/String;)V
1: iload 2
lookupswitch { // 2
100: 2
200: 3
default: 6
}
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
ifnull 5
4: aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
5: StackMap locals:
StackMap stack:
aconst_null
areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Illegal scope value."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/script/SimpleScriptContext;
0 7 1 name Ljava/lang/String;
0 7 2 scope I
MethodParameters:
Name Flags
name
scope
public java.lang.Object removeAttribute(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual javax.script.SimpleScriptContext.checkName:(Ljava/lang/String;)V
1: iload 2
lookupswitch { // 2
100: 2
200: 5
default: 8
}
2: StackMap locals:
StackMap stack:
aload 0
bipush 100
invokevirtual javax.script.SimpleScriptContext.getBindings:(I)Ljavax/script/Bindings;
ifnull 4
3: aload 0
bipush 100
invokevirtual javax.script.SimpleScriptContext.getBindings:(I)Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aconst_null
areturn
5: StackMap locals:
StackMap stack:
aload 0
sipush 200
invokevirtual javax.script.SimpleScriptContext.getBindings:(I)Ljavax/script/Bindings;
ifnull 7
6: aload 0
sipush 200
invokevirtual javax.script.SimpleScriptContext.getBindings:(I)Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
7: StackMap locals:
StackMap stack:
aconst_null
areturn
8: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Illegal scope value."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/script/SimpleScriptContext;
0 9 1 name Ljava/lang/String;
0 9 2 scope I
MethodParameters:
Name Flags
name
scope
public void setAttribute(java.lang.String, java.lang.Object, int);
descriptor: (Ljava/lang/String;Ljava/lang/Object;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual javax.script.SimpleScriptContext.checkName:(Ljava/lang/String;)V
1: iload 3
lookupswitch { // 2
100: 2
200: 4
default: 7
}
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
aload 1
aload 2
invokeinterface javax.script.Bindings.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
ifnull 6
5: aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
aload 1
aload 2
invokeinterface javax.script.Bindings.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals:
StackMap stack:
return
7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Illegal scope value."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/script/SimpleScriptContext;
0 8 1 name Ljava/lang/String;
0 8 2 value Ljava/lang/Object;
0 8 3 scope I
MethodParameters:
Name Flags
name
value
scope
public java.io.Writer getWriter();
descriptor: ()Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.script.SimpleScriptContext.writer:Ljava/io/Writer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/script/SimpleScriptContext;
public java.io.Reader getReader();
descriptor: ()Ljava/io/Reader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.script.SimpleScriptContext.reader:Ljava/io/Reader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/script/SimpleScriptContext;
public void setReader(java.io.Reader);
descriptor: (Ljava/io/Reader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield javax.script.SimpleScriptContext.reader:Ljava/io/Reader;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/script/SimpleScriptContext;
0 2 1 reader Ljava/io/Reader;
MethodParameters:
Name Flags
reader
public void setWriter(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield javax.script.SimpleScriptContext.writer:Ljava/io/Writer;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/script/SimpleScriptContext;
0 2 1 writer Ljava/io/Writer;
MethodParameters:
Name Flags
writer
public java.io.Writer getErrorWriter();
descriptor: ()Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.script.SimpleScriptContext.errorWriter:Ljava/io/Writer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/script/SimpleScriptContext;
public void setErrorWriter(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield javax.script.SimpleScriptContext.errorWriter:Ljava/io/Writer;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/script/SimpleScriptContext;
0 2 1 writer Ljava/io/Writer;
MethodParameters:
Name Flags
writer
public int getAttributesScope(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.script.SimpleScriptContext.checkName:(Ljava/lang/String;)V
1: aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.containsKey:(Ljava/lang/Object;)Z
ifeq 3
2: bipush 100
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
ifnull 5
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.containsKey:(Ljava/lang/Object;)Z
ifeq 5
4: sipush 200
ireturn
5: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/script/SimpleScriptContext;
0 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public javax.script.Bindings getBindings(int);
descriptor: (I)Ljavax/script/Bindings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 100
if_icmpne 2
1: aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
areturn
2: StackMap locals:
StackMap stack:
iload 1
sipush 200
if_icmpne 4
3: aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Illegal scope value."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/script/SimpleScriptContext;
0 5 1 scope I
MethodParameters:
Name Flags
scope
public java.util.List<java.lang.Integer> getScopes();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic javax.script.SimpleScriptContext.scopes:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/script/SimpleScriptContext;
Signature: ()Ljava/util/List<Ljava/lang/Integer;>;
private void checkName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: new java.lang.IllegalArgumentException
dup
ldc "name cannot be empty"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/script/SimpleScriptContext;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
}
SourceFile: "SimpleScriptContext.java"