public class org.springframework.scripting.groovy.GroovyScriptFactory implements org.springframework.scripting.ScriptFactory, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanClassLoaderAware
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.scripting.groovy.GroovyScriptFactory
super_class: java.lang.Object
{
private final java.lang.String scriptSourceLocator;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.springframework.scripting.groovy.GroovyObjectCustomizer groovyObjectCustomizer;
descriptor: Lorg/springframework/scripting/groovy/GroovyObjectCustomizer;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration;
descriptor: Lorg/codehaus/groovy/control/CompilerConfiguration;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private groovy.lang.GroovyClassLoader groovyClassLoader;
descriptor: Lgroovy/lang/GroovyClassLoader;
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 java.lang.Class<?> scriptResultClass;
descriptor: Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.springframework.scripting.groovy.GroovyScriptFactory$CachedResultHolder cachedResult;
descriptor: Lorg/springframework/scripting/groovy/GroovyScriptFactory$CachedResultHolder;
flags: (0x0002) ACC_PRIVATE
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
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClassMonitor:Ljava/lang/Object;
2: aload 0
iconst_0
putfield org.springframework.scripting.groovy.GroovyScriptFactory.wasModifiedForTypeCheck:Z
3: aload 1
ldc "'scriptSourceLocator' must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
4: aload 0
aload 1
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptSourceLocator:Ljava/lang/String;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 6 1 scriptSourceLocator Ljava/lang/String;
MethodParameters:
Name Flags
scriptSourceLocator
public void <init>(java.lang.String, org.springframework.scripting.groovy.GroovyObjectCustomizer);
descriptor: (Ljava/lang/String;Lorg/springframework/scripting/groovy/GroovyObjectCustomizer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial org.springframework.scripting.groovy.GroovyScriptFactory.<init>:(Ljava/lang/String;)V
1: aload 0
aload 2
putfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyObjectCustomizer:Lorg/springframework/scripting/groovy/GroovyObjectCustomizer;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 3 1 scriptSourceLocator Ljava/lang/String;
0 3 2 groovyObjectCustomizer Lorg/springframework/scripting/groovy/GroovyObjectCustomizer;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSourceLocator
groovyObjectCustomizer
public void <init>(java.lang.String, org.codehaus.groovy.control.CompilerConfiguration);
descriptor: (Ljava/lang/String;Lorg/codehaus/groovy/control/CompilerConfiguration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial org.springframework.scripting.groovy.GroovyScriptFactory.<init>:(Ljava/lang/String;)V
1: aload 0
aload 2
putfield org.springframework.scripting.groovy.GroovyScriptFactory.compilerConfiguration:Lorg/codehaus/groovy/control/CompilerConfiguration;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 3 1 scriptSourceLocator Ljava/lang/String;
0 3 2 compilerConfiguration Lorg/codehaus/groovy/control/CompilerConfiguration;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSourceLocator
compilerConfiguration
public void <init>(java.lang.String, org.codehaus.groovy.control.customizers.CompilationCustomizer[]);
descriptor: (Ljava/lang/String;[Lorg/codehaus/groovy/control/customizers/CompilationCustomizer;)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
aload 1
invokespecial org.springframework.scripting.groovy.GroovyScriptFactory.<init>:(Ljava/lang/String;)V
1: aload 2
invokestatic org.springframework.util.ObjectUtils.isEmpty:([Ljava/lang/Object;)Z
ifne 4
2: aload 0
new org.codehaus.groovy.control.CompilerConfiguration
dup
invokespecial org.codehaus.groovy.control.CompilerConfiguration.<init>:()V
putfield org.springframework.scripting.groovy.GroovyScriptFactory.compilerConfiguration:Lorg/codehaus/groovy/control/CompilerConfiguration;
3: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.compilerConfiguration:Lorg/codehaus/groovy/control/CompilerConfiguration;
aload 2
invokevirtual org.codehaus.groovy.control.CompilerConfiguration.addCompilationCustomizers:([Lorg/codehaus/groovy/control/customizers/CompilationCustomizer;)Lorg/codehaus/groovy/control/CompilerConfiguration;
pop
4: StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory java.lang.String org.codehaus.groovy.control.customizers.CompilationCustomizer[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 5 1 scriptSourceLocator Ljava/lang/String;
0 5 2 compilationCustomizers [Lorg/codehaus/groovy/control/customizers/CompilationCustomizer;
MethodParameters:
Name Flags
scriptSourceLocator
compilationCustomizers
public void setBeanFactory(org.springframework.beans.factory.BeanFactory);
descriptor: (Lorg/springframework/beans/factory/BeanFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.springframework.beans.factory.config.ConfigurableListableBeanFactory
ifeq 2
1: aload 1
checkcast org.springframework.beans.factory.config.ConfigurableListableBeanFactory
ldc Lgroovy/lang/MetaClass;
invokeinterface org.springframework.beans.factory.config.ConfigurableListableBeanFactory.ignoreDependencyType:(Ljava/lang/Class;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 3 1 beanFactory Lorg/springframework/beans/factory/BeanFactory;
MethodParameters:
Name Flags
beanFactory
public void setBeanClassLoader(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.buildGroovyClassLoader:(Ljava/lang/ClassLoader;)Lgroovy/lang/GroovyClassLoader;
putfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyClassLoader:Lgroovy/lang/GroovyClassLoader;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 2 1 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
classLoader
public groovy.lang.GroovyClassLoader getGroovyClassLoader();
descriptor: ()Lgroovy/lang/GroovyClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClassMonitor:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyClassLoader:Lgroovy/lang/GroovyClassLoader;
ifnonnull 3
2: aload 0
aload 0
invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.buildGroovyClassLoader:(Ljava/lang/ClassLoader;)Lgroovy/lang/GroovyClassLoader;
putfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyClassLoader:Lgroovy/lang/GroovyClassLoader;
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyClassLoader:Lgroovy/lang/GroovyClassLoader;
aload 1
monitorexit
4: areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
Exception table:
from to target type
1 4 5 any
5 6 5 any
protected groovy.lang.GroovyClassLoader buildGroovyClassLoader(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Lgroovy/lang/GroovyClassLoader;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.compilerConfiguration:Lorg/codehaus/groovy/control/CompilerConfiguration;
ifnull 2
1: new groovy.lang.GroovyClassLoader
dup
aload 1
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.compilerConfiguration:Lorg/codehaus/groovy/control/CompilerConfiguration;
invokespecial groovy.lang.GroovyClassLoader.<init>:(Ljava/lang/ClassLoader;Lorg/codehaus/groovy/control/CompilerConfiguration;)V
goto 3
StackMap locals:
StackMap stack:
2: new groovy.lang.GroovyClassLoader
dup
aload 1
invokespecial groovy.lang.GroovyClassLoader.<init>:(Ljava/lang/ClassLoader;)V
3: StackMap locals:
StackMap stack: groovy.lang.GroovyClassLoader
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 4 1 classLoader Ljava/lang/ClassLoader;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
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.groovy.GroovyScriptFactory.scriptSourceLocator:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
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: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
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_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
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=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClassMonitor:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
iconst_0
putfield org.springframework.scripting.groovy.GroovyScriptFactory.wasModifiedForTypeCheck:Z
2: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.cachedResult:Lorg/springframework/scripting/groovy/GroovyScriptFactory$CachedResultHolder;
ifnull 8
3: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.cachedResult:Lorg/springframework/scripting/groovy/GroovyScriptFactory$CachedResultHolder;
getfield org.springframework.scripting.groovy.GroovyScriptFactory$CachedResultHolder.object:Ljava/lang/Object;
astore 5
start local 5 4: aload 0
aconst_null
putfield org.springframework.scripting.groovy.GroovyScriptFactory.cachedResult:Lorg/springframework/scripting/groovy/GroovyScriptFactory$CachedResultHolder;
5: aload 5
6: aload 3
monitorexit
7: areturn
end local 5 8: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
ifnull 9
aload 1
invokeinterface org.springframework.scripting.ScriptSource.isModified:()Z
ifeq 21
9: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.getGroovyClassLoader:()Lgroovy/lang/GroovyClassLoader;
10: aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
aload 1
invokeinterface org.springframework.scripting.ScriptSource.suggestedClassName:()Ljava/lang/String;
11: invokevirtual groovy.lang.GroovyClassLoader.parseClass:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Class;
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
12: ldc Lgroovy/lang/Script;
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 20
13: aload 0
aload 1
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.executeScript:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/Class;)Ljava/lang/Object;
astore 5
start local 5 14: aload 0
aload 5
ifnull 15
aload 5
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
goto 16
StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory org.springframework.scripting.ScriptSource java.lang.Class[] java.lang.Object top java.lang.Object
StackMap stack: org.springframework.scripting.groovy.GroovyScriptFactory
15: aconst_null
StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory org.springframework.scripting.ScriptSource java.lang.Class[] java.lang.Object top java.lang.Object
StackMap stack: org.springframework.scripting.groovy.GroovyScriptFactory java.lang.Class
16: putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
17: aload 5
18: aload 3
monitorexit
19: areturn
end local 5 20: StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory org.springframework.scripting.ScriptSource java.lang.Class[] java.lang.Object
StackMap stack:
aload 0
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
21: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
astore 4
start local 4 22: aload 0
aload 1
aload 4
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.executeScript:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/Class;)Ljava/lang/Object;
23: aload 3
monitorexit
24: areturn
end local 4 25: StackMap locals:
StackMap stack: org.codehaus.groovy.control.CompilationFailedException
astore 4
start local 4 26: aload 0
aconst_null
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
27: aload 0
aconst_null
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
28: 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 29: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
30: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 31 1 scriptSource Lorg/springframework/scripting/ScriptSource;
0 31 2 actualInterfaces [Ljava/lang/Class;
22 25 4 scriptClassToExecute Ljava/lang/Class<*>;
4 8 5 result Ljava/lang/Object;
14 20 5 result Ljava/lang/Object;
26 29 4 ex Lorg/codehaus/groovy/control/CompilationFailedException;
Exception table:
from to target type
1 6 25 Class org.codehaus.groovy.control.CompilationFailedException
8 18 25 Class org.codehaus.groovy.control.CompilationFailedException
20 23 25 Class org.codehaus.groovy.control.CompilationFailedException
1 7 29 any
8 19 29 any
20 24 29 any
25 30 29 any
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.groovy.GroovyScriptFactory.scriptClassMonitor:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
ifnull 2
aload 1
invokeinterface org.springframework.scripting.ScriptSource.isModified:()Z
ifeq 14
2: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield org.springframework.scripting.groovy.GroovyScriptFactory.wasModifiedForTypeCheck:Z
3: aload 0
aload 0
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.getGroovyClassLoader:()Lgroovy/lang/GroovyClassLoader;
4: aload 1
invokeinterface org.springframework.scripting.ScriptSource.getScriptAsString:()Ljava/lang/String;
aload 1
invokeinterface org.springframework.scripting.ScriptSource.suggestedClassName:()Ljava/lang/String;
5: invokevirtual groovy.lang.GroovyClassLoader.parseClass:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Class;
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
6: ldc Lgroovy/lang/Script;
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
7: aload 0
aload 1
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
invokevirtual org.springframework.scripting.groovy.GroovyScriptFactory.executeScript:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/Class;)Ljava/lang/Object;
astore 3
start local 3 8: aload 0
aload 3
ifnull 9
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
goto 10
StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory org.springframework.scripting.ScriptSource java.lang.Object java.lang.Object
StackMap stack: org.springframework.scripting.groovy.GroovyScriptFactory
9: aconst_null
StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory org.springframework.scripting.ScriptSource java.lang.Object java.lang.Object
StackMap stack: org.springframework.scripting.groovy.GroovyScriptFactory java.lang.Class
10: putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
11: aload 0
new org.springframework.scripting.groovy.GroovyScriptFactory$CachedResultHolder
dup
aload 3
invokespecial org.springframework.scripting.groovy.GroovyScriptFactory$CachedResultHolder.<init>:(Ljava/lang/Object;)V
putfield org.springframework.scripting.groovy.GroovyScriptFactory.cachedResult:Lorg/springframework/scripting/groovy/GroovyScriptFactory$CachedResultHolder;
end local 3 12: goto 14
13: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
14: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
15: aload 2
monitorexit
16: areturn
17: StackMap locals:
StackMap stack: org.codehaus.groovy.control.CompilationFailedException
astore 3
start local 3 18: aload 0
aconst_null
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptClass:Ljava/lang/Class;
19: aload 0
aconst_null
putfield org.springframework.scripting.groovy.GroovyScriptFactory.scriptResultClass:Ljava/lang/Class;
20: aload 0
aconst_null
putfield org.springframework.scripting.groovy.GroovyScriptFactory.cachedResult:Lorg/springframework/scripting/groovy/GroovyScriptFactory$CachedResultHolder;
21: 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 22: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
23: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 24 1 scriptSource Lorg/springframework/scripting/ScriptSource;
8 12 3 result Ljava/lang/Object;
18 22 3 ex Lorg/codehaus/groovy/control/CompilationFailedException;
Exception table:
from to target type
1 15 17 Class org.codehaus.groovy.control.CompilationFailedException
1 16 22 any
17 23 22 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.groovy.GroovyScriptFactory.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.groovy.GroovyScriptFactory.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/groovy/GroovyScriptFactory;
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
protected executeScript(org.springframework.scripting.ScriptSource, java.lang.Class<?>);
descriptor: (Lorg/springframework/scripting/ScriptSource;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
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;
checkcast groovy.lang.GroovyObject
astore 3
start local 3 1: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyObjectCustomizer:Lorg/springframework/scripting/groovy/GroovyObjectCustomizer;
ifnull 3
2: aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.groovyObjectCustomizer:Lorg/springframework/scripting/groovy/GroovyObjectCustomizer;
aload 3
invokeinterface org.springframework.scripting.groovy.GroovyObjectCustomizer.customize:(Lgroovy/lang/GroovyObject;)V
3: StackMap locals: groovy.lang.GroovyObject
StackMap stack:
aload 3
instanceof groovy.lang.Script
ifeq 6
4: aload 3
checkcast groovy.lang.Script
invokevirtual groovy.lang.Script.run:()Ljava/lang/Object;
5: areturn
6: StackMap locals:
StackMap stack:
aload 3
7: areturn
end local 3 8: StackMap locals: org.springframework.scripting.groovy.GroovyScriptFactory org.springframework.scripting.ScriptSource java.lang.Class
StackMap stack: java.lang.NoSuchMethodException
astore 3
start local 3 9: new org.springframework.scripting.ScriptCompilationException
dup
10: new java.lang.StringBuilder
dup
ldc "No default constructor on Groovy script class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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 3
11: invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 12: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 3
start local 3 13: new org.springframework.scripting.ScriptCompilationException
dup
14: aload 1
new java.lang.StringBuilder
dup
ldc "Unable to instantiate Groovy script class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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 3
15: invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 16: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 3
start local 3 17: new org.springframework.scripting.ScriptCompilationException
dup
18: aload 1
new java.lang.StringBuilder
dup
ldc "Could not access Groovy script constructor: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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 3
19: invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Lorg/springframework/scripting/ScriptSource;Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 20: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 3
start local 3 21: new org.springframework.scripting.ScriptCompilationException
dup
22: new java.lang.StringBuilder
dup
ldc "Failed to invoke Groovy script constructor: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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 3
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
23: invokespecial org.springframework.scripting.ScriptCompilationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/scripting/groovy/GroovyScriptFactory;
0 24 1 scriptSource Lorg/springframework/scripting/ScriptSource;
0 24 2 scriptClass Ljava/lang/Class<*>;
1 8 3 goo Lgroovy/lang/GroovyObject;
9 12 3 ex Ljava/lang/NoSuchMethodException;
13 16 3 ex Ljava/lang/InstantiationException;
17 20 3 ex Ljava/lang/IllegalAccessException;
21 24 3 ex Ljava/lang/reflect/InvocationTargetException;
Exception table:
from to target type
0 5 8 Class java.lang.NoSuchMethodException
6 7 8 Class java.lang.NoSuchMethodException
0 5 12 Class java.lang.InstantiationException
6 7 12 Class java.lang.InstantiationException
0 5 16 Class java.lang.IllegalAccessException
6 7 16 Class java.lang.IllegalAccessException
0 5 20 Class java.lang.reflect.InvocationTargetException
6 7 20 Class java.lang.reflect.InvocationTargetException
Exceptions:
throws org.springframework.scripting.ScriptCompilationException
Signature: (Lorg/springframework/scripting/ScriptSource;Ljava/lang/Class<*>;)Ljava/lang/Object;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
scriptSource
scriptClass
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 "GroovyScriptFactory: script source locator ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.scripting.groovy.GroovyScriptFactory.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/groovy/GroovyScriptFactory;
}
SourceFile: "GroovyScriptFactory.java"
NestMembers:
org.springframework.scripting.groovy.GroovyScriptFactory$CachedResultHolder
InnerClasses:
private CachedResultHolder = org.springframework.scripting.groovy.GroovyScriptFactory$CachedResultHolder of org.springframework.scripting.groovy.GroovyScriptFactory