public class org.springframework.scripting.support.StandardScriptEvaluator implements org.springframework.scripting.ScriptEvaluator, org.springframework.beans.factory.BeanClassLoaderAware
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.scripting.support.StandardScriptEvaluator
super_class: java.lang.Object
{
private java.lang.String engineName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private volatile javax.script.Bindings globalBindings;
descriptor: Ljavax/script/Bindings;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private volatile javax.script.ScriptEngineManager scriptEngineManager;
descriptor: Ljavax/script/ScriptEngineManager;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
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
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new javax.script.ScriptEngineManager
dup
aload 1
invokespecial javax.script.ScriptEngineManager.<init>:(Ljava/lang/ClassLoader;)V
putfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 3 1 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
classLoader
public void <init>(javax.script.ScriptEngineManager);
descriptor: (Ljavax/script/ScriptEngineManager;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 3 1 scriptEngineManager Ljavax/script/ScriptEngineManager;
MethodParameters:
Name Flags
scriptEngineManager
public void setLanguage(java.lang.String);
descriptor: (Ljava/lang/String;)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 org.springframework.scripting.support.StandardScriptEvaluator.engineName:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 2 1 language Ljava/lang/String;
MethodParameters:
Name Flags
language
public void setEngineName(java.lang.String);
descriptor: (Ljava/lang/String;)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 org.springframework.scripting.support.StandardScriptEvaluator.engineName:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 2 1 engineName Ljava/lang/String;
MethodParameters:
Name Flags
engineName
public void setGlobalBindings(java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.scripting.support.StandardScriptUtils.getBindings:(Ljava/util/Map;)Ljavax/script/Bindings;
astore 2
start local 2 1: aload 0
aload 2
putfield org.springframework.scripting.support.StandardScriptEvaluator.globalBindings:Ljavax/script/Bindings;
2: aload 0
getfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
aload 2
invokevirtual javax.script.ScriptEngineManager.setBindings:(Ljavax/script/Bindings;)V
5: StackMap locals: javax.script.Bindings javax.script.ScriptEngineManager
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 6 1 globalBindings Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
1 6 2 bindings Ljavax/script/Bindings;
3 6 3 scriptEngineManager Ljavax/script/ScriptEngineManager;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
globalBindings
public void setBeanClassLoader(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
astore 2
start local 2 1: aload 2
ifnonnull 7
2: new javax.script.ScriptEngineManager
dup
aload 1
invokespecial javax.script.ScriptEngineManager.<init>:(Ljava/lang/ClassLoader;)V
astore 2
3: aload 0
aload 2
putfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
4: aload 0
getfield org.springframework.scripting.support.StandardScriptEvaluator.globalBindings:Ljavax/script/Bindings;
astore 3
start local 3 5: aload 3
ifnull 7
6: aload 2
aload 3
invokevirtual javax.script.ScriptEngineManager.setBindings:(Ljavax/script/Bindings;)V
end local 3 7: StackMap locals: javax.script.ScriptEngineManager
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 8 1 classLoader Ljava/lang/ClassLoader;
1 8 2 scriptEngineManager Ljavax/script/ScriptEngineManager;
5 7 3 bindings Ljavax/script/Bindings;
MethodParameters:
Name Flags
classLoader
public java.lang.Object evaluate(org.springframework.scripting.ScriptSource);
descriptor: (Lorg/springframework/scripting/ScriptSource;)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
aconst_null
invokevirtual org.springframework.scripting.support.StandardScriptEvaluator.evaluate:(Lorg/springframework/scripting/ScriptSource;Ljava/util/Map;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 1 1 script Lorg/springframework/scripting/ScriptSource;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
script
public evaluate(org.springframework.scripting.ScriptSource, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Lorg/springframework/scripting/ScriptSource;Ljava/util/Map;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.springframework.scripting.support.StandardScriptEvaluator.getScriptEngine:(Lorg/springframework/scripting/ScriptSource;)Ljavax/script/ScriptEngine;
astore 3
start local 3 1: aload 2
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Map;)Z
ifeq 4
2: aload 3
aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
invokeinterface javax.script.ScriptEngine.eval:(Ljava/lang/String;)Ljava/lang/Object;
3: areturn
4: StackMap locals: javax.script.ScriptEngine
StackMap stack:
aload 2
invokestatic org.springframework.scripting.support.StandardScriptUtils.getBindings:(Ljava/util/Map;)Ljavax/script/Bindings;
astore 4
start local 4 5: aload 3
aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
aload 4
invokeinterface javax.script.ScriptEngine.eval:(Ljava/lang/String;Ljavax/script/Bindings;)Ljava/lang/Object;
6: areturn
end local 4 7: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 8: new org.springframework.scripting.ScriptCompilationException
dup
aload 1
ldc "Cannot access script for ScriptEngine"
aload 4
invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 9: StackMap locals:
StackMap stack: javax.script.ScriptException
astore 4
start local 4 10: new org.springframework.scripting.ScriptCompilationException
dup
aload 1
new org.springframework.scripting.support.StandardScriptEvalException
dup
aload 4
invokespecial org.springframework.scripting.support.StandardScriptEvalException.<init>:(Ljavax/script/ScriptException;)V
invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 11 1 script Lorg/springframework/scripting/ScriptSource;
0 11 2 argumentBindings Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
1 11 3 engine Ljavax/script/ScriptEngine;
5 7 4 bindings Ljavax/script/Bindings;
8 9 4 ex Ljava/io/IOException;
10 11 4 ex Ljavax/script/ScriptException;
Exception table:
from to target type
1 3 7 Class java.io.IOException
4 6 7 Class java.io.IOException
1 3 9 Class javax.script.ScriptException
4 6 9 Class javax.script.ScriptException
Signature: (Lorg/springframework/scripting/ScriptSource;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)Ljava/lang/Object;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
script
argumentBindings
protected javax.script.ScriptEngine getScriptEngine(org.springframework.scripting.ScriptSource);
descriptor: (Lorg/springframework/scripting/ScriptSource;)Ljavax/script/ScriptEngine;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new javax.script.ScriptEngineManager
dup
invokespecial javax.script.ScriptEngineManager.<init>:()V
astore 2
3: aload 0
aload 2
putfield org.springframework.scripting.support.StandardScriptEvaluator.scriptEngineManager:Ljavax/script/ScriptEngineManager;
4: StackMap locals: javax.script.ScriptEngineManager
StackMap stack:
aload 0
getfield org.springframework.scripting.support.StandardScriptEvaluator.engineName:Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 6
5: aload 2
aload 0
getfield org.springframework.scripting.support.StandardScriptEvaluator.engineName:Ljava/lang/String;
invokestatic org.springframework.scripting.support.StandardScriptUtils.retrieveEngineByName:(Ljavax/script/ScriptEngineManager;Ljava/lang/String;)Ljavax/script/ScriptEngine;
areturn
6: StackMap locals:
StackMap stack:
aload 1
instanceof org.springframework.scripting.support.ResourceScriptSource
ifeq 17
7: aload 1
checkcast org.springframework.scripting.support.ResourceScriptSource
invokevirtual org.springframework.scripting.support.ResourceScriptSource.getResource:()Lorg/springframework/core/io/Resource;
astore 3
start local 3 8: aload 3
invokeinterface org.springframework.core.io.Resource.getFilename:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.getFilenameExtension:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 9: aload 4
ifnonnull 13
10: new java.lang.IllegalStateException
dup
11: new java.lang.StringBuilder
dup
ldc "No script language defined, and no file extension defined for resource: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: org.springframework.core.io.Resource java.lang.String
StackMap stack:
aload 2
aload 4
invokevirtual javax.script.ScriptEngineManager.getEngineByExtension:(Ljava/lang/String;)Ljavax/script/ScriptEngine;
astore 5
start local 5 14: aload 5
ifnonnull 16
15: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "No matching engine found for file extension '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals: javax.script.ScriptEngine
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 17: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
18: new java.lang.StringBuilder
dup
ldc "No script language defined, and no resource associated with script: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/springframework/scripting/support/StandardScriptEvaluator;
0 20 1 script Lorg/springframework/scripting/ScriptSource;
1 20 2 scriptEngineManager Ljavax/script/ScriptEngineManager;
8 17 3 resource Lorg/springframework/core/io/Resource;
9 17 4 extension Ljava/lang/String;
14 17 5 engine Ljavax/script/ScriptEngine;
MethodParameters:
Name Flags
script
}
SourceFile: "StandardScriptEvaluator.java"