public abstract class org.springframework.scripting.bsh.BshScriptUtils
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.scripting.bsh.BshScriptUtils
super_class: java.lang.Object
{
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/bsh/BshScriptUtils;
public static java.lang.Object createBshObject(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
invokestatic org.springframework.scripting.bsh.BshScriptUtils.createBshObject:(Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 scriptSource Ljava/lang/String;
Exceptions:
throws bsh.EvalError
MethodParameters:
Name Flags
scriptSource
public static createBshObject(java.lang.String, java.lang.Class<?>[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
invokestatic org.springframework.scripting.bsh.BshScriptUtils.createBshObject:(Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 scriptSource Ljava/lang/String;
0 1 1 scriptInterfaces [Ljava/lang/Class;
Exceptions:
throws bsh.EvalError
Signature: (Ljava/lang/String;[Ljava/lang/Class<*>;)Ljava/lang/Object;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
scriptInterfaces
public static createBshObject(java.lang.String, java.lang.Class<?>[], java.lang.ClassLoader);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.springframework.scripting.bsh.BshScriptUtils.evaluateBshScript:(Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
astore 3
start local 3 1: aload 3
instanceof java.lang.Class
ifeq 7
2: aload 3
checkcast java.lang.Class
astore 4
start local 4 3: aload 4
iconst_0
anewarray java.lang.Class
invokestatic org.springframework.util.ReflectionUtils.accessibleConstructor:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
4: areturn
5: StackMap locals: java.lang.String java.lang.Class[] java.lang.ClassLoader java.lang.Object java.lang.Class
StackMap stack: java.lang.Throwable
astore 5
start local 5 6: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not instantiate script class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 7: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 scriptSource Ljava/lang/String;
0 8 1 scriptInterfaces [Ljava/lang/Class;
0 8 2 classLoader Ljava/lang/ClassLoader;
1 8 3 result Ljava/lang/Object;
3 7 4 clazz Ljava/lang/Class<*>;
6 7 5 ex Ljava/lang/Throwable;
Exception table:
from to target type
3 4 5 Class java.lang.Throwable
Exceptions:
throws bsh.EvalError
Signature: (Ljava/lang/String;[Ljava/lang/Class<*>;Ljava/lang/ClassLoader;)Ljava/lang/Object;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
scriptInterfaces
classLoader
static java.lang.Class<?> determineBshObjectType(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ldc "Script source must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
1: new bsh.Interpreter
dup
invokespecial bsh.Interpreter.<init>:()V
astore 2
start local 2 2: aload 1
ifnull 4
3: aload 2
aload 1
invokevirtual bsh.Interpreter.setClassLoader:(Ljava/lang/ClassLoader;)V
4: StackMap locals: bsh.Interpreter
StackMap stack:
aload 2
aload 0
invokevirtual bsh.Interpreter.eval:(Ljava/lang/String;)Ljava/lang/Object;
astore 3
start local 3 5: aload 3
instanceof java.lang.Class
ifeq 7
6: aload 3
checkcast java.lang.Class
areturn
7: StackMap locals: java.lang.Object
StackMap stack:
aload 3
ifnull 9
8: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
areturn
9: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 scriptSource Ljava/lang/String;
0 10 1 classLoader Ljava/lang/ClassLoader;
2 10 2 interpreter Lbsh/Interpreter;
5 10 3 result Ljava/lang/Object;
Exceptions:
throws bsh.EvalError
Signature: (Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
classLoader
static evaluateBshScript(java.lang.String, java.lang.Class<?>[], java.lang.ClassLoader);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "Script source must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
1: new bsh.Interpreter
dup
invokespecial bsh.Interpreter.<init>:()V
astore 3
start local 3 2: aload 3
aload 2
invokevirtual bsh.Interpreter.setClassLoader:(Ljava/lang/ClassLoader;)V
3: aload 3
aload 0
invokevirtual bsh.Interpreter.eval:(Ljava/lang/String;)Ljava/lang/Object;
astore 4
start local 4 4: aload 4
ifnull 6
5: aload 4
areturn
6: StackMap locals: bsh.Interpreter java.lang.Object
StackMap stack:
aload 1
invokestatic org.springframework.util.ObjectUtils.isEmpty:([Ljava/lang/Object;)Z
ifeq 10
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Given script requires a script proxy: At least one script interface is required.\nScript: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 3
ldc "return this"
invokevirtual bsh.Interpreter.eval:(Ljava/lang/String;)Ljava/lang/Object;
checkcast bsh.XThis
astore 5
start local 5 11: aload 2
aload 1
new org.springframework.scripting.bsh.BshScriptUtils$BshObjectInvocationHandler
dup
aload 5
invokespecial org.springframework.scripting.bsh.BshScriptUtils$BshObjectInvocationHandler.<init>:(Lbsh/XThis;)V
invokestatic java.lang.reflect.Proxy.newProxyInstance:(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 scriptSource Ljava/lang/String;
0 12 1 scriptInterfaces [Ljava/lang/Class;
0 12 2 classLoader Ljava/lang/ClassLoader;
2 12 3 interpreter Lbsh/Interpreter;
4 12 4 result Ljava/lang/Object;
11 12 5 xt Lbsh/XThis;
Exceptions:
throws bsh.EvalError
Signature: (Ljava/lang/String;[Ljava/lang/Class<*>;Ljava/lang/ClassLoader;)Ljava/lang/Object;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
scriptInterfaces
classLoader
}
SourceFile: "BshScriptUtils.java"
NestMembers:
org.springframework.scripting.bsh.BshScriptUtils$BshExecutionException org.springframework.scripting.bsh.BshScriptUtils$BshObjectInvocationHandler
InnerClasses:
public final BshExecutionException = org.springframework.scripting.bsh.BshScriptUtils$BshExecutionException of org.springframework.scripting.bsh.BshScriptUtils
private BshObjectInvocationHandler = org.springframework.scripting.bsh.BshScriptUtils$BshObjectInvocationHandler of org.springframework.scripting.bsh.BshScriptUtils