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 javax.script.Bindings globalScope;
descriptor: Ljavax/script/Bindings;
flags: (0x0004) ACC_PROTECTED
protected javax.script.Bindings engineScope;
descriptor: Ljavax/script/Bindings;
flags: (0x0004) ACC_PROTECTED
protected java.io.Reader reader;
descriptor: Ljava/io/Reader;
flags: (0x0004) ACC_PROTECTED
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
private static final java.util.List SCOPES;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: iconst_2
anewarray java.lang.Integer
dup
iconst_0
new java.lang.Integer
dup
bipush 100
invokespecial java.lang.Integer.<init>:(I)V
aastore
dup
iconst_1
new java.lang.Integer
dup
sipush 200
invokespecial java.lang.Integer.<init>:(I)V
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
1: invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
2: putstatic javax.script.SimpleScriptContext.SCOPES:Ljava/util/List;
3: 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
aconst_null
putfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
2: aload 0
new javax.script.SimpleBindings
dup
invokespecial javax.script.SimpleBindings.<init>:()V
putfield javax.script.SimpleScriptContext.engineScope: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;
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
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "name must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "name must not be an empty string"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/script/SimpleScriptContext;
0 5 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.Object getAttribute(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 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.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
areturn
4: StackMap locals: java.lang.Object
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
invokeinterface javax.script.Bindings.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aconst_null
areturn
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;
2 7 2 engineObject Ljava/lang/Object;
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 4
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.get:(Ljava/lang/Object;)Ljava/lang/Object;
goto 5
StackMap locals:
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
5: areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid scope"
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 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
lookupswitch { // 2
100: 1
200: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
areturn
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid scope"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/script/SimpleScriptContext;
0 4 1 scope I
MethodParameters:
Name Flags
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: 3
default: 6
}
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.engineScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
ifnull 4
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
aload 1
invokeinterface javax.script.Bindings.remove:(Ljava/lang/Object;)Ljava/lang/Object;
goto 5
StackMap locals:
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
5: areturn
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid scope"
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 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: goto 8
4: StackMap locals:
StackMap stack:
aload 0
getfield javax.script.SimpleScriptContext.globalScope:Ljavax/script/Bindings;
ifnull 8
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: goto 8
7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "invalid scope"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 3 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 value Ljava/lang/Object;
0 9 3 scope I
MethodParameters:
Name Flags
name
value
scope
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 "binding is null for ENGINE_SCOPE scope"
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"
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.util.List 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;
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 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 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
}
SourceFile: "SimpleScriptContext.java"