public class org.springframework.scripting.bsh.BshScriptFactory implements org.springframework.scripting.ScriptFactory, org.springframework.beans.factory.BeanClassLoaderAware
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.scripting.bsh.BshScriptFactory
super_class: java.lang.Object
{
private final java.lang.String scriptSourceLocator;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<?>[] scriptInterfaces;
descriptor: [Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.lang.ClassLoader beanClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.lang.Class<?> scriptClass;
descriptor: Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.lang.Object scriptClassMonitor;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean wasModifiedForTypeCheck;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
putfield org.springframework.scripting.bsh.BshScriptFactory.beanClassLoader:Ljava/lang/ClassLoader;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptClassMonitor:Ljava/lang/Object;
3: aload 0
iconst_0
putfield org.springframework.scripting.bsh.BshScriptFactory.wasModifiedForTypeCheck:Z
4: aload 1
ldc "'scriptSourceLocator' must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
5: aload 0
aload 1
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptSourceLocator:Ljava/lang/String;
6: aload 0
aconst_null
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptInterfaces:[Ljava/lang/Class;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
0 8 1 scriptSourceLocator Ljava/lang/String;
MethodParameters:
Name Flags
scriptSourceLocator
public void <init>(java.lang.String, java.lang.Class<?>[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
putfield org.springframework.scripting.bsh.BshScriptFactory.beanClassLoader:Ljava/lang/ClassLoader;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptClassMonitor:Ljava/lang/Object;
3: aload 0
iconst_0
putfield org.springframework.scripting.bsh.BshScriptFactory.wasModifiedForTypeCheck:Z
4: aload 1
ldc "'scriptSourceLocator' must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
5: aload 0
aload 1
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptSourceLocator:Ljava/lang/String;
6: aload 0
aload 2
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptInterfaces:[Ljava/lang/Class;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
0 8 1 scriptSourceLocator Ljava/lang/String;
0 8 2 scriptInterfaces [Ljava/lang/Class;
Signature: (Ljava/lang/String;[Ljava/lang/Class<*>;)V
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSourceLocator
scriptInterfaces
public void setBeanClassLoader(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)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.bsh.BshScriptFactory.beanClassLoader:Ljava/lang/ClassLoader;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
0 2 1 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
classLoader
public java.lang.String getScriptSourceLocator();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptSourceLocator:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
public java.lang.Class<?>[] getScriptInterfaces();
descriptor: ()[Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptInterfaces:[Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
Signature: ()[Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public boolean requiresConfigInterface();
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 Lorg/springframework/scripting/bsh/BshScriptFactory;
public getScriptedObject(org.springframework.scripting.ScriptSource, java.lang.Class<?>[]);
descriptor: (Lorg/springframework/scripting/ScriptSource;[Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptClassMonitor:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.wasModifiedForTypeCheck:Z
ifeq 2
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
ifnonnull 2
iconst_1
goto 3
StackMap locals: org.springframework.scripting.bsh.BshScriptFactory org.springframework.scripting.ScriptSource java.lang.Class[] top java.lang.Object
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 5
start local 5 4: aload 0
iconst_0
putfield org.springframework.scripting.bsh.BshScriptFactory.wasModifiedForTypeCheck:Z
5: aload 1
invokeinterface org.springframework.scripting.ScriptSource.isModified:()Z
ifne 6
iload 5
ifeq 13
6: StackMap locals: int
StackMap stack:
aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
aload 2
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.beanClassLoader:Ljava/lang/ClassLoader;
7: invokestatic org.springframework.scripting.bsh.BshScriptUtils.evaluateBshScript:(Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
astore 6
start local 6 8: aload 6
instanceof java.lang.Class
ifeq 11
9: aload 0
aload 6
checkcast java.lang.Class
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
10: goto 13
11: StackMap locals: java.lang.Object
StackMap stack:
aload 6
aload 4
monitorexit
12: areturn
end local 6 13: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
astore 3
end local 5 start local 3 14: aload 4
monitorexit
15: goto 21
end local 3 StackMap locals: org.springframework.scripting.bsh.BshScriptFactory org.springframework.scripting.ScriptSource java.lang.Class[] top java.lang.Object
StackMap stack: java.lang.Throwable
16: aload 4
monitorexit
17: athrow
18: StackMap locals: org.springframework.scripting.bsh.BshScriptFactory org.springframework.scripting.ScriptSource java.lang.Class[]
StackMap stack: bsh.EvalError
astore 4
start local 4 19: aload 0
aconst_null
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
20: new org.springframework.scripting.ScriptCompilationException
dup
aload 1
aload 4
invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/Throwable;)V
athrow
end local 4 start local 3 21: StackMap locals: java.lang.Class
StackMap stack:
aload 3
ifnull 28
22: aload 3
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;
23: areturn
24: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
start local 4 25: new org.springframework.scripting.ScriptCompilationException
dup
26: aload 1
new java.lang.StringBuilder
dup
ldc "Could not instantiate script class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
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 4
27: invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 28: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
aload 2
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.beanClassLoader:Ljava/lang/ClassLoader;
29: invokestatic org.springframework.scripting.bsh.BshScriptUtils.createBshObject:(Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/lang/Object;
30: areturn
31: StackMap locals:
StackMap stack: bsh.EvalError
astore 4
start local 4 32: new org.springframework.scripting.ScriptCompilationException
dup
aload 1
aload 4
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 33 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
0 33 1 scriptSource Lorg/springframework/scripting/ScriptSource;
0 33 2 actualInterfaces [Ljava/lang/Class;
14 16 3 clazz Ljava/lang/Class<*>;
21 33 3 clazz Ljava/lang/Class<*>;
4 14 5 requiresScriptEvaluation Z
8 13 6 result Ljava/lang/Object;
19 21 4 ex Lbsh/EvalError;
25 28 4 ex Ljava/lang/Throwable;
32 33 4 ex Lbsh/EvalError;
Exception table:
from to target type
1 12 16 any
13 15 16 any
16 17 16 any
0 12 18 Class bsh.EvalError
13 18 18 Class bsh.EvalError
22 23 24 Class java.lang.Throwable
28 30 31 Class bsh.EvalError
Exceptions:
throws java.io.IOException, org.springframework.scripting.ScriptCompilationException
Signature: (Lorg/springframework/scripting/ScriptSource;[Ljava/lang/Class<*>;)Ljava/lang/Object;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
actualInterfaces
public java.lang.Class<?> getScriptedObjectType(org.springframework.scripting.ScriptSource);
descriptor: (Lorg/springframework/scripting/ScriptSource;)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptClassMonitor:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 1
invokeinterface org.springframework.scripting.ScriptSource.isModified:()Z
ifeq 6
2: aload 0
iconst_1
putfield org.springframework.scripting.bsh.BshScriptFactory.wasModifiedForTypeCheck:Z
3: aload 0
4: aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.beanClassLoader:Ljava/lang/ClassLoader;
5: invokestatic org.springframework.scripting.bsh.BshScriptUtils.determineBshObjectType:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
7: aload 2
monitorexit
8: areturn
9: StackMap locals:
StackMap stack: bsh.EvalError
astore 3
start local 3 10: aload 0
aconst_null
putfield org.springframework.scripting.bsh.BshScriptFactory.scriptClass:Ljava/lang/Class;
11: new org.springframework.scripting.ScriptCompilationException
dup
aload 1
aload 3
invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/Throwable;)V
athrow
end local 3 12: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
13: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
0 14 1 scriptSource Lorg/springframework/scripting/ScriptSource;
10 12 3 ex Lbsh/EvalError;
Exception table:
from to target type
1 7 9 Class bsh.EvalError
1 8 12 any
9 13 12 any
Exceptions:
throws java.io.IOException, org.springframework.scripting.ScriptCompilationException
Signature: (Lorg/springframework/scripting/ScriptSource;)Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
public boolean requiresScriptedObjectRefresh(org.springframework.scripting.ScriptSource);
descriptor: (Lorg/springframework/scripting/ScriptSource;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptClassMonitor:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 1
invokeinterface org.springframework.scripting.ScriptSource.isModified:()Z
ifne 2
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.wasModifiedForTypeCheck:Z
ifne 2
iconst_0
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: aload 2
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
6: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
0 7 1 scriptSource Lorg/springframework/scripting/ScriptSource;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
scriptSource
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "BshScriptFactory: script source locator ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.scripting.bsh.BshScriptFactory.scriptSourceLocator:Ljava/lang/String;
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;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/bsh/BshScriptFactory;
}
SourceFile: "BshScriptFactory.java"